dtable-sdk
Advanced tools
Comparing version 0.0.135 to 0.0.136
@@ -384,8 +384,9 @@ "use strict"; | ||
}, { | ||
key: "getViewColumns", | ||
value: function getViewColumns(table, view) { | ||
key: "getShownColumns", | ||
value: function getShownColumns(table, view) { | ||
var hidden_columns = view.hidden_columns; | ||
return table.columns.filter(function (column) { | ||
var shownColumns = table.columns.filter(function (column) { | ||
return hidden_columns.indexOf(column.key) === -1; | ||
}); | ||
return shownColumns; | ||
} | ||
@@ -392,0 +393,0 @@ }, { |
@@ -42,7 +42,3 @@ "use strict"; | ||
value: function getStatisticRows(table, view, value, username, userId) { | ||
if (_dtableStore.Views.isFilterView(view, table.columns)) { | ||
return _dtableStore.TableUtils.getRowsByIds(table, _dtableStore.Views.getRowIds(view, table, value, username, userId)); | ||
} | ||
return table.rows; | ||
return _dtableStore.Views.getViewRows(view, table, value, username, userId); | ||
} | ||
@@ -49,0 +45,0 @@ }, { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.135", | ||
"version": "0.0.136", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66358
1397