handsontable 0.0.0-next-d008dbc-20240819 → 0.0.0-next-a5069f0-20240819
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.
Potentially problematic release.
This version of handsontable might be problematic. Click here for more details.
- package/base.js +2 -2
- package/base.mjs +2 -2
- package/dist/handsontable.css +2 -2
- package/dist/handsontable.full.css +2 -2
- package/dist/handsontable.full.js +15 -6
- package/dist/handsontable.full.min.css +2 -2
- package/dist/handsontable.full.min.js +4 -4
- package/dist/handsontable.js +15 -6
- package/dist/handsontable.min.css +2 -2
- package/dist/handsontable.min.js +4 -4
- package/helpers/mixed.js +1 -1
- package/helpers/mixed.mjs +1 -1
- package/package.json +1 -1
- package/plugins/columnSorting/columnSorting.js +10 -1
- package/plugins/columnSorting/columnSorting.mjs +10 -1
package/helpers/mixed.js
CHANGED
|
@@ -134,7 +134,7 @@ const domMessages = {
|
|
|
134
134
|
function _injectProductInfo(key, element) {
|
|
135
135
|
const hasValidType = !isEmpty(key);
|
|
136
136
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
|
137
|
-
const hotVersion = "0.0.0-next-
|
|
137
|
+
const hotVersion = "0.0.0-next-a5069f0-20240819";
|
|
138
138
|
let keyValidityDate;
|
|
139
139
|
let consoleMessageState = 'invalid';
|
|
140
140
|
let domMessageState = 'invalid';
|
package/helpers/mixed.mjs
CHANGED
|
@@ -124,7 +124,7 @@ const domMessages = {
|
|
|
124
124
|
export function _injectProductInfo(key, element) {
|
|
125
125
|
const hasValidType = !isEmpty(key);
|
|
126
126
|
const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
|
|
127
|
-
const hotVersion = "0.0.0-next-
|
|
127
|
+
const hotVersion = "0.0.0-next-a5069f0-20240819";
|
|
128
128
|
let keyValidityDate;
|
|
129
129
|
let consoleMessageState = 'invalid';
|
|
130
130
|
let domMessageState = 'invalid';
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/handsontable/handsontable/issues"
|
|
11
11
|
},
|
|
12
12
|
"author": "Handsoncode <hello@handsontable.com>",
|
|
13
|
-
"version": "0.0.0-next-
|
|
13
|
+
"version": "0.0.0-next-a5069f0-20240819",
|
|
14
14
|
"main": "index",
|
|
15
15
|
"module": "index.mjs",
|
|
16
16
|
"jsnext:main": "index.mjs",
|
|
@@ -722,7 +722,16 @@ class ColumnSorting extends _base.BasePlugin {
|
|
|
722
722
|
this.hot.deselectCell();
|
|
723
723
|
this.hot.selectColumns(coords.col);
|
|
724
724
|
}
|
|
725
|
-
this.
|
|
725
|
+
const activeEditor = this.hot.getActiveEditor();
|
|
726
|
+
const nextConfig = this.getColumnNextConfig(coords.col);
|
|
727
|
+
if (activeEditor !== null && activeEditor !== void 0 && activeEditor.isOpened() && this.hot.getCellValidator(activeEditor.row, activeEditor.col)) {
|
|
728
|
+
// Postpone sorting until the cell's value is validated and saved.
|
|
729
|
+
this.hot.addHookOnce('postAfterValidate', () => {
|
|
730
|
+
this.sort(nextConfig);
|
|
731
|
+
});
|
|
732
|
+
} else {
|
|
733
|
+
this.sort(nextConfig);
|
|
734
|
+
}
|
|
726
735
|
}
|
|
727
736
|
}
|
|
728
737
|
|
|
@@ -718,7 +718,16 @@ export class ColumnSorting extends BasePlugin {
|
|
|
718
718
|
this.hot.deselectCell();
|
|
719
719
|
this.hot.selectColumns(coords.col);
|
|
720
720
|
}
|
|
721
|
-
this.
|
|
721
|
+
const activeEditor = this.hot.getActiveEditor();
|
|
722
|
+
const nextConfig = this.getColumnNextConfig(coords.col);
|
|
723
|
+
if (activeEditor !== null && activeEditor !== void 0 && activeEditor.isOpened() && this.hot.getCellValidator(activeEditor.row, activeEditor.col)) {
|
|
724
|
+
// Postpone sorting until the cell's value is validated and saved.
|
|
725
|
+
this.hot.addHookOnce('postAfterValidate', () => {
|
|
726
|
+
this.sort(nextConfig);
|
|
727
|
+
});
|
|
728
|
+
} else {
|
|
729
|
+
this.sort(nextConfig);
|
|
730
|
+
}
|
|
722
731
|
}
|
|
723
732
|
}
|
|
724
733
|
|