Skip to content

Commit

Permalink
build version 6.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Jan 19, 2025
1 parent abc4111 commit a46c3d7
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 38 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tabulator",
"main": "dist/js/tabulator.js",
"version": "6.3.0",
"version": "6.3.1",
"description": "Interactive table generation JavaScript library",
"keywords": [
"table",
Expand Down
74 changes: 51 additions & 23 deletions dist/js/tabulator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Tabulator v6.3.0 (c) Oliver Folkerd 2024 */
/* Tabulator v6.3.1 (c) Oliver Folkerd 2025 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -1663,10 +1663,15 @@

if(maxWidth){
var setTo = maxWidth + 1;
if (this.maxInitialWidth && !force) {
setTo = Math.min(setTo, this.maxInitialWidth);

if(force){
this.setWidth(setTo);
}else {
if (this.maxInitialWidth && !force) {
setTo = Math.min(setTo, this.maxInitialWidth);
}
this.setWidthActual(setTo);
}
this.setWidthActual(setTo);
}
}
}
Expand Down Expand Up @@ -2189,7 +2194,7 @@
if(column.visible){
if(!column.modules.frozen){
width = column.getWidth();

config.leftPos = colPos;
config.rightPos = colPos + width;

Expand Down Expand Up @@ -2247,7 +2252,7 @@
rowFrag.appendChild(cell.getElement());
});
row.element.appendChild(rowFrag);

row.cells.forEach((cell) => {
cell.cellRendered();
});
Expand All @@ -2260,7 +2265,11 @@

reinitializeColumnWidths(columns){
for(let i = this.leftCol; i <= this.rightCol; i++){
this.columns[i].reinitializeWidth();
let col = this.columns[i];

if(col){
col.reinitializeWidth();
}
}
}

Expand Down Expand Up @@ -2348,11 +2357,11 @@
reinitializeRows(){
var visibleRows = this.getVisibleRows(),
otherRows = this.table.rowManager.getRows().filter(row => !visibleRows.includes(row));

visibleRows.forEach((row) => {
this.reinitializeRow(row, true);
});

otherRows.forEach((row) =>{
row.deinitialize();
});
Expand Down Expand Up @@ -2399,7 +2408,7 @@
working = true;

while(working){

let column = this.columns[this.rightCol + 1];

if(column){
Expand All @@ -2417,7 +2426,7 @@
this.fitDataColActualWidthCheck(column);

this.rightCol++; // Don't move this below the >= check below

this.getVisibleRows().forEach((row) => {
if(row.type !== "group"){
row.modules.vdomHoz.rightCol = this.rightCol;
Expand Down Expand Up @@ -2462,7 +2471,7 @@
});

this.leftCol--; // don't move this below the <= check below

this.getVisibleRows().forEach((row) => {
if(row.type !== "group"){
row.modules.vdomHoz.leftCol = this.leftCol;
Expand Down Expand Up @@ -2520,7 +2529,7 @@

this.vDomPadRight += column.getWidth();
this.rightCol --;

this.getVisibleRows().forEach((row) => {
if(row.type !== "group"){
row.modules.vdomHoz.rightCol = this.rightCol;
Expand All @@ -2542,7 +2551,7 @@
removeColLeft(){
var changes = false,
working = true;

while(working){
let column = this.columns[this.leftCol];

Expand All @@ -2564,7 +2573,7 @@

this.vDomPadLeft += column.getWidth();
this.leftCol ++;

this.getVisibleRows().forEach((row) => {
if(row.type !== "group"){
row.modules.vdomHoz.leftCol = this.leftCol;
Expand Down Expand Up @@ -2610,17 +2619,17 @@
leftCol:this.leftCol,
rightCol:this.rightCol,
};

if(this.table.modules.frozenColumns){
this.table.modules.frozenColumns.leftColumns.forEach((column) => {
this.appendCell(row, column);
});
}

for(let i = this.leftCol; i <= this.rightCol; i++){
this.appendCell(row, this.columns[i]);
}

if(this.table.modules.frozenColumns){
this.table.modules.frozenColumns.rightColumns.forEach((column) => {
this.appendCell(row, column);
Expand All @@ -2644,7 +2653,7 @@

var rowEl = row.getElement();
while(rowEl.firstChild) rowEl.removeChild(rowEl.firstChild);

this.initializeRow(row);
}
}
Expand Down Expand Up @@ -6204,8 +6213,9 @@
var keys = Object.keys(targets).reverse(),
listener = this.listeners[type],
matches = {},
output = {},
targetMatches = {};

for(let key of keys){
let component,
target = targets[key],
Expand Down Expand Up @@ -6260,8 +6270,14 @@
}

this.previousTargets = targetMatches;

//reverse order keys are set in so events trigger in correct sequence
Object.keys(targets).forEach((key) => {
let value = matches[key];
output[key] = value;
});

return matches;
return output;
}

triggerEvents(type, e, targets){
Expand Down Expand Up @@ -10696,6 +10712,7 @@

this.subscribe("row-init", this.initializeRow.bind(this));
this.subscribe("row-layout-after", this.layoutRow.bind(this));
this.subscribe("row-deleting", this.rowDeleting.bind(this));
this.subscribe("row-deleted", this.rowDelete.bind(this),0);
this.subscribe("row-data-changed", this.rowDataChanged.bind(this), 10);
this.subscribe("cell-value-updated", this.cellValueChanged.bind(this));
Expand Down Expand Up @@ -11035,6 +11052,18 @@
return output;
}

rowDeleting(row){
var config = row.modules.dataTree;

if (config && config.children && Array.isArray(config.children)){
config.children.forEach((childRow) => {
if(childRow instanceof Row){
childRow.wipe();
}
});
}
}

rowDelete(row){
var parent = row.modules.dataTree.parent,
childIndex;
Expand Down Expand Up @@ -11551,7 +11580,6 @@
this.registerTableOption("downloadEncoder", function(data, mimeType){
return new Blob([data],{type:mimeType});
}); //function to manipulate download data
// this.registerTableOption("downloadReady", undefined); //warn of function deprecation
this.registerTableOption("downloadConfig", {}); //download config
this.registerTableOption("downloadRowRange", "active"); //restrict download to active rows only

Expand All @@ -11567,7 +11595,7 @@
}

deprecatedOptionsCheck(){
// this.deprecationCheck("downloadReady", "downloadEncoder");

}

///////////////////////////////////
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tabulator.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tabulator.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tabulator.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Tabulator v6.3.0 (c) Oliver Folkerd 2025 */
/* Tabulator v6.3.1 (c) Oliver Folkerd 2025 */
class CoreFeature{

constructor(table){
Expand Down
4 changes: 2 additions & 2 deletions dist/js/tabulator_esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tabulator_esm.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.min.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/tabulator_esm.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Tabulator v6.3.0 (c) Oliver Folkerd 2025 */
/* Tabulator v6.3.1 (c) Oliver Folkerd 2025 */
class CoreFeature{

constructor(table){
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tabulator-tables",
"version": "6.3.0",
"version": "6.3.1",
"description": "Interactive table generation JavaScript library",
"style": "dist/css/tabulator.css",
"main": "dist/js/tabulator.js",
Expand Down

0 comments on commit a46c3d7

Please sign in to comment.