dtable-sdk
Advanced tools
Comparing version 0.0.136 to 0.0.137
@@ -384,9 +384,5 @@ "use strict"; | ||
}, { | ||
key: "getShownColumns", | ||
value: function getShownColumns(table, view) { | ||
var hidden_columns = view.hidden_columns; | ||
var shownColumns = table.columns.filter(function (column) { | ||
return hidden_columns.indexOf(column.key) === -1; | ||
}); | ||
return shownColumns; | ||
key: "getViewShownColumns", | ||
value: function getViewShownColumns(table, view) { | ||
return _dtableStore.Views.getColumns(view, table); | ||
} | ||
@@ -393,0 +389,0 @@ }, { |
@@ -42,3 +42,7 @@ "use strict"; | ||
value: function getStatisticRows(table, view, value, username, userId) { | ||
return _dtableStore.Views.getViewRows(view, table, 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; | ||
} | ||
@@ -45,0 +49,0 @@ }, { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.136", | ||
"version": "0.0.137", | ||
"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
66359
1396