@builttocreate/engine-utils 1.8.1-rc.1.2.0 → 1.8.1-rc.1.2.1

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.
@@ -726,16 +726,22 @@ exports.generateInputGroupFields = generateInputGroupFields;
726
726
  var getRowLookupWithPopulatedDropdownCells = function getRowLookupWithPopulatedDropdownCells(columns, rows) {
727
727
  var rowsLookup = {};
728
728
  var tableLookup = generateTableLookup(rows, columns);
729
- console.log('tableLookup[', tableLookup);
730
729
  var validRows = typeof row === 'string' ? JSON.parse(rows) : rows;
731
- validRows.forEach(function (row) {
730
+ validRows.forEach(function (row, rowIndex) {
732
731
  var nextRow = _objectSpread(_objectSpread({}, row), {}, {
733
732
  cells: _objectSpread({}, row.cells)
734
733
  });
735
734
 
736
- columns.forEach(function (column) {
735
+ columns.forEach(function (column, i) {
737
736
  var optionId = nextRow.cells[column._id];
738
737
 
738
+ if (optionId && optionId.charAt(0) === '=') {
739
+ var columnOperand = getColumnOperand(i);
740
+ var cellOperand = getCellOperand(columnOperand, rowIndex);
741
+ console.log('celloperand', cellOperand);
742
+ console.log('tableLookup', tableLookup);
743
+ }
744
+
739
745
  if (optionId && column.type === _FieldTableColumnTypes["default"].dropdown) {
740
746
  nextRow.cells[column._id] = column.optionsLookup[optionId] ? column.optionsLookup[optionId].value : optionId;
741
747
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builttocreate/engine-utils",
3
- "version": "1.8.1-rc.1.2.0",
3
+ "version": "1.8.1-rc.1.2.1",
4
4
  "description": "Utility library for common logic shared across web and mobile",
5
5
  "main": "dist/index.js",
6
6
  "files": [