|
@@ -36,7 +36,7 @@ export const Operators = {
|
|
|
OPERATOR: 'OPERATOR'
|
|
|
}
|
|
|
|
|
|
-export const operatorTypes = [
|
|
|
+export const OperatorType = [
|
|
|
{
|
|
|
name: 'Variável',
|
|
|
value: Operators.VARIABLE
|
|
@@ -55,7 +55,7 @@ export const operatorTypes = [
|
|
|
// Operation types
|
|
|
// *********************************************************************************
|
|
|
|
|
|
-export const operationTypes = [
|
|
|
+export const OperationType = [
|
|
|
{
|
|
|
name: ';',
|
|
|
friendlyName: 'Fim',
|
|
@@ -97,7 +97,7 @@ export const operationTypes = [
|
|
|
// Operator kinds
|
|
|
// *********************************************************************************
|
|
|
|
|
|
-export const operatorKinds = [
|
|
|
+export const OperatorKind = [
|
|
|
{
|
|
|
name: 'Variável',
|
|
|
value: 'VARIABLE'
|
|
@@ -115,8 +115,8 @@ export const operatorKinds = [
|
|
|
export function htmlOperationTypeScheme () {
|
|
|
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">
|
|
@@ -134,8 +134,8 @@ export function htmlOperationTypeScheme () {
|
|
|
export function htmlOperationKindScheme (operation) {
|
|
|
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">
|
|
@@ -236,8 +236,8 @@ export function htmlOperatorValueInputScheme (operation, operator) {
|
|
|
export function htmlOperationTypeSelect (operation, operator) {
|
|
|
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">
|
|
@@ -252,9 +252,9 @@ export function htmlOperationTypeSelect (operation, operator) {
|
|
|
// *********************************************************************************
|
|
|
|
|
|
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;
|
|
@@ -263,9 +263,9 @@ export function getOperatorTypeByValue (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;
|