New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-tables-2

Package Overview
Dependencies
Maintainers
1
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tables-2 - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

15

compiled/components/renderless/RLTableCell.js

@@ -14,3 +14,3 @@ "use strict";

name: 'RLTableCell',
inject: ['row', 'scopedSlots', 'opts', 'render', 'index', 'setEditingCell', 'updateValue', 'revertValue', 'editing', 'getValue', 'columnClass', 'cellClasses', 'componentsOverride'],
inject: ['row', 'scopedSlots', 'opts', 'render', 'index', 'setEditingCell', 'updateValue', 'revertValue', 'editing', 'getValue', 'columnClass', 'cellClasses', 'componentsOverride', 'isListFilter', 'optionText', 'source', 'dateFormat', 'formatDate'],
props: ['column'],

@@ -50,4 +50,15 @@ render: function render(h) {

return this.getValue(this.Row, this.column);
return this.formatCellContent(this.getValue(this.Row, this.column), this.column);
},
formatCellContent: function formatCellContent(value, column) {
if (this.source === 'client' && this.opts().dateColumns.includes(column)) {
return this.formatDate(value, this.dateFormat(column));
}
if (this.isListFilter(column)) {
return this.optionText(value, column);
}
return value;
},
isEditing: function isEditing() {

@@ -54,0 +65,0 @@ return function () {

3

compiled/computed/filtered-data.js

@@ -26,4 +26,3 @@ "use strict";

this.allFilteredData = JSON.parse(JSON.stringify(data));
data = data.splice(offset, this.limit);
return this.applyFilters(data);
return data.splice(offset, this.limit);
};

@@ -7,3 +7,3 @@ "use strict";

var data = this.opts.responseAdapter.call(this, response);
this.data = this.applyFilters(data.data);
this.data = data.data;

@@ -10,0 +10,0 @@ if (isNaN(data.count)) {

@@ -28,3 +28,2 @@ "use strict";

hasDateFilters: require('../methods/has-date-filters'),
applyFilters: require('../methods/apply-filters'),
optionText: require('../filters/option-text'),

@@ -31,0 +30,0 @@ render: require('../methods/render'),

@@ -99,4 +99,8 @@ "use strict";

return _this.orderBy;
}
},
isListFilter: this.isListFilter,
optionText: this.optionText,
dateFormat: this.dateFormat,
formatDate: this.formatDate
};
};
{
"name": "vue-tables-2",
"description": "Vue.js 2 grid components",
"version": "2.0.1",
"version": "2.0.2",
"keywords": [

@@ -6,0 +6,0 @@ "vue2",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc