Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tabulator-tables

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabulator-tables - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

yarn.lock

8

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

@@ -22,3 +22,7 @@ "keywords": [

"json",
"widget"
"widget",
"jquery",
"react",
"angular",
"vue"
],

@@ -25,0 +29,0 @@ "authors": [

@@ -22,3 +22,3 @@ var gulp = require('gulp'),

var version_no = "4.0.1",
var version_no = "4.0.2",

@@ -25,0 +25,0 @@ version = "/* Tabulator v" + version_no + " (c) Oliver Folkerd */\n";

{
"name": "tabulator-tables",
"version": "4.0.1",
"version": "4.0.2",
"description": "Interactive table generation JavaScript library",

@@ -27,3 +27,7 @@ "main": "dist/js/tabulator.js",

"json",
"widget"
"widget",
"jquery",
"react",
"angular",
"vue"
],

@@ -30,0 +34,0 @@ "author": "Oli Folkerd",

@@ -11,2 +11,8 @@ ![Tabluator Table](http://olifolkerd.github.io/tabulator/images/tabulator.png)

***
NPM Package Changed
================================
jQuery was removed as a dependency in this release, so Tabulator has moved in NPM from the old [jquery.tabulator](https://www.npmjs.com/package/jquery.tabulator) package to the new [tabulator-tables](https://www.npmjs.com/package/tabulator-tables) package.
Features

@@ -22,2 +28,8 @@ ================================

Frontend Framework Support
================================
Tabulator is built to work with all the major front end JavaScript frameworks including React, Angular and Vue.
Setup

@@ -59,4 +71,4 @@ ================================

```html
<link href="https://cdnjs.cloudflare.com/ajax/libs/tabulator/4.0.1/css/tabulator.min.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tabulator/4.0.1/js/tabulator.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/tabulator/4.0.2/css/tabulator.min.css" rel="stylesheet">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tabulator/4.0.2/js/tabulator.min.js"></script>
```

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

@@ -191,3 +191,3 @@ var ColumnManager = function(table){

let match = self.columns.find(function(column){
return column.element.is(subject);
return column.element === subject;
});

@@ -194,0 +194,0 @@

@@ -749,3 +749,3 @@ var Edit = function(table){

input.on("change blur", function(e){
success(input.is(":checked"));
success(input.checked);
});

@@ -756,3 +756,3 @@

if(e.keyCode == 13){
success(input.is(":checked"));
success(input.checked);
}

@@ -793,3 +793,3 @@ if(e.keyCode == 27){

input.on("change blur", function(e){
success(input.is(":checked"));
success(input.checked);
});

@@ -800,3 +800,3 @@

if(e.keyCode == 13){
success(input.is(":checked"));
success(input.checked);
}

@@ -803,0 +803,0 @@ if(e.keyCode == 27){

@@ -65,3 +65,3 @@ var FooterManager = function(table){

FooterManager.prototype.deactivate = function(force){
if(this.element.is(":empty") || force){
if(!this.element.firstChild || force){
if(!this.external){

@@ -71,3 +71,2 @@ this.element.parentNode.removeChild(this.element);

this.active = false;
}

@@ -74,0 +73,0 @@

@@ -177,6 +177,5 @@ var Ajax = function(table){

Ajax.prototype.serializeParams = function(data, prefix){
Ajax.prototype.generateParamsList = function(data, prefix){
var self = this,
output = [],
encoded = [];
output = [];

@@ -186,29 +185,40 @@ prefix = prefix || "";

if ( Array.isArray(data) ) {
data.forEach(function(item, i){
output = output.concat(self.serializeParams(item, prefix ? prefix + "[" + i + "]" : i));
output = output.concat(self.generateParamsList(item, prefix ? prefix + "[" + i + "]" : i));
});
}else if (typeof data === "object"){
for (var key in data){
output = output.concat(self.serializeParams(data[key], prefix ? prefix + "[" + key + "]" : key));
output = output.concat(self.generateParamsList(data[key], prefix ? prefix + "[" + key + "]" : key));
}
}else{
output.push({key:prefix, val:data});
output.push({key:prefix, value:data});
}
if(prefix){
return output;
}else{
output.forEach(function(item){
encoded.push(encodeURIComponent(item.key) + "=" + encodeURIComponent(item.val));
});
return output;
};
return encoded.join("&");
}
Ajax.prototype.serializeParams = function(params){
var output = this.generateParamsList(params),
encoded = [];
output.forEach(function(item){
encoded.push(encodeURIComponent(item.key) + "=" + encodeURIComponent(item.value));
});
return encoded.join("&");
};
Ajax.prototype.formDataParams = function(params){
var output = this.generateParamsList(params),
form = new FormData();
output.forEach(function(item){
form.append(item.key, item.value);
});
return form;
};
//send ajax request

@@ -316,5 +326,2 @@ Ajax.prototype.sendRequest = function(silent){

method: "GET",
headers: {
"Content-Type": "application/json; charset=utf-8",
}
};

@@ -324,6 +331,6 @@

if(params){
if(!config.method || config.method == "get"){
if(!config.method || config.method.toLowerCase() == "get"){
url += "?" + this.serializeParams(params);
}else{
config.body = JSON.stringify(params);
config.body = this.formDataParams(params);
}

@@ -330,0 +337,0 @@ }

@@ -74,3 +74,3 @@ var Format = function(table){

Format.prototype.emptyToSpace = function(value){
return value === null ? "&nbsp" : value;
return value === null || typeof value === "undefined" ? "&nbsp" : value;
};

@@ -498,3 +498,4 @@

function toggleList(isOpen){
var collapse = cell.getRow().getElement().getElementsByClassName(".tabulator-responsive-collapse")[0];
var collapse = cell.getRow().getElement().getElementsByClassName("tabulator-responsive-collapse")[0];
open = isOpen;

@@ -508,2 +509,3 @@

}else{
el.classList.remove("open");
if(collapse){

@@ -510,0 +512,0 @@ collapse.style.display = 'none';

@@ -583,3 +583,3 @@

if(this.element.is(":visible")){
if(Tabulator.prototype.helpers.elVisible(this.element)){
this.initialize(true);

@@ -586,0 +586,0 @@ }

@@ -158,3 +158,3 @@ var RowManager = function(table){

let match = self.rows.find(function(row){
return row.element.is(subject);
return row.element === subject;
});

@@ -161,0 +161,0 @@

@@ -297,3 +297,3 @@

var maxHeight = 0,
minHeight = this.element.clientHeight;
minHeight = this.table.options.resizableRows ? this.element.clientHeight : 0;

@@ -300,0 +300,0 @@ this.cells.forEach(function(cell){

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

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