canvas-datagrid 0.3.15 → 0.3.16
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/CHANGELOG.md +7 -1
- package/dist/canvas-datagrid.debug.js +6 -11
- package/dist/canvas-datagrid.debug.map +1 -1
- package/dist/canvas-datagrid.js +1 -1
- package/dist/canvas-datagrid.module.js +1 -1
- package/dist/canvas-datagrid.module.js.map +1 -1
- package/lib/publicMethods.js +6 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,13 @@ All notable changes to this project will be documented in this file.
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
8
8
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
9
9
|
|
|
10
|
-
## 0.3.
|
|
10
|
+
## 0.3.16 - 2021-11-18
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix string sort when value is null/undefined (faimaklg, #388)
|
|
15
|
+
|
|
16
|
+
## 0.3.15 - 2021-11-18
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
13
19
|
|
|
@@ -8734,27 +8734,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8734
8734
|
self.sorters.string = function (columnName, direction) {
|
|
8735
8735
|
var asc = direction === 'asc';
|
|
8736
8736
|
return function (a, b) {
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
}
|
|
8740
|
-
|
|
8741
|
-
if (b[columnName] === undefined || b[columnName] === null) {
|
|
8742
|
-
return 0;
|
|
8743
|
-
}
|
|
8737
|
+
var aValue = a[columnName] || '';
|
|
8738
|
+
var bValue = b[columnName] || '';
|
|
8744
8739
|
|
|
8745
8740
|
if (asc) {
|
|
8746
|
-
if (!
|
|
8741
|
+
if (!aValue.localeCompare) {
|
|
8747
8742
|
return 1;
|
|
8748
8743
|
}
|
|
8749
8744
|
|
|
8750
|
-
return
|
|
8745
|
+
return aValue.localeCompare(bValue);
|
|
8751
8746
|
}
|
|
8752
8747
|
|
|
8753
|
-
if (!
|
|
8748
|
+
if (!bValue.localeCompare) {
|
|
8754
8749
|
return 1;
|
|
8755
8750
|
}
|
|
8756
8751
|
|
|
8757
|
-
return
|
|
8752
|
+
return bValue.localeCompare(aValue);
|
|
8758
8753
|
};
|
|
8759
8754
|
};
|
|
8760
8755
|
|