|
@@ -1068,7 +1068,7 @@ export const conditionBuilder = {
|
|
|
id: 'code',
|
|
|
category: 'value',
|
|
|
name: 'Code',
|
|
|
- compareable: true,
|
|
|
+ compareable: false,
|
|
|
data: { code: '\nreturn true;' },
|
|
|
},
|
|
|
{
|
|
@@ -1122,15 +1122,28 @@ export const conditionBuilder = {
|
|
|
},
|
|
|
],
|
|
|
compareTypes: [
|
|
|
- { id: 'eq', name: 'Equals', needValue: true },
|
|
|
- { id: 'nq', name: 'Not equals', needValue: true },
|
|
|
- { id: 'gt', name: 'Greater than', needValue: true },
|
|
|
- { id: 'gte', name: 'Greater than or equal', needValue: true },
|
|
|
- { id: 'lt', name: 'Less than', needValue: true },
|
|
|
- { id: 'lte', name: 'Less than or equal', needValue: true },
|
|
|
- { id: 'cnt', name: 'Contains', needValue: true },
|
|
|
- { id: 'itr', name: 'Is truthy', needValue: false },
|
|
|
- { id: 'ifl', name: 'Is falsy', needValue: false },
|
|
|
+ { id: 'eq', name: 'Equals', needValue: true, category: 'basic' },
|
|
|
+ { id: 'nq', name: 'Not equals', needValue: true, category: 'basic' },
|
|
|
+ { id: 'gt', name: 'Greater than', needValue: true, category: 'number' },
|
|
|
+ {
|
|
|
+ id: 'gte',
|
|
|
+ name: 'Greater than or equal',
|
|
|
+ needValue: true,
|
|
|
+ category: 'number',
|
|
|
+ },
|
|
|
+ { id: 'lt', name: 'Less than', needValue: true, category: 'number' },
|
|
|
+ {
|
|
|
+ id: 'lte',
|
|
|
+ name: 'Less than or equal',
|
|
|
+ needValue: true,
|
|
|
+ category: 'number',
|
|
|
+ },
|
|
|
+ { id: 'cnt', name: 'Contains', needValue: true, category: 'text' },
|
|
|
+ { id: 'nct', name: 'Not contains', needValue: true, category: 'text' },
|
|
|
+ { id: 'stw', name: 'Starts with', needValue: true, category: 'text' },
|
|
|
+ { id: 'enw', name: 'Ends with', needValue: true, category: 'text' },
|
|
|
+ { id: 'itr', name: 'Is truthy', needValue: false, category: 'boolean' },
|
|
|
+ { id: 'ifl', name: 'Is falsy', needValue: false, category: 'boolean' },
|
|
|
],
|
|
|
inputTypes: {
|
|
|
selector: {
|