datatables.net-responsive-bs5
Advanced tools
Comparing version 2.3.0 to 2.4.0
/*! Bootstrap 5 integration for DataTables' Responsive | ||
* ©2021 SpryMedia Ltd - datatables.net/license | ||
* © SpryMedia Ltd - datatables.net/license | ||
*/ | ||
@@ -16,13 +16,22 @@ | ||
if ( ! root ) { | ||
// CommonJS environments without a window global must pass a | ||
// root. This will give an error otherwise | ||
root = window; | ||
} | ||
if ( ! $ || ! $.fn.dataTable ) { | ||
$ = require('datatables.net-bs5')(root, $).$; | ||
if ( ! $ ) { | ||
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window | ||
require('jquery') : | ||
require('jquery')( root ); | ||
} | ||
if ( ! $.fn.dataTable.Responsive ) { | ||
if ( ! $.fn.dataTable ) { | ||
require('datatables.net-bs5')(root, $); | ||
} | ||
if ( ! $.fn.dataTable ) { | ||
require('datatables.net-responsive')(root, $); | ||
} | ||
return factory( $, root, root.document ); | ||
@@ -40,2 +49,3 @@ }; | ||
var _display = DataTable.Responsive.display; | ||
@@ -102,3 +112,3 @@ var _original = _display.modal; | ||
return DataTable.Responsive; | ||
return DataTable; | ||
})); |
@@ -1,12 +0,4 @@ | ||
/*! | ||
Bootstrap 5 integration for DataTables' Responsive | ||
©2021 SpryMedia Ltd - datatables.net/license | ||
*/ | ||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var f=a[d];if(c.call(b,f,d,a))return{i:d,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1; | ||
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){if(a==Array.prototype||a==Object.prototype)return a;a[c]=b.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); | ||
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,c){var b=$jscomp.propertyToPolyfillSymbol[c];if(null==b)return a[c];b=a[b];return void 0!==b?b:a[c]}; | ||
$jscomp.polyfill=function(a,c,b,e){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,b,e):$jscomp.polyfillUnisolated(a,c,b,e))};$jscomp.polyfillUnisolated=function(a,c,b,e){b=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];if(!(d in b))return;b=b[d]}a=a[a.length-1];e=b[a];c=c(e);c!=e&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}; | ||
$jscomp.polyfillIsolated=function(a,c,b,e){var d=a.split(".");a=1===d.length;e=d[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<d.length-1;f++){var g=d[f];if(!(g in e))return;e=e[g]}d=d[d.length-1];b=$jscomp.IS_SYMBOL_NATIVE&&"es6"===b?e[d]:null;c=c(b);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:c}):c!==b&&($jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+d,d= | ||
$jscomp.propertyToPolyfillSymbol[d],$jscomp.defineProperty(e,d,{configurable:!0,writable:!0,value:c})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(c,b){return $jscomp.findInternal(this,c,b).v}},"es6","es3"); | ||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-responsive"],function(c){return a(c,window,document)}):"object"===typeof exports?module.exports=function(c,b){c||(c=window);b&&b.fn.dataTable||(b=require("datatables.net-bs5")(c,b).$);b.fn.dataTable.Responsive||require("datatables.net-responsive")(c,b);return a(b,c,c.document)}:a(jQuery,window,document)})(function(a,c,b,e){b=a.fn.dataTable;e=b.Responsive.display;var d=e.modal,f=a('<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>'), | ||
g,l=c.bootstrap;b.Responsive.bootstrap=function(h){l=h};e.modal=function(h){g||(g=new l.Modal(f[0]));return function(m,k,n){if(!a.fn.modal)d(m,k,n);else if(!k){if(h&&h.header){k=f.find("div.modal-header");var p=k.find("button").detach();k.empty().append('<h4 class="modal-title">'+h.header(m)+"</h4>").append(p)}f.find("div.modal-body").empty().append(n());f.appendTo("body").modal();g.show()}}};return b.Responsive}); | ||
/*! Bootstrap 5 integration for DataTables' Responsive | ||
* © SpryMedia Ltd - datatables.net/license | ||
*/ | ||
!function(a){"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-responsive"],function(e){return a(e,window,document)}):"object"==typeof exports?module.exports=function(e,d){return e=e||window,(d=d||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-bs5")(e,d),d.fn.dataTable||require("datatables.net-responsive")(e,d),a(d,e,e.document)}:a(jQuery,window,document)}(function(i,e,d,a){"use strict";var s,o=i.fn.dataTable,t=o.Responsive.display,l=t.modal,r=i('<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>'),u=e.bootstrap;return o.Responsive.bootstrap=function(e){u=e},t.modal=function(n){return s=s||new u.Modal(r[0]),function(e,d,a){var o,t;i.fn.modal?d||(n&&n.header&&(t=(o=r.find("div.modal-header")).find("button").detach(),o.empty().append('<h4 class="modal-title">'+n.header(e)+"</h4>").append(t)),r.find("div.modal-body").empty().append(a()),r.appendTo("body").modal(),s.show()):l(e,d,a)}},o}); |
@@ -5,8 +5,10 @@ { | ||
"main": "js/responsive.bootstrap5.js", | ||
"module": "js/responsive.bootstrap5.mjs", | ||
"style": "css/responsive.bootstrap5.css", | ||
"types": "./types/responsive.bootstrap5.d.ts", | ||
"version": "2.3.0", | ||
"types": "./types/types.d.ts", | ||
"version": "2.4.0", | ||
"files": [ | ||
"css/**/*.css", | ||
"js/**/*.js", | ||
"js/**/*.mjs", | ||
"types/**/*.d.ts" | ||
@@ -25,4 +27,4 @@ ], | ||
"dependencies": { | ||
"datatables.net-responsive": ">=2.2.9", | ||
"datatables.net-bs5": ">=1.11.3", | ||
"datatables.net-responsive": ">=2.3.0", | ||
"datatables.net-bs5": ">=1.12.1", | ||
"jquery": ">=1.7" | ||
@@ -29,0 +31,0 @@ }, |
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
27527
11
556