Skip to content

Commit

Permalink
Update datatables-net and its extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Apr 28, 2024
1 parent 51b39e9 commit 89c795b
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 68 deletions.
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ ITables ChangeLog
- We have added a logo for ITables ([#257](https://github.com/mwouts/itables/issues/257))
- The _loading_ message gives more information, including the version of ITables and where DataTables is loaded from ([#258](https://github.com/mwouts/itables/issues/258))

**Changed**
- We have updated `DataTables` to `2.0.5` (and its extensions to their latest version)

**Fixed**
- We have improve the compatibility with dark themes ([#255](https://github.com/mwouts/itables/issues/255))
- We now enforce non-sparse index when displaying Pandas Style objects with a multiindex ([#254](https://github.com/mwouts/itables/issues/254))
Expand Down
2 changes: 2 additions & 0 deletions itables/dt_for_itables/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![ITables logo](https://raw.githubusercontent.com/mwouts/itables/3f8e8bd75af7ad38a500518fcb4fbbc370ea6c4c/itables/logo/wide.svg)

This package is a ESM bundle of [DataTables](https://datatables.net/)
and some of its extensions for [ITables](https://github.com/mwouts/itables/).

Expand Down
126 changes: 63 additions & 63 deletions itables/dt_for_itables/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions itables/dt_for_itables/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dt_for_itables",
"version": "2.0.1",
"version": "2.0.5",
"description": "DataTables bundle for itables",
"main": "src.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"dependencies": {
"datatables.net-buttons": "^3.0.1",
"datatables.net-buttons-dt": "^3.0.1",
"datatables.net-dt": "^2.0.0",
"datatables.net-dt": "^2.0.5",
"datatables.net-fixedcolumns-dt": "^5.0.0",
"datatables.net-keytable-dt": "^2.12.0",
"datatables.net-rowgroup-dt": "^1.5.0",
Expand Down
4 changes: 2 additions & 2 deletions itables/html/datatables_template.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<table id="table_id"><thead><tr><th>A</th></tr></thead></table>
<link href="https://www.unpkg.com/dt_for_itables@2.0.1/dt_bundle.css" rel="stylesheet">
<link href="https://www.unpkg.com/dt_for_itables@2.0.5/dt_bundle.css" rel="stylesheet">
<script type="module">
import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.0.1/dt_bundle.js';
import {DataTable, jQuery as $} from 'https://www.unpkg.com/dt_for_itables@2.0.5/dt_bundle.js';

document.querySelectorAll("#table_id:not(.dataTable)").forEach(table => {
// Define the table data
Expand Down
2 changes: 1 addition & 1 deletion itables/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from io import open
from pathlib import Path

UNPKG_DT_BUNDLE_URL = "https://www.unpkg.com/dt_for_itables@2.0.1/dt_bundle.js"
UNPKG_DT_BUNDLE_URL = "https://www.unpkg.com/dt_for_itables@2.0.5/dt_bundle.js"
UNPKG_DT_BUNDLE_CSS = UNPKG_DT_BUNDLE_URL.replace(".js", ".css")


Expand Down

0 comments on commit 89c795b

Please sign in to comment.