Skip to content

Commit

Permalink
Bump Tabulator version to 6.3 (#7419)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Oct 18, 2024
1 parent f7dcc2c commit 95a4480
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion panel/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,16 @@ def bundle_icons(verbose=False, external=True, download_list=None):

def patch_tabulator():
# https://github.com/olifolkerd/tabulator/issues/4421
path = BUNDLE_DIR / 'datatabulator' / 'tabulator-tables@6.2.1' / 'dist' / 'js' / 'tabulator.min.js'
path = BUNDLE_DIR / 'datatabulator' / 'tabulator-tables@6.3.0' / 'dist' / 'js' / 'tabulator.min.js'
text = path.read_text()
old = '"focus"!==this.options("editTriggerEvent")&&"click"!==this.options("editTriggerEvent")'
new = '"click"!==this.options("editTriggerEvent")'
assert text.count(old) == 1
text = text.replace(old, new)
old = '(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw())'
new = '(i=!0,this.redrawing||(this.redrawing=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw(),this.redrawing=!1))'
assert text.count(old) == 1
text = text.replace(old, new)
path.write_text(text)

def bundle_resources(verbose=False, external=True):
Expand Down
2 changes: 1 addition & 1 deletion panel/models/tabulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from ..util import classproperty
from .layout import HTMLBox

TABULATOR_VERSION = "6.2.1"
TABULATOR_VERSION = "6.3.0"

JS_SRC = f"{config.npm_cdn}/tabulator-tables@{TABULATOR_VERSION}/dist/js/tabulator.min.js"
MOMENT_SRC = f"{config.npm_cdn}/luxon/build/global/luxon.min.js"
Expand Down

0 comments on commit 95a4480

Please sign in to comment.