datatables.net-responsive-bs5
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -82,3 +82,3 @@ /*! Bootstrap 5 integration for DataTables' Responsive | ||
_display.modal = function (options) { | ||
if (!modal) { | ||
if (!modal && _bs.Modal) { | ||
modal = new _bs.Modal(_modal[0]); | ||
@@ -88,3 +88,3 @@ } | ||
return function (row, update, render, closeCallback) { | ||
if (!$.fn.modal) { | ||
if (! modal) { | ||
return _original(row, update, render, closeCallback); | ||
@@ -115,4 +115,3 @@ } | ||
.one('hidden.bs.modal', closeCallback) | ||
.appendTo('body') | ||
.modal(); | ||
.appendTo('body'); | ||
@@ -119,0 +118,0 @@ modal.show(); |
/*! Bootstrap 5 integration for DataTables' Responsive | ||
* © SpryMedia Ltd - datatables.net/license | ||
*/ | ||
!function(n){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-responsive"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(e,d){d.fn.dataTable||require("datatables.net-bs5")(e,d),d.fn.dataTable.Responsive||require("datatables.net-responsive")(e,d)},"undefined"==typeof window?module.exports=function(e,d){return e=e||window,d=d||o(e),a(e,d),n(d,e,e.document)}:(a(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(r,e,l){"use strict";var u,d=r.fn.dataTable,n=d.Responsive.display,f=n.modal,m=r('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body"/></div></div></div>'),o=e.bootstrap;return d.Responsive.bootstrap=function(e){o=e},n.modal=function(s){return u=u||new o.Modal(m[0]),function(e,d,n,o){if(r.fn.modal){var a,t,i=n();if(!1===i)return!1;if(d){if(!r.contains(l,m[0])||e.index()!==m.data("dtr-row-idx"))return null;m.find("div.modal-body").empty().append(i)}else s&&s.header&&(t=(a=m.find("div.modal-header")).find("button").detach(),a.empty().append('<h4 class="modal-title">'+s.header(e)+"</h4>").append(t)),m.find("div.modal-body").empty().append(i),m.data("dtr-row-idx",e.index()).one("hidden.bs.modal",o).appendTo("body").modal(),u.show();return!0}return f(e,d,n,o)}},d}); | ||
!function(n){var o,t;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-responsive"],function(e){return n(e,window,document)}):"object"==typeof exports?(o=require("jquery"),t=function(e,d){d.fn.dataTable||require("datatables.net-bs5")(e,d),d.fn.dataTable.Responsive||require("datatables.net-responsive")(e,d)},"undefined"==typeof window?module.exports=function(e,d){return e=e||window,d=d||o(e),t(e,d),n(d,e,e.document)}:(t(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(r,e,l){"use strict";var u,d=r.fn.dataTable,n=d.Responsive.display,f=n.modal,p=r('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button></div><div class="modal-body"/></div></div></div>'),o=e.bootstrap;return d.Responsive.bootstrap=function(e){o=e},n.modal=function(s){return!u&&o.Modal&&(u=new o.Modal(p[0])),function(e,d,n,o){if(u){var t,a,i=n();if(!1===i)return!1;if(d){if(!r.contains(l,p[0])||e.index()!==p.data("dtr-row-idx"))return null;p.find("div.modal-body").empty().append(i)}else s&&s.header&&(a=(t=p.find("div.modal-header")).find("button").detach(),t.empty().append('<h4 class="modal-title">'+s.header(e)+"</h4>").append(a)),p.find("div.modal-body").empty().append(i),p.data("dtr-row-idx",e.index()).one("hidden.bs.modal",o).appendTo("body"),u.show();return!0}return f(e,d,n,o)}},d}); |
@@ -8,3 +8,3 @@ { | ||
"types": "./types/responsive.bootstrap5.d.ts", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"files": [ | ||
@@ -27,4 +27,4 @@ "css/**/*.css", | ||
"dependencies": { | ||
"datatables.net-responsive": "3.0.0", | ||
"datatables.net-bs5": ">=2.0.0", | ||
"datatables.net-responsive": "3.0.1", | ||
"datatables.net-bs5": "^2", | ||
"jquery": ">=1.7" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26000
418
+ Addeddatatables.net-responsive@3.0.1(transitive)
- Removeddatatables.net-responsive@3.0.0(transitive)
Updateddatatables.net-bs5@^2