tabulator-tables
Advanced tools
Comparing version 5.5.2 to 5.5.3
{ | ||
"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
10462966
11
79837
1
+ Addednode-sass@^9.0.0
+ Added@babel/code-frame@7.24.6(transitive)
+ Added@babel/helper-validator-identifier@7.24.6(transitive)
+ Added@babel/highlight@7.24.6(transitive)
+ Added@gar/promisify@1.1.3(transitive)
+ Added@npmcli/fs@1.1.12.1.2(transitive)
+ Added@npmcli/move-file@1.1.22.0.1(transitive)
+ Added@tootallnate/once@1.1.22.0.0(transitive)
+ Added@types/minimist@1.2.5(transitive)
+ Added@types/normalize-package-data@2.4.4(transitive)
+ Addedabbrev@1.1.1(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedagentkeepalive@4.5.0(transitive)
+ Addedaggregate-error@3.1.0(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@3.2.14.3.0(transitive)
+ Addedaproba@2.0.0(transitive)
+ Addedare-we-there-yet@3.0.1(transitive)
+ Addedarrify@1.0.1(transitive)
+ Addedasync-foreach@0.1.3(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedcacache@15.3.016.1.3(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcamelcase-keys@6.2.2(transitive)
+ Addedchalk@2.4.24.1.2(transitive)
+ Addedchownr@2.0.0(transitive)
+ Addedclean-stack@2.2.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@1.9.32.0.1(transitive)
+ Addedcolor-name@1.1.31.1.4(transitive)
+ Addedcolor-support@1.1.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconsole-control-strings@1.1.0(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addeddebug@4.3.4(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddecamelize-keys@1.1.1(transitive)
+ Addeddelegates@1.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedenv-paths@2.2.1(transitive)
+ Addederr-code@2.0.3(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescalade@3.1.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfs-minipass@2.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedgauge@4.0.4(transitive)
+ Addedgaze@1.1.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedget-stdin@4.0.1(transitive)
+ Addedglob@7.1.77.2.38.1.0(transitive)
+ Addedglobule@1.3.4(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhard-rejection@2.1.0(transitive)
+ Addedhas-flag@3.0.04.0.0(transitive)
+ Addedhas-unicode@2.0.1(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhosted-git-info@2.8.94.1.0(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp-proxy-agent@4.0.15.0.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedhumanize-ms@1.2.1(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedimurmurhash@0.1.4(transitive)
+ Addedindent-string@4.0.0(transitive)
+ Addedinfer-owner@1.0.4(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.13.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedis-lambda@1.0.1(transitive)
+ Addedis-plain-obj@1.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjs-base64@2.6.4(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedkind-of@6.0.3(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@6.0.07.18.3(transitive)
+ Addedmake-fetch-happen@10.2.19.1.0(transitive)
+ Addedmap-obj@1.0.14.3.0(transitive)
+ Addedmeow@9.0.0(transitive)
+ Addedmin-indent@1.0.1(transitive)
+ Addedminimatch@3.0.83.1.25.1.6(transitive)
+ Addedminimist-options@4.1.0(transitive)
+ Addedminipass@3.3.65.0.0(transitive)
+ Addedminipass-collect@1.0.2(transitive)
+ Addedminipass-fetch@1.4.12.1.2(transitive)
+ Addedminipass-flush@1.0.5(transitive)
+ Addedminipass-pipeline@1.2.4(transitive)
+ Addedminipass-sized@1.0.3(transitive)
+ Addedminizlib@2.1.2(transitive)
+ Addedmkdirp@1.0.4(transitive)
+ Addedms@2.1.2(transitive)
+ Addednan@2.19.0(transitive)
+ Addednegotiator@0.6.3(transitive)
+ Addednode-gyp@8.4.1(transitive)
+ Addednode-sass@9.0.0(transitive)
+ Addednopt@5.0.0(transitive)
+ Addednormalize-package-data@2.5.03.0.3(transitive)
+ Addednpmlog@6.0.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-map@4.0.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicocolors@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpromise-inflight@1.0.1(transitive)
+ Addedpromise-retry@2.0.1(transitive)
+ Addedquick-lru@4.0.1(transitive)
+ Addedread-pkg@5.2.0(transitive)
+ Addedread-pkg-up@7.0.1(transitive)
+ Addedreadable-stream@2.3.83.6.2(transitive)
+ Addedredent@3.0.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedretry@0.12.0(transitive)
+ Addedrimraf@3.0.2(transitive)
+ Addedsafe-buffer@5.1.25.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsass-graph@4.0.1(transitive)
+ Addedscss-tokenizer@0.4.3(transitive)
+ Addedsemver@5.7.27.6.2(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@6.2.17.0.0(transitive)
+ Addedsource-map@0.7.4(transitive)
+ Addedspdx-correct@3.2.0(transitive)
+ Addedspdx-exceptions@2.5.0(transitive)
+ Addedspdx-expression-parse@3.0.1(transitive)
+ Addedspdx-license-ids@3.0.18(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedssri@8.0.19.0.1(transitive)
+ Addedstdout-stream@1.4.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstring_decoder@1.1.11.3.0(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedstrip-indent@3.0.0(transitive)
+ Addedsupports-color@5.5.07.2.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtar@6.2.1(transitive)
+ Addedtrim-newlines@3.0.1(transitive)
+ Addedtrue-case-path@2.2.1(transitive)
+ Addedtype-fest@0.18.10.6.00.8.1(transitive)
+ Addedunique-filename@1.1.12.0.1(transitive)
+ Addedunique-slug@2.0.23.0.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedvalidate-npm-package-license@3.0.4(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwide-align@1.1.5(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyallist@4.0.0(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@20.2.921.1.1(transitive)