@qrvey/utils 1.11.0-10 → 1.11.0-12
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/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderErrorMessage.d.ts +6 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionAnd.d.ts +9 -0
- package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionAnd.js +2 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/interfaces/formula_builder/index.js +1 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +79 -1
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.d.ts +2 -0
- package/dist/cjs/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.js +13 -0
- package/dist/cjs/globalization/labels/formula_builder/index.d.ts +1 -0
- package/dist/cjs/globalization/labels/formula_builder/index.js +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderCreateModal.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderErrorMessage.d.ts +6 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionAnd.d.ts +9 -0
- package/dist/globalization/interfaces/formula_builder/II18nFormulaBuilderFunctionAnd.js +1 -0
- package/dist/globalization/interfaces/formula_builder/index.d.ts +1 -0
- package/dist/globalization/interfaces/formula_builder/index.js +1 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER.js +79 -1
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.d.ts +2 -0
- package/dist/globalization/labels/formula_builder/I18N_FORMULA_BUILDER_FUNCTION_AND.js +10 -0
- package/dist/globalization/labels/formula_builder/index.d.ts +1 -0
- package/dist/globalization/labels/formula_builder/index.js +1 -0
- package/package.json +1 -1
package/dist/cjs/globalization/interfaces/formula_builder/II18nFormulaBuilderErrorMessage.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface II18nFormulaBuilderErrorMessage {
|
|
|
13
13
|
UNKNOWN: string;
|
|
14
14
|
TOO_MANY_ARGUMENTS: string;
|
|
15
15
|
DATE_DIF_UNIT_PARAM: string;
|
|
16
|
+
INVALID_ALLOW_VALUE: string;
|
|
16
17
|
UNKNOWN_EXPRESSION: string;
|
|
17
18
|
NOT_ALLOWED_EXPRESSION: string;
|
|
18
19
|
OUT_OF_RANGE: string;
|
|
@@ -23,4 +24,9 @@ export interface II18nFormulaBuilderErrorMessage {
|
|
|
23
24
|
MISSING_COLUMN_EXPRESSION: string;
|
|
24
25
|
NO_COLUMN_EXPRESSION: string;
|
|
25
26
|
ARGUMENTS_DATATYPE_ERROR: string;
|
|
27
|
+
FUNCTION_ARGUMENTS_MISMATCH: string;
|
|
28
|
+
NOT_ALLOWED_OPERATION: string;
|
|
29
|
+
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: string;
|
|
30
|
+
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: string;
|
|
31
|
+
GREATER_THAN: string;
|
|
26
32
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { II18nFormulaBuilderFunction } from "./II18nFormulaBuilderFunction";
|
|
2
|
+
export interface II18nFormulaBuilderFunctionAnd extends II18nFormulaBuilderFunction {
|
|
3
|
+
param_logicalTest1_name: string;
|
|
4
|
+
param_logicalTest1_description: string;
|
|
5
|
+
param_logicalTest2_name: string;
|
|
6
|
+
param_logicalTest2_description: string;
|
|
7
|
+
param_logicalTestn_name: string;
|
|
8
|
+
param_logicalTestn_description: string;
|
|
9
|
+
}
|
|
@@ -57,3 +57,4 @@ export * from "./II18nFormulaBuilderFunctionAggMax";
|
|
|
57
57
|
export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
|
|
58
58
|
export * from "./II18nFormulaBuilderFunctionAggCount";
|
|
59
59
|
export * from "./II18nFormulaBuilderErrorMessage";
|
|
60
|
+
export * from "./II18nFormulaBuilderFunctionAnd";
|
|
@@ -73,3 +73,4 @@ __exportStar(require("./II18nFormulaBuilderFunctionAggMax"), exports);
|
|
|
73
73
|
__exportStar(require("./II18nFormulaBuilderFunctionAggDistinctcount"), exports);
|
|
74
74
|
__exportStar(require("./II18nFormulaBuilderFunctionAggCount"), exports);
|
|
75
75
|
__exportStar(require("./II18nFormulaBuilderErrorMessage"), exports);
|
|
76
|
+
__exportStar(require("./II18nFormulaBuilderFunctionAnd"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.I18N_FORMULA_BUILDER = void 0;
|
|
4
|
+
const I18N_FORMULA_BUILDER_FUNCTION_AND_1 = require("./I18N_FORMULA_BUILDER_FUNCTION_AND");
|
|
4
5
|
exports.I18N_FORMULA_BUILDER = {
|
|
5
6
|
list_modal: {
|
|
6
7
|
create_button: "Create Formula",
|
|
@@ -82,6 +83,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
82
83
|
output: "Output",
|
|
83
84
|
output_case: "Test Case",
|
|
84
85
|
output_result: "Result",
|
|
86
|
+
output_invalid_column: "Invalid column name.",
|
|
85
87
|
randomize_data: "Randomize data",
|
|
86
88
|
randomize_data_tooltip: "Refresh the testing data with random data from the dataset.",
|
|
87
89
|
console_output_title: "Console Output",
|
|
@@ -180,6 +182,76 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
180
182
|
param_replacement_name: "replacement",
|
|
181
183
|
param_replacement_description: "The value that will replace the null value. It must have the same data type as the column.",
|
|
182
184
|
},
|
|
185
|
+
dateadd: {
|
|
186
|
+
description: "Adds a specific date part value to a given date.",
|
|
187
|
+
function_placeholder: 'DATEADD(date_value1, "date_part", interval_value)',
|
|
188
|
+
param_date_value1_name: "date_value1",
|
|
189
|
+
param_date_value1_description: 'Date value for which you will get the weekday. 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".',
|
|
190
|
+
param_date_part_name: "date_part",
|
|
191
|
+
param_date_part_description: 'Date part allows: "Y" for years, "M" for months, "D" for days, "H" for hours, "MI" for minutes and "S" for seconds.',
|
|
192
|
+
param_interval_value_name: "interval_value",
|
|
193
|
+
param_interval_value_description: "Number of units of the selected date part that you want to add to the given date.",
|
|
194
|
+
},
|
|
195
|
+
dayofweek: {
|
|
196
|
+
description: "Returns a number or string representative of the weekday for a given date.",
|
|
197
|
+
function_placeholder: "DAYOFWEEK(date_value1, day_name)",
|
|
198
|
+
param_date_value1_name: "date_value1",
|
|
199
|
+
param_date_value1_description: 'Date value to which you will add the date part 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".',
|
|
200
|
+
param_day_name_name: "day_name",
|
|
201
|
+
param_day_name_description: 'If set equal to "Day" it will return the name of the day of the week, if set to "D" it will return a number from 1 to 7; if not set, it will also return a number from 1 to 7. 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday.',
|
|
202
|
+
},
|
|
203
|
+
trim: {
|
|
204
|
+
description: "Removes all spaces from text except for single spaces between words.",
|
|
205
|
+
function_placeholder: "TRIM(string1)",
|
|
206
|
+
param_string1_name: "string1",
|
|
207
|
+
param_string1_description: "Text to trim.",
|
|
208
|
+
},
|
|
209
|
+
concatenate: {
|
|
210
|
+
description: "Joins two or more strings into one string.",
|
|
211
|
+
function_placeholder: "CONCATENATE(string1,string2,...stringn)",
|
|
212
|
+
param_string1_name: "string1 (required)",
|
|
213
|
+
param_string1_description: "The first text to join.",
|
|
214
|
+
param_string2_name: "string2 (required)",
|
|
215
|
+
param_string2_description: "The second text to join.",
|
|
216
|
+
param_stringn_name: "stringn (optional)",
|
|
217
|
+
param_stringn_description: "Additional text items to join.",
|
|
218
|
+
},
|
|
219
|
+
left: {
|
|
220
|
+
description: "Returns the first character or characters in a text string, based on the number of characters you specify.",
|
|
221
|
+
function_placeholder: "LEFT(string1, num_chars)",
|
|
222
|
+
param_string1_name: "string1 (required)",
|
|
223
|
+
param_string1_description: "The text with characters to extract.",
|
|
224
|
+
param_num_chars_name: "num_chars (optional)",
|
|
225
|
+
param_num_chars_description: "Number of characters you want to extract. It has to be an integer greater than or equal to zero. If not defined, LEFT will return one character.",
|
|
226
|
+
},
|
|
227
|
+
right: {
|
|
228
|
+
description: "Returns the last character or characters in a text string, based on the number of characters you specify.",
|
|
229
|
+
function_placeholder: "RIGHT(string1, num_chars)",
|
|
230
|
+
param_string1_name: "string1 (required)",
|
|
231
|
+
param_string1_description: "The text with characters to extract.",
|
|
232
|
+
param_num_chars_name: "num_chars (optional)",
|
|
233
|
+
param_num_chars_description: "Number of characters you want to extract. It has to be an integer greater than or equal to zero. If not defined, RIGHT will return one character.",
|
|
234
|
+
},
|
|
235
|
+
upper: {
|
|
236
|
+
description: "Converts all the characters in a string to uppercase.",
|
|
237
|
+
function_placeholder: "UPPER(string1)",
|
|
238
|
+
param_string1_name: "string1",
|
|
239
|
+
param_string1_description: "The text you want converted to uppercase.",
|
|
240
|
+
},
|
|
241
|
+
lower: {
|
|
242
|
+
description: "Converts all the characters in a string to lowercase.",
|
|
243
|
+
function_placeholder: "LOWER(string1)",
|
|
244
|
+
param_string1_name: "string1",
|
|
245
|
+
param_string1_description: "The text you want converted to lowercase.",
|
|
246
|
+
},
|
|
247
|
+
proper: {
|
|
248
|
+
description: "Capitalizes the first letter in a string and any other letters in the text placed next to any character other than a letter or number. Converts the rest of the letters to lowercase.",
|
|
249
|
+
function_placeholder: "PROPER(string1)",
|
|
250
|
+
param_string1_name: "string1",
|
|
251
|
+
param_string1_description: "The text you want converted.",
|
|
252
|
+
},
|
|
253
|
+
and: Object.assign({}, I18N_FORMULA_BUILDER_FUNCTION_AND_1.I18N_FORMULA_BUILDER_FUNCTION_AND),
|
|
254
|
+
or: Object.assign(Object.assign({}, I18N_FORMULA_BUILDER_FUNCTION_AND_1.I18N_FORMULA_BUILDER_FUNCTION_AND), { description: "Evaluates different logical tests and returns false if all logical tests are false and true if at least one of the logical tests returns true.", function_placeholder: "OR(logicalTest1,logicalTest2,...logicalTestn)" }),
|
|
183
255
|
},
|
|
184
256
|
editor: {
|
|
185
257
|
error_messages: {
|
|
@@ -196,7 +268,7 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
196
268
|
UNKNOWN_FUNCTION: "Unknown function",
|
|
197
269
|
UNKNOWN: "Unknown error",
|
|
198
270
|
TOO_MANY_ARGUMENTS: "Too many arguments",
|
|
199
|
-
DATE_DIF_UNIT_PARAM:
|
|
271
|
+
DATE_DIF_UNIT_PARAM: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.datedif_unit}}",
|
|
200
272
|
UNKNOWN_EXPRESSION: "Unknown expression",
|
|
201
273
|
NOT_ALLOWED_EXPRESSION: "Expression not allowed",
|
|
202
274
|
OUT_OF_RANGE: "Expression out of range",
|
|
@@ -207,6 +279,12 @@ exports.I18N_FORMULA_BUILDER = {
|
|
|
207
279
|
MISSING_COLUMN_EXPRESSION: "Argument should be a column.",
|
|
208
280
|
NO_COLUMN_EXPRESSION: "Argument cannot be a column.",
|
|
209
281
|
ARGUMENTS_DATATYPE_ERROR: "Arguments should have the same data type.",
|
|
282
|
+
FUNCTION_ARGUMENTS_MISMATCH: "{{i18n.function.name}} function is expecting {{i18n.function.input}} and is receiving {{i18n.function.received}}",
|
|
283
|
+
NOT_ALLOWED_OPERATION: "Expression not allowed. Allowed operators between {{i18n.function.expression.types}}: {{i18n.function.expression.operators}}",
|
|
284
|
+
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: "Expression not allowed {{i18n.function.expression.value}}",
|
|
285
|
+
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: "Expression not allowed. Missing operator",
|
|
286
|
+
GREATER_THAN: "Argument {{i18n.function.argument.position}} has to be greater or equal than {{i18n.function.argument.greater_than}}",
|
|
287
|
+
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.allow_value}}",
|
|
210
288
|
},
|
|
211
289
|
},
|
|
212
290
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.I18N_FORMULA_BUILDER_FUNCTION_AND = void 0;
|
|
4
|
+
exports.I18N_FORMULA_BUILDER_FUNCTION_AND = {
|
|
5
|
+
description: "Evaluates different logical tests and returns true if all logical tests are true and false if at least one of the logical tests returns false. ",
|
|
6
|
+
function_placeholder: "AND(logicalTest1,logicalTest2,...logicalTestn)",
|
|
7
|
+
param_logicalTest1_name: "logicalTest1 (required)",
|
|
8
|
+
param_logicalTest1_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.",
|
|
9
|
+
param_logicalTest2_name: "logicalTest2 (required)",
|
|
10
|
+
param_logicalTest2_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.",
|
|
11
|
+
param_logicalTestn_name: "logicalTestn (optional)",
|
|
12
|
+
param_logicalTestn_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.",
|
|
13
|
+
};
|
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./I18N_FORMULA_BUILDER"), exports);
|
|
18
|
+
__exportStar(require("./I18N_FORMULA_BUILDER_FUNCTION_AND"), exports);
|
|
@@ -13,6 +13,7 @@ export interface II18nFormulaBuilderErrorMessage {
|
|
|
13
13
|
UNKNOWN: string;
|
|
14
14
|
TOO_MANY_ARGUMENTS: string;
|
|
15
15
|
DATE_DIF_UNIT_PARAM: string;
|
|
16
|
+
INVALID_ALLOW_VALUE: string;
|
|
16
17
|
UNKNOWN_EXPRESSION: string;
|
|
17
18
|
NOT_ALLOWED_EXPRESSION: string;
|
|
18
19
|
OUT_OF_RANGE: string;
|
|
@@ -23,4 +24,9 @@ export interface II18nFormulaBuilderErrorMessage {
|
|
|
23
24
|
MISSING_COLUMN_EXPRESSION: string;
|
|
24
25
|
NO_COLUMN_EXPRESSION: string;
|
|
25
26
|
ARGUMENTS_DATATYPE_ERROR: string;
|
|
27
|
+
FUNCTION_ARGUMENTS_MISMATCH: string;
|
|
28
|
+
NOT_ALLOWED_OPERATION: string;
|
|
29
|
+
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: string;
|
|
30
|
+
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: string;
|
|
31
|
+
GREATER_THAN: string;
|
|
26
32
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { II18nFormulaBuilderFunction } from "./II18nFormulaBuilderFunction";
|
|
2
|
+
export interface II18nFormulaBuilderFunctionAnd extends II18nFormulaBuilderFunction {
|
|
3
|
+
param_logicalTest1_name: string;
|
|
4
|
+
param_logicalTest1_description: string;
|
|
5
|
+
param_logicalTest2_name: string;
|
|
6
|
+
param_logicalTest2_description: string;
|
|
7
|
+
param_logicalTestn_name: string;
|
|
8
|
+
param_logicalTestn_description: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -57,3 +57,4 @@ export * from "./II18nFormulaBuilderFunctionAggMax";
|
|
|
57
57
|
export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
|
|
58
58
|
export * from "./II18nFormulaBuilderFunctionAggCount";
|
|
59
59
|
export * from "./II18nFormulaBuilderErrorMessage";
|
|
60
|
+
export * from "./II18nFormulaBuilderFunctionAnd";
|
|
@@ -57,3 +57,4 @@ export * from "./II18nFormulaBuilderFunctionAggMax";
|
|
|
57
57
|
export * from "./II18nFormulaBuilderFunctionAggDistinctcount";
|
|
58
58
|
export * from "./II18nFormulaBuilderFunctionAggCount";
|
|
59
59
|
export * from "./II18nFormulaBuilderErrorMessage";
|
|
60
|
+
export * from "./II18nFormulaBuilderFunctionAnd";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { I18N_FORMULA_BUILDER_FUNCTION_AND } from "./I18N_FORMULA_BUILDER_FUNCTION_AND";
|
|
1
2
|
export const I18N_FORMULA_BUILDER = {
|
|
2
3
|
list_modal: {
|
|
3
4
|
create_button: "Create Formula",
|
|
@@ -79,6 +80,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
79
80
|
output: "Output",
|
|
80
81
|
output_case: "Test Case",
|
|
81
82
|
output_result: "Result",
|
|
83
|
+
output_invalid_column: "Invalid column name.",
|
|
82
84
|
randomize_data: "Randomize data",
|
|
83
85
|
randomize_data_tooltip: "Refresh the testing data with random data from the dataset.",
|
|
84
86
|
console_output_title: "Console Output",
|
|
@@ -177,6 +179,76 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
177
179
|
param_replacement_name: "replacement",
|
|
178
180
|
param_replacement_description: "The value that will replace the null value. It must have the same data type as the column.",
|
|
179
181
|
},
|
|
182
|
+
dateadd: {
|
|
183
|
+
description: "Adds a specific date part value to a given date.",
|
|
184
|
+
function_placeholder: 'DATEADD(date_value1, "date_part", interval_value)',
|
|
185
|
+
param_date_value1_name: "date_value1",
|
|
186
|
+
param_date_value1_description: 'Date value for which you will get the weekday. 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".',
|
|
187
|
+
param_date_part_name: "date_part",
|
|
188
|
+
param_date_part_description: 'Date part allows: "Y" for years, "M" for months, "D" for days, "H" for hours, "MI" for minutes and "S" for seconds.',
|
|
189
|
+
param_interval_value_name: "interval_value",
|
|
190
|
+
param_interval_value_description: "Number of units of the selected date part that you want to add to the given date.",
|
|
191
|
+
},
|
|
192
|
+
dayofweek: {
|
|
193
|
+
description: "Returns a number or string representative of the weekday for a given date.",
|
|
194
|
+
function_placeholder: "DAYOFWEEK(date_value1, day_name)",
|
|
195
|
+
param_date_value1_name: "date_value1",
|
|
196
|
+
param_date_value1_description: 'Date value to which you will add the date part 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".',
|
|
197
|
+
param_day_name_name: "day_name",
|
|
198
|
+
param_day_name_description: 'If set equal to "Day" it will return the name of the day of the week, if set to "D" it will return a number from 1 to 7; if not set, it will also return a number from 1 to 7. 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday.',
|
|
199
|
+
},
|
|
200
|
+
trim: {
|
|
201
|
+
description: "Removes all spaces from text except for single spaces between words.",
|
|
202
|
+
function_placeholder: "TRIM(string1)",
|
|
203
|
+
param_string1_name: "string1",
|
|
204
|
+
param_string1_description: "Text to trim.",
|
|
205
|
+
},
|
|
206
|
+
concatenate: {
|
|
207
|
+
description: "Joins two or more strings into one string.",
|
|
208
|
+
function_placeholder: "CONCATENATE(string1,string2,...stringn)",
|
|
209
|
+
param_string1_name: "string1 (required)",
|
|
210
|
+
param_string1_description: "The first text to join.",
|
|
211
|
+
param_string2_name: "string2 (required)",
|
|
212
|
+
param_string2_description: "The second text to join.",
|
|
213
|
+
param_stringn_name: "stringn (optional)",
|
|
214
|
+
param_stringn_description: "Additional text items to join.",
|
|
215
|
+
},
|
|
216
|
+
left: {
|
|
217
|
+
description: "Returns the first character or characters in a text string, based on the number of characters you specify.",
|
|
218
|
+
function_placeholder: "LEFT(string1, num_chars)",
|
|
219
|
+
param_string1_name: "string1 (required)",
|
|
220
|
+
param_string1_description: "The text with characters to extract.",
|
|
221
|
+
param_num_chars_name: "num_chars (optional)",
|
|
222
|
+
param_num_chars_description: "Number of characters you want to extract. It has to be an integer greater than or equal to zero. If not defined, LEFT will return one character.",
|
|
223
|
+
},
|
|
224
|
+
right: {
|
|
225
|
+
description: "Returns the last character or characters in a text string, based on the number of characters you specify.",
|
|
226
|
+
function_placeholder: "RIGHT(string1, num_chars)",
|
|
227
|
+
param_string1_name: "string1 (required)",
|
|
228
|
+
param_string1_description: "The text with characters to extract.",
|
|
229
|
+
param_num_chars_name: "num_chars (optional)",
|
|
230
|
+
param_num_chars_description: "Number of characters you want to extract. It has to be an integer greater than or equal to zero. If not defined, RIGHT will return one character.",
|
|
231
|
+
},
|
|
232
|
+
upper: {
|
|
233
|
+
description: "Converts all the characters in a string to uppercase.",
|
|
234
|
+
function_placeholder: "UPPER(string1)",
|
|
235
|
+
param_string1_name: "string1",
|
|
236
|
+
param_string1_description: "The text you want converted to uppercase.",
|
|
237
|
+
},
|
|
238
|
+
lower: {
|
|
239
|
+
description: "Converts all the characters in a string to lowercase.",
|
|
240
|
+
function_placeholder: "LOWER(string1)",
|
|
241
|
+
param_string1_name: "string1",
|
|
242
|
+
param_string1_description: "The text you want converted to lowercase.",
|
|
243
|
+
},
|
|
244
|
+
proper: {
|
|
245
|
+
description: "Capitalizes the first letter in a string and any other letters in the text placed next to any character other than a letter or number. Converts the rest of the letters to lowercase.",
|
|
246
|
+
function_placeholder: "PROPER(string1)",
|
|
247
|
+
param_string1_name: "string1",
|
|
248
|
+
param_string1_description: "The text you want converted.",
|
|
249
|
+
},
|
|
250
|
+
and: Object.assign({}, I18N_FORMULA_BUILDER_FUNCTION_AND),
|
|
251
|
+
or: Object.assign(Object.assign({}, I18N_FORMULA_BUILDER_FUNCTION_AND), { description: "Evaluates different logical tests and returns false if all logical tests are false and true if at least one of the logical tests returns true.", function_placeholder: "OR(logicalTest1,logicalTest2,...logicalTestn)" }),
|
|
180
252
|
},
|
|
181
253
|
editor: {
|
|
182
254
|
error_messages: {
|
|
@@ -193,7 +265,7 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
193
265
|
UNKNOWN_FUNCTION: "Unknown function",
|
|
194
266
|
UNKNOWN: "Unknown error",
|
|
195
267
|
TOO_MANY_ARGUMENTS: "Too many arguments",
|
|
196
|
-
DATE_DIF_UNIT_PARAM:
|
|
268
|
+
DATE_DIF_UNIT_PARAM: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.datedif_unit}}",
|
|
197
269
|
UNKNOWN_EXPRESSION: "Unknown expression",
|
|
198
270
|
NOT_ALLOWED_EXPRESSION: "Expression not allowed",
|
|
199
271
|
OUT_OF_RANGE: "Expression out of range",
|
|
@@ -204,6 +276,12 @@ export const I18N_FORMULA_BUILDER = {
|
|
|
204
276
|
MISSING_COLUMN_EXPRESSION: "Argument should be a column.",
|
|
205
277
|
NO_COLUMN_EXPRESSION: "Argument cannot be a column.",
|
|
206
278
|
ARGUMENTS_DATATYPE_ERROR: "Arguments should have the same data type.",
|
|
279
|
+
FUNCTION_ARGUMENTS_MISMATCH: "{{i18n.function.name}} function is expecting {{i18n.function.input}} and is receiving {{i18n.function.received}}",
|
|
280
|
+
NOT_ALLOWED_OPERATION: "Expression not allowed. Allowed operators between {{i18n.function.expression.types}}: {{i18n.function.expression.operators}}",
|
|
281
|
+
NOT_ALLOWED_OPERATION_DIFFERENT_TYPES: "Expression not allowed {{i18n.function.expression.value}}",
|
|
282
|
+
NOT_ALLOWED_OPERATION_MISSING_OPERATOR: "Expression not allowed. Missing operator",
|
|
283
|
+
GREATER_THAN: "Argument {{i18n.function.argument.position}} has to be greater or equal than {{i18n.function.argument.greater_than}}",
|
|
284
|
+
INVALID_ALLOW_VALUE: "Argument {{i18n.function.argument.position}} has to be {{i18n.function.argument.allow_value}}",
|
|
207
285
|
},
|
|
208
286
|
},
|
|
209
287
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const I18N_FORMULA_BUILDER_FUNCTION_AND = {
|
|
2
|
+
description: "Evaluates different logical tests and returns true if all logical tests are true and false if at least one of the logical tests returns false. ",
|
|
3
|
+
function_placeholder: "AND(logicalTest1,logicalTest2,...logicalTestn)",
|
|
4
|
+
param_logicalTest1_name: "logicalTest1 (required)",
|
|
5
|
+
param_logicalTest1_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.",
|
|
6
|
+
param_logicalTest2_name: "logicalTest2 (required)",
|
|
7
|
+
param_logicalTest2_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.",
|
|
8
|
+
param_logicalTestn_name: "logicalTestn (optional)",
|
|
9
|
+
param_logicalTestn_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.",
|
|
10
|
+
};
|