Socket
Socket
Sign inDemoInstall

tabulator-tables

Package Overview
Dependencies
182
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.5.2 to 5.5.3

2

bower.json
{
"name": "tabulator",
"main": "dist/js/tabulator.js",
"version": "5.5.2",
"version": "5.5.3",
"description": "Interactive table generation JavaScript library",

@@ -6,0 +6,0 @@ "keywords": [

{
"name": "tabulator-tables",
"version": "5.5.2",
"version": "5.5.3",
"description": "Interactive table generation JavaScript library",

@@ -57,3 +57,2 @@ "style": "dist/css/tabulator.css",

"globby": "^11.0.2",
"node-sass": "^7.0.3",
"postcss": "^8.2.4",

@@ -66,3 +65,5 @@ "postcss-prettify": "^0.3.4",

},
"dependencies": {}
"dependencies": {
"node-sass": "^9.0.0"
}
}

@@ -390,3 +390,3 @@ import CoreFeature from './CoreFeature.js';

Object.keys(this.columnsByField).forEach((field) => {
var fieldRoot = field.split(".")[0];
var fieldRoot = this.table.options.nestedFieldSeparator ? field.split(this.table.options.nestedFieldSeparator)[0] : field;
if(fieldRoot === root){

@@ -393,0 +393,0 @@ matches.push(this.columnsByField[field]);

@@ -717,3 +717,3 @@ import CoreFeature from './CoreFeature.js';

if(!handler){
if(!handler || !this.activeRowsPipeline[0]){
this.activeRowsPipeline[0] = this.rows.slice(0);

@@ -728,3 +728,2 @@ }

case "dataPipeline":
for(let i = index; i < this.dataPipeline.length; i++){

@@ -731,0 +730,0 @@ let result = this.dataPipeline[i].handler(this.activeRowsPipeline[i].slice(0));

@@ -16,2 +16,21 @@ export default class Helpers{

static retrieveNestedData(separator, field, data){
var structure = separator ? field.split(separator) : [field],
length = structure.length,
output;
for(let i = 0; i < length; i++){
data = data[structure[i]];
output = data;
if(!data){
break;
}
}
return output;
}
static deepClone(obj, clone, list = []){

@@ -18,0 +37,0 @@ var objectProto = {}.__proto__,

@@ -60,3 +60,3 @@ import Module from '../../core/Module.js';

params = Object.assign(params, ajaxParams);
params = Object.assign(Object.assign({}, ajaxParams), params);
}

@@ -63,0 +63,0 @@

@@ -81,17 +81,20 @@ import Module from '../../core/Module.js';

if(newRow === true){
newRow = this.table.addRow({});
}else{
if(typeof newRow == "function"){
newRow = this.table.addRow(newRow(cell.row.getComponent()));
if(!this.invalidEdit){
if(newRow === true){
newRow = this.table.addRow({});
}else{
newRow = this.table.addRow(Object.assign({}, newRow));
if(typeof newRow == "function"){
newRow = this.table.addRow(newRow(cell.row.getComponent()));
}else{
newRow = this.table.addRow(Object.assign({}, newRow));
}
}
newRow.then(() => {
setTimeout(() => {
cell.getComponent().navigateNext();
});
});
}
newRow.then(() => {
setTimeout(() => {
cell.getComponent().navigateNext();
});
});
}

@@ -352,3 +355,3 @@ }

}
rowEditableCheck(row){

@@ -540,3 +543,3 @@ row.getCells().forEach((cell) => {

var check = cell.column.modules.edit ? true : false;
if(cell.column.modules.edit){

@@ -549,7 +552,7 @@ switch(typeof cell.column.modules.edit.check){

break;
case "string":
check = !!cell.row.data[cell.column.modules.edit.check];
break;
case "boolean":

@@ -560,3 +563,3 @@ check = cell.column.modules.edit.check;

}
return check;

@@ -573,3 +576,3 @@ }

//prevent editing if another cell is refusing to leave focus (eg. validation fail)
if(this.currentCell){

@@ -576,0 +579,0 @@ if(!this.invalidEdit && this.currentCell !== cell){

@@ -0,1 +1,4 @@

import Helpers from '../../../../core/tools/Helpers.js';
export default function(cell, formatterParams, onRendered){

@@ -40,3 +43,4 @@ var value = cell.getValue(),

data = cell.getData();
value = data[formatterParams.urlField];
value = Helpers.retrieveNestedData(this.table.options.nestedFieldSeparator, formatterParams.urlField, data);
}

@@ -43,0 +47,0 @@

@@ -181,3 +181,3 @@ import Module from '../../core/Module.js';

if(this.table.options.pagination){
row = this.rowManager.findRow(row);
row = this.table.rowManager.findRow(row);

@@ -184,0 +184,0 @@ if(row){

@@ -204,3 +204,3 @@ import Module from '../../core/Module.js';

setColumnLayout(layout){
this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns, layout));
this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns, layout, true));
return true;

@@ -271,3 +271,3 @@ }

//merge old and new column definitions
mergeDefinition(oldCols, newCols){
mergeDefinition(oldCols, newCols, mergeAllNew){
var output = [];

@@ -282,3 +282,5 @@

if(from){
if(this.config.columns === true || this.config.columns == undefined){
if(mergeAllNew){
keys = Object.keys(column);
}else if(this.config.columns === true || this.config.columns == undefined){
keys = Object.keys(from);

@@ -285,0 +287,0 @@ keys.push("width");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc