dtable-sdk
Advanced tools
Comparing version 0.0.131 to 0.0.132-beta
@@ -40,6 +40,18 @@ "use strict"; | ||
_createClass(StatUtils, null, [{ | ||
key: "init", | ||
value: function init() { | ||
var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
this.config = config; | ||
} | ||
}, { | ||
key: "getStatisticRows", | ||
value: function getStatisticRows(table, view, value) { | ||
var _ref = this.config || {}, | ||
_ref$username = _ref.username, | ||
username = _ref$username === void 0 ? null : _ref$username, | ||
_ref$userId = _ref.userId, | ||
userId = _ref$userId === void 0 ? null : _ref$userId; | ||
if (_dtableStore.Views.isFilterView(view, table.columns)) { | ||
return _dtableStore.TableUtils.getRowsByIds(table, _dtableStore.Views.getRowIds(view, table, value)); | ||
return _dtableStore.TableUtils.getRowsByIds(table, _dtableStore.Views.getRowIds(view, table, value, username, userId)); | ||
} | ||
@@ -94,10 +106,10 @@ | ||
key: "getCellValueDisplayString", | ||
value: function getCellValueDisplayString(row, type, key, _ref) { | ||
var _ref$tables = _ref.tables, | ||
tables = _ref$tables === void 0 ? [] : _ref$tables, | ||
_ref$formulaRows = _ref.formulaRows, | ||
formulaRows = _ref$formulaRows === void 0 ? {} : _ref$formulaRows, | ||
data = _ref.data, | ||
_ref$collaborators = _ref.collaborators, | ||
collaborators = _ref$collaborators === void 0 ? [] : _ref$collaborators; | ||
value: function getCellValueDisplayString(row, type, key, _ref2) { | ||
var _ref2$tables = _ref2.tables, | ||
tables = _ref2$tables === void 0 ? [] : _ref2$tables, | ||
_ref2$formulaRows = _ref2.formulaRows, | ||
formulaRows = _ref2$formulaRows === void 0 ? {} : _ref2$formulaRows, | ||
data = _ref2.data, | ||
_ref2$collaborators = _ref2.collaborators, | ||
collaborators = _ref2$collaborators === void 0 ? [] : _ref2$collaborators; | ||
return (0, _dtableStore.getCellValueDisplayString)(row, type, key, { | ||
@@ -190,4 +202,4 @@ tables: tables, | ||
var _ref2 = data || {}, | ||
result_type = _ref2.result_type; | ||
var _ref3 = data || {}, | ||
result_type = _ref3.result_type; | ||
@@ -209,4 +221,4 @@ if (result_type === _dtableStore.FORMULA_RESULT_TYPE.ARRAY) { | ||
{ | ||
var _ref3 = data || {}, | ||
geo_format = _ref3.geo_format; | ||
var _ref4 = data || {}, | ||
geo_format = _ref4.geo_format; | ||
@@ -344,4 +356,4 @@ if (geo_format === 'country_region' || geo_format === 'lng_lat' || !geoGranularity) { | ||
if (column_type === _dtableStore.CellType.SINGLE_SELECT) { | ||
var _ref4 = data || {}, | ||
options = _ref4.options; | ||
var _ref5 = data || {}, | ||
options = _ref5.options; | ||
@@ -399,4 +411,4 @@ Array.isArray(options) && options.forEach(function (option, index) { | ||
{ | ||
var _ref5 = data || {}, | ||
result_type = _ref5.result_type; | ||
var _ref6 = data || {}, | ||
result_type = _ref6.result_type; | ||
@@ -403,0 +415,0 @@ if (result_type === _dtableStore.FORMULA_RESULT_TYPE.NUMBER) { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.131", | ||
"version": "0.0.132beta", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
66931
1411
1