datatables.net-bm 2.0.4 → 2.0.6

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.
@@ -1,5 +1,5 @@
1
1
  /*! DataTables Bulma integration
2
- * ©2020 SpryMedia Ltd - datatables.net/license
2
+ * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
5
5
  (function( factory ){
@@ -1,4 +1,4 @@
1
1
  /*! DataTables Bulma integration
2
- * ©2020 SpryMedia Ltd - datatables.net/license
2
+ * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
  !function(t){var a,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(n){return t(n,window,document)}):"object"==typeof exports?(a=require("jquery"),i=function(n,e){e.fn.dataTable||require("datatables.net")(n,e)},"undefined"==typeof window?module.exports=function(n,e){return n=n||window,e=e||a(n),i(n,e),t(e,0,n.document)}:(i(window,a),module.exports=t(a,window,window.document))):t(jQuery,window,document)}(function(r,n,e){"use strict";var t=r.fn.dataTable;return r.extend(!0,t.defaults,{renderer:"bulma"}),r.extend(!0,t.ext.classes,{container:"dt-container dt-bulma",search:{input:"input"},length:{input:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"}}),t.ext.renderer.pagingButton.bulma=function(n,e,t,a,i){var o=["pagination-link"],a=(a&&o.push("is-current"),r("<li>"));return{display:a,clicker:r("<a>",{href:i?null:"#",class:o.join(" "),disabled:i}).html(t).appendTo(a)}},t.ext.renderer.pagingContainer.bulma=function(n,e){var t=r('<nav class="pagination" role="navigation" aria-label="pagination"><ul class="pagination-list"></ul></nav>');return t.find("ul").append(e),t},t.ext.renderer.layout.bulma=function(n,e,t){var a={},i=r("<div/>",{class:"columns is-multiline"}).appendTo(e);r.each(t,function(n,e){var t;e.table?t="column is-full":"start"===n?t="column is-narrow":"end"===n?(t="column is-narrow",a.marginLeft="auto"):(t="column is-full",a.marginLeft="auto",a.marginRight="auto"),r("<div/>",{id:e.id||null,class:t+" "+(e.className||"")}).css(a).append(e.contents).appendTo(i)})},r(e).on("init.dt",function(n,e){"dt"===n.namespace&&(n=new r.fn.dataTable.Api(e),r("div.dt-length select",n.table().container()).wrap('<div class="select">'))}),t});
@@ -1,4 +1,4 @@
1
1
  /*! DataTables Bulma integration
2
- * ©2020 SpryMedia Ltd - datatables.net/license
2
+ * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
  import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bulma"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-bulma",search:{input:"input"},length:{input:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"}}),DataTable.ext.renderer.pagingButton.bulma=function(a,n,e,t,l){var i=["pagination-link"],t=(t&&i.push("is-current"),$("<li>"));return{display:t,clicker:$("<a>",{href:l?null:"#",class:i.join(" "),disabled:l}).html(e).appendTo(t)}},DataTable.ext.renderer.pagingContainer.bulma=function(a,n){var e=$('<nav class="pagination" role="navigation" aria-label="pagination"><ul class="pagination-list"></ul></nav>');return e.find("ul").append(n),e},DataTable.ext.renderer.layout.bulma=function(a,n,e){var t={},l=$("<div/>",{class:"columns is-multiline"}).appendTo(n);$.each(e,function(a,n){var e;n.table?e="column is-full":"start"===a?e="column is-narrow":"end"===a?(e="column is-narrow",t.marginLeft="auto"):(e="column is-full",t.marginLeft="auto",t.marginRight="auto"),$("<div/>",{id:n.id||null,class:e+" "+(n.className||"")}).css(t).append(n.contents).appendTo(l)})},$(document).on("init.dt",function(a,n){"dt"===a.namespace&&(a=new $.fn.dataTable.Api(n),$("div.dt-length select",a.table().container()).wrap('<div class="select">'))});export default DataTable;
@@ -1,5 +1,5 @@
1
1
  /*! DataTables Bulma integration
2
- * ©2020 SpryMedia Ltd - datatables.net/license
2
+ * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
5
5
  import jQuery from 'jquery';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "js/dataTables.bulma.mjs",
6
6
  "style": "css/dataTables.bulma.css",
7
7
  "types": "./types/dataTables.bulma.d.ts",
8
- "version": "2.0.4",
8
+ "version": "2.0.6",
9
9
  "files": [
10
10
  "css/**/*.css",
11
11
  "js/**/*.js",
@@ -21,7 +21,7 @@
21
21
  "sort"
22
22
  ],
23
23
  "dependencies": {
24
- "datatables.net": "2.0.4",
24
+ "datatables.net": "2.0.6",
25
25
  "jquery": ">=1.7"
26
26
  },
27
27
  "moduleType": [