dtable-sdk
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -168,2 +168,12 @@ "use strict"; | ||
}, { | ||
key: "getRelatedUsers", | ||
value: function getRelatedUsers() { | ||
return this.dtableStore.collaborators; | ||
} | ||
}, { | ||
key: "getActiveTable", | ||
value: function getActiveTable() { | ||
return this.dtableStore.currentTable; | ||
} | ||
}, { | ||
key: "getTables", | ||
@@ -180,7 +190,28 @@ value: function getTables() { | ||
}, { | ||
key: "getRelatedUsers", | ||
value: function getRelatedUsers() { | ||
return this.dtableStore.collaborators; | ||
key: "getViews", | ||
value: function getViews(table) { | ||
return table.views; | ||
} | ||
}, { | ||
key: "getViewByName", | ||
value: function getViewByName(table, name) { | ||
return table.views.find(function (view) { | ||
return view.name === name; | ||
}); | ||
} | ||
}, { | ||
key: "getColumns", | ||
value: function getColumns(table) { | ||
return table.columns; | ||
} | ||
}, { | ||
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: "getColumnByName", | ||
@@ -187,0 +218,0 @@ value: function getColumnByName(table, name) { |
{ | ||
"name": "dtable-sdk", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "dtable sdk", | ||
@@ -5,0 +5,0 @@ "main": "./dist/dtable.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
189047
4739