Skip to content

Commit

Permalink
update version number to 5.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
olifolkerd committed Jun 5, 2022
1 parent 6f9bb22 commit cf8a240
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 18 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": "5.2.6",
"version": "5.2.7",
"description": "Interactive table generation JavaScript library",
"keywords": [
"table",
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap5.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/tabulator_bootstrap5.min.css.map

Large diffs are not rendered by default.

42 changes: 37 additions & 5 deletions dist/js/tabulator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Tabulator v5.2.6 (c) Oliver Folkerd 2022 */
/* Tabulator v5.2.7 (c) Oliver Folkerd 2022 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -7131,11 +7131,18 @@

_this.blurEvent = _this.hide.bind(_assertThisInitialized(_this), false);
_this.escEvent = _this._escapeCheck.bind(_assertThisInitialized(_this));
_this.destroyBinding = _this.hide.bind(_assertThisInitialized(_this), true);
_this.destroyBinding = _this.tableDestroyed;
_this.destroyed = false;
return _this;
}

_createClass(Popup, [{
key: "tableDestroyed",
value: function tableDestroyed() {
this.destroyed = true;
this.hide(true);
}
}, {
key: "_lookupContainer",
value: function _lookupContainer() {
var container = this.table.options.popupContainer;
Expand Down Expand Up @@ -7233,6 +7240,10 @@
value: function show(origin, position) {
var x, y, parentEl, parentOffset, coords;

if (this.destroyed || this.table.destroyed) {
return this;
}

if (origin instanceof HTMLElement) {
parentEl = origin;
coords = this.elementPositionCoords(origin, position);
Expand Down Expand Up @@ -7265,6 +7276,9 @@

this.visible = true;
this.subscribe("table-destroy", this.destroyBinding);
this.element.addEventListener("mousedown", function (e) {
e.stopPropagation();
});
return this;
}
}, {
Expand Down Expand Up @@ -7320,6 +7334,7 @@

document.body.addEventListener("click", _this2.blurEvent);
document.body.addEventListener("contextmenu", _this2.blurEvent);
document.body.addEventListener("mousedown", _this2.blurEvent);
window.addEventListener("resize", _this2.blurEvent);
document.body.addEventListener("keydown", _this2.escEvent);
}, 100);
Expand All @@ -7345,6 +7360,7 @@
document.body.removeEventListener("keydown", this.escEvent);
document.body.removeEventListener("click", this.blurEvent);
document.body.removeEventListener("contextmenu", this.blurEvent);
document.body.removeEventListener("mousedown", this.blurEvent);
window.removeEventListener("resize", this.blurEvent);
this.table.rowManager.element.removeEventListener("scroll", this.blurEvent);
this.unsubscribe("cell-editing", this.blurEvent);
Expand Down Expand Up @@ -8372,6 +8388,7 @@

this.optionsList = new OptionsList(this, "table constructor");
this.initialized = false;
this.destroyed = false;

if (this.initializeElement(element)) {
this.initializeCoreSystems(options); //delay table creation to allow event bindings immediately after the constructor
Expand Down Expand Up @@ -8598,6 +8615,7 @@
key: "destroy",
value: function destroy() {
var element = this.element;
this.destroyed = true;
TableRegistry.deregister(this); //deregister table from inter-device communication

this.eventBus.dispatch("table-destroy"); //clear row data
Expand Down Expand Up @@ -12399,6 +12417,7 @@
this.values = [];
this.popup = null;
this.listIteration = 0;
this.lastAction = "";
this.blurable = true;
this.actions = {
success: success,
Expand Down Expand Up @@ -12772,10 +12791,12 @@
}, {
key: "_keyEnter",
value: function _keyEnter(e) {
if (this.focusedItem) {
this._chooseItem(this.focusedItem);
if (this.params.autocomplete && this.lastAction === "typing") {
this._resolveValue(true);
} else {
this._cancel();
if (this.focusedItem) {
this._chooseItem(this.focusedItem);
}
}
}
}, {
Expand Down Expand Up @@ -12808,6 +12829,7 @@
value: function _keyAutoCompLetter(e) {
this._filter();

this.lastAction = "typing";
this.typing = true;
}
}, {
Expand All @@ -12833,6 +12855,8 @@
}, {
key: "_focusItem",
value: function _focusItem(item) {
this.lastAction = "focus";

if (this.focusedItem && this.focusedItem.element) {
this.focusedItem.element.classList.remove("focused");
}
Expand Down Expand Up @@ -13013,6 +13037,13 @@

_this4._parseListItem(value, data, 0);
});

if (!this.currentItems.length && this.params.freetext) {
this.input.value = this.initialValues;
this.typing = true;
this.lastAction = "typing";
}

this.data = data;
return data;
}
Expand Down Expand Up @@ -13384,6 +13415,7 @@
} else {
this.currentItems = [item];
item.selected = true;
console.log("choose");
this.input.value = item.label;

this._styleItem(item);
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 v5.2.6 (c) Oliver Folkerd 2022 */
/* Tabulator v5.2.7 (c) Oliver Folkerd 2022 */
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.

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": "5.2.6",
"version": "5.2.7",
"description": "Interactive table generation JavaScript library",
"style": "dist/css/tabulator.css",
"main": "dist/js/tabulator.js",
Expand Down

0 comments on commit cf8a240

Please sign in to comment.