nwl-components 1.6.0 → 1.7.0
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/README.md +2 -1
- package/dist/nwl-components.es.js +1248 -1238
- package/dist/nwl-components.umd.js +6 -6
- package/dist/sort/nwl-components-sort.es.js +26 -26
- package/dist/sort/nwl-components-sort.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -132,7 +132,8 @@ render();
|
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
- `sortRows(rows, { key, type }, ascending = true)`: a new, sorted array (stable; missing
|
|
135
|
-
values last in both directions;
|
|
135
|
+
values last in both directions; strings in natural order, `localeCompare` with
|
|
136
|
+
`numeric: true`, so "E90" comes before "E120"; since 1.6.1). `sortValue(row, column)`
|
|
136
137
|
is the value it compares.
|
|
137
138
|
- `sortableHeader(th, { direction, onSort })` turns a `<th>` into SortableTh's markup
|
|
138
139
|
(`class="nwl-sortable"`, `aria-sort`, a `<button type="button">` with the th's content
|