dtable-sdk
Advanced tools
Comparing version 0.0.108 to 0.0.109
@@ -647,16 +647,2 @@ "use strict"; | ||
}, { | ||
key: "getFormulaDisplayString", | ||
value: function getFormulaDisplayString(cellValue, columnData) { | ||
var _ref4 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, | ||
_ref4$tables = _ref4.tables, | ||
tables = _ref4$tables === void 0 ? [] : _ref4$tables, | ||
_ref4$collaborators = _ref4.collaborators, | ||
collaborators = _ref4$collaborators === void 0 ? [] : _ref4$collaborators; | ||
return (0, _dtableStore.getFormulaDisplayString)(cellValue, columnData, { | ||
tables: tables, | ||
collaborators: collaborators | ||
}); | ||
} | ||
}, { | ||
key: "getNumberDisplayString", | ||
@@ -663,0 +649,0 @@ value: function getNumberDisplayString(value, columnData) { |
@@ -42,3 +42,3 @@ "use strict"; | ||
if (columnType === _dtableStore.CellType.FORMULA) { | ||
if (columnType === _dtableStore.CellType.FORMULA || columnType === _dtableStore.CellType.LINK_FORMULA) { | ||
cellValue = formulaRow ? formulaRow[columnKey] : null; | ||
@@ -59,16 +59,6 @@ } else if (columnType === _dtableStore.CellType.GEOLOCATION) { | ||
key: "getLinkDisplayString", | ||
value: function (_getLinkDisplayString) { | ||
function getLinkDisplayString(_x, _x2) { | ||
return _getLinkDisplayString.apply(this, arguments); | ||
} | ||
getLinkDisplayString.toString = function () { | ||
return _getLinkDisplayString.toString(); | ||
}; | ||
return getLinkDisplayString; | ||
}(function (rowIds, linkedTable) { | ||
value: function getLinkDisplayString(rowIds, linkedTable) { | ||
var displayColumnKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0000'; | ||
return getLinkDisplayString(rowIds, linkedTable, displayColumnKey); | ||
}) | ||
return (0, _dtableStore.getLinkDisplayString)(rowIds, linkedTable, displayColumnKey); | ||
} | ||
}, { | ||
@@ -180,6 +170,7 @@ key: "getNumberDisplayString", | ||
case _dtableStore.CellType.LINK_FORMULA: | ||
case _dtableStore.CellType.FORMULA: | ||
{ | ||
if (!formulaRow) return ""; | ||
var formulaCellValue = formulaRow[key] || cellValue; | ||
var formulaCellValue = formulaRow[key]; | ||
@@ -418,2 +409,24 @@ var _ref2 = data || {}, | ||
}, { | ||
key: "sortStatisticData", | ||
value: function sortStatisticData(statistics, sort_type) { | ||
statistics.sort(function (currResult, nextResult) { | ||
var current = currResult.value; | ||
var next = nextResult.value; | ||
if (!current && current !== 0) { | ||
return -1; | ||
} | ||
if (!next && next !== 0) { | ||
return 1; | ||
} | ||
if (sort_type === 'ascending') { | ||
return current > next ? 1 : -1; | ||
} else { | ||
return current > next ? -1 : 1; | ||
} | ||
}); | ||
} | ||
}, { | ||
key: "isArrayCellValue", | ||
@@ -420,0 +433,0 @@ value: function isArrayCellValue(columnType) { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.108", | ||
"version": "0.0.109", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
408643
10
10208
1