|
@@ -36,7 +36,7 @@ export const Operators = {
|
|
OPERATOR: 'OPERATOR'
|
|
OPERATOR: 'OPERATOR'
|
|
}
|
|
}
|
|
|
|
|
|
-export const operatorTypes = [
|
|
|
|
|
|
+export const OperatorType = [
|
|
{
|
|
{
|
|
name: 'Variável',
|
|
name: 'Variável',
|
|
value: Operators.VARIABLE
|
|
value: Operators.VARIABLE
|
|
@@ -55,7 +55,7 @@ export const operatorTypes = [
|
|
// Operation types
|
|
// Operation types
|
|
// *********************************************************************************
|
|
// *********************************************************************************
|
|
|
|
|
|
-export const operationTypes = [
|
|
|
|
|
|
+export const OperationType = [
|
|
{
|
|
{
|
|
name: ';',
|
|
name: ';',
|
|
friendlyName: 'Fim',
|
|
friendlyName: 'Fim',
|
|
@@ -97,7 +97,7 @@ export const operationTypes = [
|
|
// Operator kinds
|
|
// Operator kinds
|
|
// *********************************************************************************
|
|
// *********************************************************************************
|
|
|
|
|
|
-export const operatorKinds = [
|
|
|
|
|
|
+export const OperatorKind = [
|
|
{
|
|
{
|
|
name: 'Variável',
|
|
name: 'Variável',
|
|
value: 'VARIABLE'
|
|
value: 'VARIABLE'
|
|
@@ -115,8 +115,8 @@ export const operatorKinds = [
|
|
export function htmlOperationTypeScheme () {
|
|
export function htmlOperationTypeScheme () {
|
|
let operationTypesSelect = ``;
|
|
let operationTypesSelect = ``;
|
|
|
|
|
|
- for (let i = 0; i < operationTypes.length; i++) {
|
|
|
|
- operationTypesSelect += `<option value="${operationTypes[i].value}">${operationTypes[i].name}</option>`;
|
|
|
|
|
|
+ for (let i = 0; i < OperationType.length; i++) {
|
|
|
|
+ operationTypesSelect += `<option value="${OperationType[i].value}">${OperationType[i].name}</option>`;
|
|
}
|
|
}
|
|
|
|
|
|
return `<div class="col-2">
|
|
return `<div class="col-2">
|
|
@@ -134,8 +134,8 @@ export function htmlOperationTypeScheme () {
|
|
export function htmlOperationKindScheme (operation) {
|
|
export function htmlOperationKindScheme (operation) {
|
|
let operatorKindsSelect = ``;
|
|
let operatorKindsSelect = ``;
|
|
|
|
|
|
- for (let i = 0; i < operatorKinds.length; i++) {
|
|
|
|
- operatorKindsSelect += `<option value="${operatorKinds[i].value}">${operatorKinds[i].name}</option>`;
|
|
|
|
|
|
+ for (let i = 0; i < OperatorKind.length; i++) {
|
|
|
|
+ operatorKindsSelect += `<option value="${OperatorKind[i].value}">${OperatorKind[i].name}</option>`;
|
|
}
|
|
}
|
|
|
|
|
|
return `<div class="col-3">
|
|
return `<div class="col-3">
|
|
@@ -236,8 +236,8 @@ export function htmlOperatorValueInputScheme (operation, operator) {
|
|
export function htmlOperationTypeSelect (operation, operator) {
|
|
export function htmlOperationTypeSelect (operation, operator) {
|
|
let operationTypesSelect = ``;
|
|
let operationTypesSelect = ``;
|
|
|
|
|
|
- for (let i = 0; i < operationTypes.length; i++) {
|
|
|
|
- operationTypesSelect += `<option value="${operationTypes[i].value}" title="${operationTypes[i].friendlyName}">${operationTypes[i].name}</option>`;
|
|
|
|
|
|
+ for (let i = 0; i < OperationType.length; i++) {
|
|
|
|
+ operationTypesSelect += `<option value="${OperationType[i].value}" title="${OperationType[i].friendlyName}">${OperationType[i].name}</option>`;
|
|
}
|
|
}
|
|
|
|
|
|
return `<div class="col-2">
|
|
return `<div class="col-2">
|
|
@@ -252,9 +252,9 @@ export function htmlOperationTypeSelect (operation, operator) {
|
|
// *********************************************************************************
|
|
// *********************************************************************************
|
|
|
|
|
|
export function getOperatorTypeByValue (value) {
|
|
export function getOperatorTypeByValue (value) {
|
|
- for (let i = 0; i < operatorTypes.length; i++) {
|
|
|
|
- if (operatorTypes[i].value === value)
|
|
|
|
- return operatorTypes[i];
|
|
|
|
|
|
+ for (let i = 0; i < OperatorType.length; i++) {
|
|
|
|
+ if (OperatorType[i].value === value)
|
|
|
|
+ return OperatorType[i];
|
|
}
|
|
}
|
|
|
|
|
|
return null;
|
|
return null;
|
|
@@ -263,9 +263,9 @@ export function getOperatorTypeByValue (value) {
|
|
// *********************************************************************************
|
|
// *********************************************************************************
|
|
|
|
|
|
export function getOperationTypeByValue (value) {
|
|
export function getOperationTypeByValue (value) {
|
|
- for (let i = 0; i < operationTypes.length; i++) {
|
|
|
|
- if (operationTypes[i].value === value)
|
|
|
|
- return operationTypes[i];
|
|
|
|
|
|
+ for (let i = 0; i < OperationType.length; i++) {
|
|
|
|
+ if (OperationType[i].value === value)
|
|
|
|
+ return OperationType[i];
|
|
}
|
|
}
|
|
|
|
|
|
return null;
|
|
return null;
|