@qrvey/utils 1.11.0-5 → 1.11.0-7

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.
@@ -1,3 +1,4 @@
1
+ import { II18nFormulaBuilderErrorMessage } from "./II18nFormulaBuilderErrorMessage";
1
2
  export interface II18nFormulaBuilderCreateModal {
2
3
  title_header_create: string;
3
4
  title_header_edit: string;
@@ -28,6 +29,8 @@ export interface II18nFormulaBuilderCreateModal {
28
29
  required_name_toast: string;
29
30
  parameters: string;
30
31
  example: string;
32
+ dont_show_again: string;
33
+ formula_name_error_operator: string;
31
34
  formula_name_error_character: string;
32
35
  formula_name_error_reserved_word: string;
33
36
  formula_type: string;
@@ -38,6 +41,7 @@ export interface II18nFormulaBuilderCreateModal {
38
41
  tab_formula: string;
39
42
  tab_testing: string;
40
43
  tab_testing_tooltip: string;
44
+ tab_testing_tooltip_empty: string;
41
45
  show_columns: string;
42
46
  hide_columns: string;
43
47
  tooltip_error_name_formula: string;
@@ -56,6 +60,8 @@ export interface II18nFormulaBuilderCreateModal {
56
60
  console_output_button: string;
57
61
  test_formula: string;
58
62
  functions: Record<string, Record<string, string>>;
59
- editor: Record<string, unknown>;
63
+ editor: {
64
+ error_messages: II18nFormulaBuilderErrorMessage;
65
+ };
60
66
  };
61
67
  }
@@ -0,0 +1,26 @@
1
+ export interface II18nFormulaBuilderErrorMessage {
2
+ NUMBER_ARGS: string;
3
+ NULL_FOUNDS: string;
4
+ FLOATING_POINT: string;
5
+ MISSING_STRING: string;
6
+ MISSING_NUMBER: string;
7
+ MISSING_DATE: string;
8
+ GREATER_THAN_ZERO: string;
9
+ MISSING_ARG: string;
10
+ MISSING_PARENTHESIS: string;
11
+ UNKNOWN_TOKEN: string;
12
+ UNKNOWN_FUNCTION: string;
13
+ UNKNOWN: string;
14
+ TOO_MANY_ARGUMENTS: string;
15
+ DATE_DIF_UNIT_PARAM: string;
16
+ UNKNOWN_EXPRESSION: string;
17
+ NOT_ALLOWED_EXPRESSION: string;
18
+ OUT_OF_RANGE: string;
19
+ INVALID_CAST_NUMBER: string;
20
+ INVALID_BOOLEAN_ARGUMENT: string;
21
+ UNKNOWN_TOKEN_WITH_QUOTES: string;
22
+ INFERRED_PRIMITIVE: string;
23
+ MISSING_COLUMN_EXPRESSION: string;
24
+ NO_COLUMN_EXPRESSION: string;
25
+ ARGUMENTS_DATATYPE_ERROR: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -56,3 +56,4 @@ export * from "./II18nFormulaBuilderFunctionAggMin";
56
56
  export * from "./II18nFormulaBuilderFunctionAggMax";
57
57
  export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
58
58
  export * from "./II18nFormulaBuilderFunctionAggCount";
59
+ export * from "./II18nFormulaBuilderErrorMessage";
@@ -72,3 +72,4 @@ __exportStar(require("./II18nFormulaBuilderFunctionAggMin"), exports);
72
72
  __exportStar(require("./II18nFormulaBuilderFunctionAggMax"), exports);
73
73
  __exportStar(require("./II18nFormulaBuilderFunctionAggDistinctcount"), exports);
74
74
  __exportStar(require("./II18nFormulaBuilderFunctionAggCount"), exports);
75
+ __exportStar(require("./II18nFormulaBuilderErrorMessage"), exports);
@@ -13,6 +13,7 @@ export interface II18nPanelErrors {
13
13
  missing_linked_column: string;
14
14
  max_buckets_limit: string;
15
15
  no_data_found: string;
16
+ no_features_found: string;
16
17
  restore_panel: string;
17
18
  refresh_panel: string;
18
19
  server_error: string;
@@ -57,16 +57,19 @@ exports.I18N_FORMULA_BUILDER = {
57
57
  required_name_toast: "Formula Name is required.",
58
58
  parameters: "Parameters",
59
59
  example: "Example",
60
+ dont_show_again: "Do not show this again",
60
61
  formula_name_error_character: "The formula name cannot be a special character.",
62
+ formula_name_error_operator: "Formula name cannot be an operator.",
61
63
  formula_name_error_reserved_word: "The formula name cannot be a reserved word: null, true or false.",
62
- formula_type: "Formula Type",
63
- formula_custom_script_mode: "Custom Script Mode",
64
+ formula_type: "Formula Mode",
65
+ formula_custom_script_mode: "Data Engine Syntax (legacy)",
64
66
  formula_mode: {
65
- title: "Formula Mode",
66
- info: "Allows mathematical and logical operators including +, -, *, /, (), =, >, <, >=, <=, <>. Numbers must be entered in en-US format. Date time values should be entered with format: MM/DD/YYYY or MM/DD/YYYY HH:MM:SS",
67
+ title: "Standardized Syntax",
68
+ info: 'Allows mathematical and logical operators including +, -, *, /, (), =, >, <, >=, <=, <>. Numbers must be entered in en-US format. Date time values should be entered with format: "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS"',
67
69
  tab_formula: "Formula",
68
70
  tab_testing: "Testing",
69
71
  tab_testing_tooltip: "This formula contains errors or is not finished.",
72
+ tab_testing_tooltip_empty: "No formula to test.",
70
73
  show_columns: "Show Columns and Functions",
71
74
  hide_columns: "Hide Columns and Functions",
72
75
  tooltip_error_name_formula: "A name and a valid formula are mandatory to save.",
@@ -93,49 +96,49 @@ exports.I18N_FORMULA_BUILDER = {
93
96
  },
94
97
  datedif: {
95
98
  description: "Calculates the difference between two dates based on the date part requested.",
96
- function_placeholder: "DATEDIF(date_value1, date_value2, 'date_part')",
99
+ function_placeholder: 'DATEDIF(date_value1, date_value2, "date_part")',
97
100
  param_date_value1_name: "date_value1",
98
- param_date_value1_description: "The first date value. 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'.",
101
+ param_date_value1_description: 'The first date value. 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".',
99
102
  param_date_value2_name: "date_value2",
100
- param_date_value2_description: "The second date value. 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'. This date should always be equal or greater than date_value1.",
103
+ param_date_value2_description: 'The second date value. 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". This date should always be equal or greater than date_value1.',
101
104
  param_date_part_name: "date_part",
102
- param_date_part_description: "Date part allows: 'Y' the number of complete years in the period, 'M' the number of complete months in the period, 'D' the number of days in the period.",
105
+ param_date_part_description: 'Date part allows: "Y" the number of complete years in the period, "M" the number of complete months in the period, "D" the number of days in the period.',
103
106
  },
104
107
  day: {
105
108
  description: "Returns the day of a date. The day is given as an integer ranging from 1 to 31.",
106
109
  function_placeholder: "DAY(date_value1)",
107
110
  param_date_value1_name: "date_value1",
108
- 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'.",
111
+ 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".',
109
112
  },
110
113
  hour: {
111
114
  description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23.",
112
115
  function_placeholder: "HOUR(date_value1)",
113
116
  param_date_value1_name: "date_value1",
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', datetime values without time will be assumed as 00:00:00.",
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", datetime values without time will be assumed as 00:00:00.',
115
118
  },
116
119
  minute: {
117
120
  description: "Returns the minute of a datetime value. The minute is given as an integer ranging from 0 to 59.",
118
121
  function_placeholder: "MINUTE(date_value1)",
119
122
  param_date_value1_name: "date_value1",
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.",
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.',
121
124
  },
122
125
  second: {
123
126
  description: "Returns the second of a datetime value. The second is given as an integer ranging from 0 to 59.",
124
127
  function_placeholder: "SECOND(date_value1)",
125
128
  param_date_value1_name: "date_value1",
126
- 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.",
129
+ 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.',
127
130
  },
128
131
  year: {
129
132
  description: "Returns the year of a date. The year is given as an integer ranging from 1900 to 9999.Parameters",
130
133
  function_placeholder: "YEAR(date_value1)",
131
134
  param_date_value1_name: "date_value1",
132
- 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'.",
135
+ 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".',
133
136
  },
134
137
  month: {
135
138
  description: "Returns the month of a date. The month is given as an integer ranging from 1 (January) to 12 (December).",
136
139
  function_placeholder: "MONTH(date_value1)",
137
140
  param_date_value1_name: "date_value1",
138
- 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'.",
141
+ 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".',
139
142
  },
140
143
  if: {
141
144
  description: "Performs a logical test and returns a value based on the result.",
@@ -144,7 +147,7 @@ exports.I18N_FORMULA_BUILDER = {
144
147
  param_logicalTest_description: "Logical test between two values, it should include logical operators such as =, >, <, >=, <= or <>. This argument can also be anything that returns a boolean value.",
145
148
  param_valueIfTrue_name: "valueIfTrue (required)",
146
149
  param_valueIfTrue_description: "Value that the function will return in case the result of the logicalTest is equal to true. It can be a number, datetime value, boolean or string.",
147
- param_valueIfFalse_name: "valueIfFalse (optional)",
150
+ param_valueIfFalse_name: "valueIfFalse (required)",
148
151
  param_valueIfFalse_description: "Value that the function will return in case the result of the logicalTest is equal to false. It can be a number, datetime value, boolean or string. If not defined, the function will return false by default.",
149
152
  },
150
153
  ifs: {
@@ -169,6 +172,14 @@ exports.I18N_FORMULA_BUILDER = {
169
172
  param_numChars_name: "numChars",
170
173
  param_numChars_description: "The number of characters you want to extract from the text string starting from beginIndex.",
171
174
  },
175
+ isnull: {
176
+ description: "Replaces null values with the specified replacement value.",
177
+ function_placeholder: "ISNULL(column,replacement)",
178
+ param_column_name: "column",
179
+ param_column_description: "Column to check.",
180
+ param_replacement_name: "replacement",
181
+ param_replacement_description: "The value that will replace the null value. It must have the same data type as the column.",
182
+ },
172
183
  },
173
184
  editor: {
174
185
  error_messages: {
@@ -185,15 +196,20 @@ exports.I18N_FORMULA_BUILDER = {
185
196
  UNKNOWN_FUNCTION: "Unknown function",
186
197
  UNKNOWN: "Unknown error",
187
198
  TOO_MANY_ARGUMENTS: "Too many arguments",
188
- DATE_DIF_UNIT_PARAM: "Unit param have to be equal to: 'Y', 'M', 'D'",
199
+ DATE_DIF_UNIT_PARAM: 'Unit param have to be equal to: "Y", "M", "D"',
189
200
  UNKNOWN_EXPRESSION: "Unknown expression",
190
201
  NOT_ALLOWED_EXPRESSION: "Expression not allowed",
191
202
  OUT_OF_RANGE: "Expression out of range",
192
203
  INVALID_CAST_NUMBER: "Invalid cast number",
193
- INVALID_BOOLEAN_ARGUMENT: "Invalid boolean argument"
194
- }
195
- }
196
- }
204
+ INVALID_BOOLEAN_ARGUMENT: "Invalid boolean argument",
205
+ UNKNOWN_TOKEN_WITH_QUOTES: "Replace single quotes for double quotes in",
206
+ INFERRED_PRIMITIVE: "Output values should have the same data type.",
207
+ MISSING_COLUMN_EXPRESSION: "Argument should be a column.",
208
+ NO_COLUMN_EXPRESSION: "Argument cannot be a column.",
209
+ ARGUMENTS_DATATYPE_ERROR: "Arguments should have the same data type.",
210
+ },
211
+ },
212
+ },
197
213
  },
198
214
  functions_type: {
199
215
  all: "All",
@@ -15,8 +15,8 @@ exports.I18N_PANEL = {
15
15
  continuous_numeric_limit: "The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using another chart visualization<br>• Switching to Discrete Values",
16
16
  continuous_time_limit: "The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using a <i>Time Grouping</i> that returns less data<br>• Using another chart visualization<br>• Switching to Discrete Values",
17
17
  drilldown_unavailable: "No data found with drilldown.",
18
- invalid_data_for_chart: "No valid data for this chart",
19
- longer_available_panel: "This panel is no longer available",
18
+ invalid_data_for_chart: "No valid data for this chart.",
19
+ longer_available_panel: "This panel is no longer available.",
20
20
  long_text: "long-text",
21
21
  max_buckets_limit: "The combination of data used in this chart exceeds the maximum number of aggregation buckets allowed in a single response.<br><br>To fix this issue, try the following:<br>• <i>Filter</i> your data<br>• Apply a <i>Date Grouping</i> that returns less data<br>• Use another chart visualization",
22
22
  missing_column: "Missing Column.",
@@ -24,6 +24,7 @@ exports.I18N_PANEL = {
24
24
  missing_formula_column: "Missing formula column.",
25
25
  missing_linked_column: "Missing linked column.",
26
26
  no_data_found: "No data found.",
27
+ no_features_found: "No location match",
27
28
  refresh_panel: "Refresh panel",
28
29
  server_error: "Server Error.",
29
30
  restore_panel: "Restore panel",
@@ -1,3 +1,4 @@
1
+ import { II18nFormulaBuilderErrorMessage } from "./II18nFormulaBuilderErrorMessage";
1
2
  export interface II18nFormulaBuilderCreateModal {
2
3
  title_header_create: string;
3
4
  title_header_edit: string;
@@ -28,6 +29,8 @@ export interface II18nFormulaBuilderCreateModal {
28
29
  required_name_toast: string;
29
30
  parameters: string;
30
31
  example: string;
32
+ dont_show_again: string;
33
+ formula_name_error_operator: string;
31
34
  formula_name_error_character: string;
32
35
  formula_name_error_reserved_word: string;
33
36
  formula_type: string;
@@ -38,6 +41,7 @@ export interface II18nFormulaBuilderCreateModal {
38
41
  tab_formula: string;
39
42
  tab_testing: string;
40
43
  tab_testing_tooltip: string;
44
+ tab_testing_tooltip_empty: string;
41
45
  show_columns: string;
42
46
  hide_columns: string;
43
47
  tooltip_error_name_formula: string;
@@ -56,6 +60,8 @@ export interface II18nFormulaBuilderCreateModal {
56
60
  console_output_button: string;
57
61
  test_formula: string;
58
62
  functions: Record<string, Record<string, string>>;
59
- editor: Record<string, unknown>;
63
+ editor: {
64
+ error_messages: II18nFormulaBuilderErrorMessage;
65
+ };
60
66
  };
61
67
  }
@@ -0,0 +1,26 @@
1
+ export interface II18nFormulaBuilderErrorMessage {
2
+ NUMBER_ARGS: string;
3
+ NULL_FOUNDS: string;
4
+ FLOATING_POINT: string;
5
+ MISSING_STRING: string;
6
+ MISSING_NUMBER: string;
7
+ MISSING_DATE: string;
8
+ GREATER_THAN_ZERO: string;
9
+ MISSING_ARG: string;
10
+ MISSING_PARENTHESIS: string;
11
+ UNKNOWN_TOKEN: string;
12
+ UNKNOWN_FUNCTION: string;
13
+ UNKNOWN: string;
14
+ TOO_MANY_ARGUMENTS: string;
15
+ DATE_DIF_UNIT_PARAM: string;
16
+ UNKNOWN_EXPRESSION: string;
17
+ NOT_ALLOWED_EXPRESSION: string;
18
+ OUT_OF_RANGE: string;
19
+ INVALID_CAST_NUMBER: string;
20
+ INVALID_BOOLEAN_ARGUMENT: string;
21
+ UNKNOWN_TOKEN_WITH_QUOTES: string;
22
+ INFERRED_PRIMITIVE: string;
23
+ MISSING_COLUMN_EXPRESSION: string;
24
+ NO_COLUMN_EXPRESSION: string;
25
+ ARGUMENTS_DATATYPE_ERROR: string;
26
+ }
@@ -56,3 +56,4 @@ export * from "./II18nFormulaBuilderFunctionAggMin";
56
56
  export * from "./II18nFormulaBuilderFunctionAggMax";
57
57
  export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
58
58
  export * from "./II18nFormulaBuilderFunctionAggCount";
59
+ export * from "./II18nFormulaBuilderErrorMessage";
@@ -56,3 +56,4 @@ export * from "./II18nFormulaBuilderFunctionAggMin";
56
56
  export * from "./II18nFormulaBuilderFunctionAggMax";
57
57
  export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
58
58
  export * from "./II18nFormulaBuilderFunctionAggCount";
59
+ export * from "./II18nFormulaBuilderErrorMessage";
@@ -13,6 +13,7 @@ export interface II18nPanelErrors {
13
13
  missing_linked_column: string;
14
14
  max_buckets_limit: string;
15
15
  no_data_found: string;
16
+ no_features_found: string;
16
17
  restore_panel: string;
17
18
  refresh_panel: string;
18
19
  server_error: string;
@@ -54,16 +54,19 @@ export const I18N_FORMULA_BUILDER = {
54
54
  required_name_toast: "Formula Name is required.",
55
55
  parameters: "Parameters",
56
56
  example: "Example",
57
+ dont_show_again: "Do not show this again",
57
58
  formula_name_error_character: "The formula name cannot be a special character.",
59
+ formula_name_error_operator: "Formula name cannot be an operator.",
58
60
  formula_name_error_reserved_word: "The formula name cannot be a reserved word: null, true or false.",
59
- formula_type: "Formula Type",
60
- formula_custom_script_mode: "Custom Script Mode",
61
+ formula_type: "Formula Mode",
62
+ formula_custom_script_mode: "Data Engine Syntax (legacy)",
61
63
  formula_mode: {
62
- title: "Formula Mode",
63
- info: "Allows mathematical and logical operators including +, -, *, /, (), =, >, <, >=, <=, <>. Numbers must be entered in en-US format. Date time values should be entered with format: MM/DD/YYYY or MM/DD/YYYY HH:MM:SS",
64
+ title: "Standardized Syntax",
65
+ info: 'Allows mathematical and logical operators including +, -, *, /, (), =, >, <, >=, <=, <>. Numbers must be entered in en-US format. Date time values should be entered with format: "MM/DD/YYYY" or "MM/DD/YYYY HH:MM:SS"',
64
66
  tab_formula: "Formula",
65
67
  tab_testing: "Testing",
66
68
  tab_testing_tooltip: "This formula contains errors or is not finished.",
69
+ tab_testing_tooltip_empty: "No formula to test.",
67
70
  show_columns: "Show Columns and Functions",
68
71
  hide_columns: "Hide Columns and Functions",
69
72
  tooltip_error_name_formula: "A name and a valid formula are mandatory to save.",
@@ -90,49 +93,49 @@ export const I18N_FORMULA_BUILDER = {
90
93
  },
91
94
  datedif: {
92
95
  description: "Calculates the difference between two dates based on the date part requested.",
93
- function_placeholder: "DATEDIF(date_value1, date_value2, 'date_part')",
96
+ function_placeholder: 'DATEDIF(date_value1, date_value2, "date_part")',
94
97
  param_date_value1_name: "date_value1",
95
- param_date_value1_description: "The first date value. 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'.",
98
+ param_date_value1_description: 'The first date value. 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".',
96
99
  param_date_value2_name: "date_value2",
97
- param_date_value2_description: "The second date value. 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'. This date should always be equal or greater than date_value1.",
100
+ param_date_value2_description: 'The second date value. 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". This date should always be equal or greater than date_value1.',
98
101
  param_date_part_name: "date_part",
99
- param_date_part_description: "Date part allows: 'Y' the number of complete years in the period, 'M' the number of complete months in the period, 'D' the number of days in the period.",
102
+ param_date_part_description: 'Date part allows: "Y" the number of complete years in the period, "M" the number of complete months in the period, "D" the number of days in the period.',
100
103
  },
101
104
  day: {
102
105
  description: "Returns the day of a date. The day is given as an integer ranging from 1 to 31.",
103
106
  function_placeholder: "DAY(date_value1)",
104
107
  param_date_value1_name: "date_value1",
105
- 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'.",
108
+ 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".',
106
109
  },
107
110
  hour: {
108
111
  description: "Returns the hour of a datetime value. The hour is given as an integer ranging from 0 to 23.",
109
112
  function_placeholder: "HOUR(date_value1)",
110
113
  param_date_value1_name: "date_value1",
111
- 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.",
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", datetime values without time will be assumed as 00:00:00.',
112
115
  },
113
116
  minute: {
114
117
  description: "Returns the minute of a datetime value. The minute is given as an integer ranging from 0 to 59.",
115
118
  function_placeholder: "MINUTE(date_value1)",
116
119
  param_date_value1_name: "date_value1",
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', datetime values without time will be assumed as 00:00:00.",
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.',
118
121
  },
119
122
  second: {
120
123
  description: "Returns the second of a datetime value. The second is given as an integer ranging from 0 to 59.",
121
124
  function_placeholder: "SECOND(date_value1)",
122
125
  param_date_value1_name: "date_value1",
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.",
126
+ 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
127
  },
125
128
  year: {
126
129
  description: "Returns the year of a date. The year is given as an integer ranging from 1900 to 9999.Parameters",
127
130
  function_placeholder: "YEAR(date_value1)",
128
131
  param_date_value1_name: "date_value1",
129
- 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'.",
132
+ 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".',
130
133
  },
131
134
  month: {
132
135
  description: "Returns the month of a date. The month is given as an integer ranging from 1 (January) to 12 (December).",
133
136
  function_placeholder: "MONTH(date_value1)",
134
137
  param_date_value1_name: "date_value1",
135
- 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'.",
138
+ 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".',
136
139
  },
137
140
  if: {
138
141
  description: "Performs a logical test and returns a value based on the result.",
@@ -141,7 +144,7 @@ export const I18N_FORMULA_BUILDER = {
141
144
  param_logicalTest_description: "Logical test between two values, it should include logical operators such as =, >, <, >=, <= or <>. This argument can also be anything that returns a boolean value.",
142
145
  param_valueIfTrue_name: "valueIfTrue (required)",
143
146
  param_valueIfTrue_description: "Value that the function will return in case the result of the logicalTest is equal to true. It can be a number, datetime value, boolean or string.",
144
- param_valueIfFalse_name: "valueIfFalse (optional)",
147
+ param_valueIfFalse_name: "valueIfFalse (required)",
145
148
  param_valueIfFalse_description: "Value that the function will return in case the result of the logicalTest is equal to false. It can be a number, datetime value, boolean or string. If not defined, the function will return false by default.",
146
149
  },
147
150
  ifs: {
@@ -166,6 +169,14 @@ export const I18N_FORMULA_BUILDER = {
166
169
  param_numChars_name: "numChars",
167
170
  param_numChars_description: "The number of characters you want to extract from the text string starting from beginIndex.",
168
171
  },
172
+ isnull: {
173
+ description: "Replaces null values with the specified replacement value.",
174
+ function_placeholder: "ISNULL(column,replacement)",
175
+ param_column_name: "column",
176
+ param_column_description: "Column to check.",
177
+ param_replacement_name: "replacement",
178
+ param_replacement_description: "The value that will replace the null value. It must have the same data type as the column.",
179
+ },
169
180
  },
170
181
  editor: {
171
182
  error_messages: {
@@ -182,15 +193,20 @@ export const I18N_FORMULA_BUILDER = {
182
193
  UNKNOWN_FUNCTION: "Unknown function",
183
194
  UNKNOWN: "Unknown error",
184
195
  TOO_MANY_ARGUMENTS: "Too many arguments",
185
- DATE_DIF_UNIT_PARAM: "Unit param have to be equal to: 'Y', 'M', 'D'",
196
+ DATE_DIF_UNIT_PARAM: 'Unit param have to be equal to: "Y", "M", "D"',
186
197
  UNKNOWN_EXPRESSION: "Unknown expression",
187
198
  NOT_ALLOWED_EXPRESSION: "Expression not allowed",
188
199
  OUT_OF_RANGE: "Expression out of range",
189
200
  INVALID_CAST_NUMBER: "Invalid cast number",
190
- INVALID_BOOLEAN_ARGUMENT: "Invalid boolean argument"
191
- }
192
- }
193
- }
201
+ INVALID_BOOLEAN_ARGUMENT: "Invalid boolean argument",
202
+ UNKNOWN_TOKEN_WITH_QUOTES: "Replace single quotes for double quotes in",
203
+ INFERRED_PRIMITIVE: "Output values should have the same data type.",
204
+ MISSING_COLUMN_EXPRESSION: "Argument should be a column.",
205
+ NO_COLUMN_EXPRESSION: "Argument cannot be a column.",
206
+ ARGUMENTS_DATATYPE_ERROR: "Arguments should have the same data type.",
207
+ },
208
+ },
209
+ },
194
210
  },
195
211
  functions_type: {
196
212
  all: "All",
@@ -12,8 +12,8 @@ export const I18N_PANEL = {
12
12
  continuous_numeric_limit: "The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using another chart visualization<br>• Switching to Discrete Values",
13
13
  continuous_time_limit: "The combination of data used in this chart exceeds the maximum number of data points that the system can return.<br><br>We recommend you try:<br>• Using a <i>Time Grouping</i> that returns less data<br>• Using another chart visualization<br>• Switching to Discrete Values",
14
14
  drilldown_unavailable: "No data found with drilldown.",
15
- invalid_data_for_chart: "No valid data for this chart",
16
- longer_available_panel: "This panel is no longer available",
15
+ invalid_data_for_chart: "No valid data for this chart.",
16
+ longer_available_panel: "This panel is no longer available.",
17
17
  long_text: "long-text",
18
18
  max_buckets_limit: "The combination of data used in this chart exceeds the maximum number of aggregation buckets allowed in a single response.<br><br>To fix this issue, try the following:<br>• <i>Filter</i> your data<br>• Apply a <i>Date Grouping</i> that returns less data<br>• Use another chart visualization",
19
19
  missing_column: "Missing Column.",
@@ -21,6 +21,7 @@ export const I18N_PANEL = {
21
21
  missing_formula_column: "Missing formula column.",
22
22
  missing_linked_column: "Missing linked column.",
23
23
  no_data_found: "No data found.",
24
+ no_features_found: "No location match",
24
25
  refresh_panel: "Refresh panel",
25
26
  server_error: "Server Error.",
26
27
  restore_panel: "Restore panel",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.11.0-5",
3
+ "version": "1.11.0-7",
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",