tabulator-tables 5.1.7 → 5.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/bug_report.md +3 -2
- package/.github/ISSUE_TEMPLATE/feature_request.md +1 -1
- package/bower.json +1 -1
- package/dist/js/tabulator.js +8 -4
- package/dist/js/tabulator.js.map +1 -1
- package/dist/js/tabulator.min.js +2 -2
- package/dist/js/tabulator.min.js.map +1 -1
- package/dist/js/tabulator_esm.js +7 -6
- package/dist/js/tabulator_esm.js.map +1 -1
- package/dist/js/tabulator_esm.min.js +2 -2
- package/dist/js/tabulator_esm.min.js.map +1 -1
- package/package.json +1 -1
- package/src/js/core/tools/ComponentFunctionBinder.js +3 -3
- package/src/js/modules/Edit/Edit.js +1 -0
- package/src/js/modules/Edit/defaults/editors/select.js +1 -0
- package/src/js/modules/Format/defaults/formatters/datetime.js +1 -3
- package/src/js/modules/Menu/Menu.js +3 -1
|
@@ -10,7 +10,7 @@ assignees: ''
|
|
|
10
10
|
<!--
|
|
11
11
|
YOUR BUG REPORT MUST CONTAIN A LINK TO A JSFiddle OR Codepen THAT DEMONSTRATES THE ISSUE OR IT WILL BE CLOSED WITHOUT DISCUSSION
|
|
12
12
|
|
|
13
|
-
Please read the Bug Reporting Guide before completing this issue: http://tabulator.info/community
|
|
13
|
+
Please read the Bug Reporting Guide before completing this issue: http://tabulator.info/community/bug
|
|
14
14
|
|
|
15
15
|
Please make sure you fill in all the sections of this template to give us the best chance of helping you
|
|
16
16
|
-->
|
|
@@ -23,8 +23,9 @@ A clear and concise description of what the bug is.
|
|
|
23
23
|
|
|
24
24
|
**Working Example**
|
|
25
25
|
YOU MUST include a link to a JS Fiddle or Codepen that demonstrates the problem, it is very hard to diagnose an issue from a simple description.
|
|
26
|
-
|
|
27
26
|
<!--
|
|
27
|
+
Please read the Minimal Reproducable Example guide if you are unsure what the example should look like http://tabulator.info/community/mre
|
|
28
|
+
|
|
28
29
|
ISSUES CREATED WITHOUT THIS EXAMPLE WILL BE CLOSED WITHOUT DISCUSSION
|
|
29
30
|
-->
|
|
30
31
|
|
|
@@ -8,7 +8,7 @@ assignees: ''
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
<!--
|
|
11
|
-
Please read the Feature Requesting Guide before completing this issue: http://tabulator.info/community
|
|
11
|
+
Please read the Feature Requesting Guide before completing this issue: http://tabulator.info/community/feature
|
|
12
12
|
-->
|
|
13
13
|
|
|
14
14
|
*Is your feature request related to a problem? Please describe.**
|
package/bower.json
CHANGED
package/dist/js/tabulator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Tabulator v5.1.
|
|
1
|
+
/* Tabulator v5.1.8 (c) Oliver Folkerd 2022 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -6675,7 +6675,7 @@
|
|
|
6675
6675
|
}
|
|
6676
6676
|
|
|
6677
6677
|
if (this.bindings[type][funcName]) {
|
|
6678
|
-
console.warn("Unable to bind component handler, a matching function name is already bound", type, funcName,
|
|
6678
|
+
console.warn("Unable to bind component handler, a matching function name is already bound", type, funcName, handler);
|
|
6679
6679
|
} else {
|
|
6680
6680
|
this.bindings[type][funcName] = handler;
|
|
6681
6681
|
}
|
|
@@ -6683,7 +6683,7 @@
|
|
|
6683
6683
|
}, {
|
|
6684
6684
|
key: "handle",
|
|
6685
6685
|
value: function handle(type, component, name) {
|
|
6686
|
-
if (this.bindings[type] && this.bindings[type][name]) {
|
|
6686
|
+
if (this.bindings[type] && this.bindings[type][name] && typeof this.bindings[type][name].bind === 'function') {
|
|
6687
6687
|
return this.bindings[type][name].bind(null, component);
|
|
6688
6688
|
} else {
|
|
6689
6689
|
if (name !== "then" && typeof name === "string" && !name.startsWith("_")) {
|
|
@@ -14115,6 +14115,7 @@
|
|
|
14115
14115
|
cell.column.definition.cellEditing.call(this.table, component);
|
|
14116
14116
|
}
|
|
14117
14117
|
|
|
14118
|
+
this.dispatch("cell-editing", cell);
|
|
14118
14119
|
this.dispatchExternal("cellEditing", component);
|
|
14119
14120
|
params = typeof cell.column.modules.edit.params === "function" ? cell.column.modules.edit.params(component) : cell.column.modules.edit.params;
|
|
14120
14121
|
cellEditor = cell.column.modules.edit.editor.call(self, component, onRendered, success, cancel, params); //if editor returned, add to DOM, if false, abort edit
|
|
@@ -16073,7 +16074,7 @@
|
|
|
16073
16074
|
|
|
16074
16075
|
if (newDatetime.isValid) {
|
|
16075
16076
|
if (formatterParams.timezone) {
|
|
16076
|
-
newDatetime = newDatetime.
|
|
16077
|
+
newDatetime = newDatetime.setZone(formatterParams.timezone);
|
|
16077
16078
|
}
|
|
16078
16079
|
|
|
16079
16080
|
return newDatetime.toFormat(outputFormat);
|
|
@@ -20164,6 +20165,8 @@
|
|
|
20164
20165
|
setTimeout(function () {
|
|
20165
20166
|
_this4.table.rowManager.element.addEventListener("scroll", _this4.blurEvent);
|
|
20166
20167
|
|
|
20168
|
+
_this4.subscribe("cell-editing", _this4.blurEvent);
|
|
20169
|
+
|
|
20167
20170
|
document.body.addEventListener("click", _this4.blurEvent);
|
|
20168
20171
|
document.body.addEventListener("contextmenu", _this4.blurEvent);
|
|
20169
20172
|
window.addEventListener("resize", _this4.blurEvent);
|
|
@@ -20217,6 +20220,7 @@
|
|
|
20217
20220
|
document.body.removeEventListener("contextmenu", this.blurEvent);
|
|
20218
20221
|
window.removeEventListener("resize", this.blurEvent);
|
|
20219
20222
|
this.table.rowManager.element.removeEventListener("scroll", this.blurEvent);
|
|
20223
|
+
this.unsubscribe("cell-editing", this.blurEvent);
|
|
20220
20224
|
|
|
20221
20225
|
if (this.currentComponent) {
|
|
20222
20226
|
this.dispatchExternal("menuClosed", this.currentComponent.getComponent());
|