@ntlab/ntjs-assets 2.68.0 → 2.70.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/assets/js/DataTables/Extensions/FixedHeader/js/dataTables.fixedHeader.js +43 -13
- package/assets/js/DataTables/Extensions/FixedHeader/js/dataTables.fixedHeader.min.js +2 -2
- package/assets/js/DataTables/Extensions/FixedHeader/js/fixedHeader.bootstrap5.min.js +1 -1
- package/assets/js/DataTables/Extensions/FixedHeader/js/fixedHeader.dataTables.min.js +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.rtl.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.rtl.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.rtl.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-grid.rtl.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.rtl.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.rtl.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.rtl.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-reboot.rtl.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.rtl.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.rtl.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.rtl.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap-utilities.rtl.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap.css +1 -1
- package/assets/js/bootstrap/css/bootstrap.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap.min.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap.rtl.css +1 -1
- package/assets/js/bootstrap/css/bootstrap.rtl.css.map +1 -1
- package/assets/js/bootstrap/css/bootstrap.rtl.min.css +1 -1
- package/assets/js/bootstrap/css/bootstrap.rtl.min.css.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.bundle.js +3 -3
- package/assets/js/bootstrap/js/bootstrap.bundle.js.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.bundle.min.js +2 -2
- package/assets/js/bootstrap/js/bootstrap.bundle.min.js.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.esm.js +3 -3
- package/assets/js/bootstrap/js/bootstrap.esm.js.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.esm.min.js +2 -2
- package/assets/js/bootstrap/js/bootstrap.esm.min.js.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.js +3 -3
- package/assets/js/bootstrap/js/bootstrap.js.map +1 -1
- package/assets/js/bootstrap/js/bootstrap.min.js +2 -2
- package/assets/js/bootstrap/js/bootstrap.min.js.map +1 -1
- package/assets/js/cdn.json +6 -2
- package/assets/js/exif-js/exif.js +1059 -0
- package/assets/js/exif-js/exif.min.js +8 -0
- package/assets/js/metadata/metadata.js +1684 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! FixedHeader 4.0.
|
|
1
|
+
/*! FixedHeader 4.0.3
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
@@ -53,7 +53,7 @@ var DataTable = $.fn.dataTable;
|
|
|
53
53
|
* @summary FixedHeader
|
|
54
54
|
* @description Fix a table's header or footer, so it is always visible while
|
|
55
55
|
* scrolling
|
|
56
|
-
* @version 4.0.
|
|
56
|
+
* @version 4.0.3
|
|
57
57
|
* @author SpryMedia Ltd
|
|
58
58
|
* @contact datatables.net
|
|
59
59
|
*
|
|
@@ -121,20 +121,41 @@ var FixedHeader = function (dt, config) {
|
|
|
121
121
|
tfoot: $(dt.table().footer()),
|
|
122
122
|
header: {
|
|
123
123
|
host: null,
|
|
124
|
+
scrollAdjust: null,
|
|
124
125
|
floating: null,
|
|
125
|
-
floatingParent: $(
|
|
126
|
+
floatingParent: $(
|
|
127
|
+
'<div class="dtfh-floatingparent">' + // location
|
|
128
|
+
'<div class="dtfh-floating-limiter">' + // hidden overflow / scrolling
|
|
129
|
+
'<div></div>' + // adjustment for scrollbar (padding)
|
|
130
|
+
'</div>' +
|
|
131
|
+
'</div>'),
|
|
132
|
+
limiter: null,
|
|
126
133
|
placeholder: null
|
|
127
134
|
},
|
|
128
135
|
footer: {
|
|
129
136
|
host: null,
|
|
137
|
+
scrollAdjust: null,
|
|
130
138
|
floating: null,
|
|
131
|
-
floatingParent: $(
|
|
139
|
+
floatingParent: $(
|
|
140
|
+
'<div class="dtfh-floatingparent">' +
|
|
141
|
+
'<div class="dtfh-floating-limiter">' +
|
|
142
|
+
'<div></div>' +
|
|
143
|
+
'</div>' +
|
|
144
|
+
'</div>'),
|
|
145
|
+
limiter: null,
|
|
132
146
|
placeholder: null
|
|
133
147
|
}
|
|
134
148
|
};
|
|
135
149
|
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
var dom = this.dom;
|
|
151
|
+
|
|
152
|
+
dom.header.host = dom.thead.parent();
|
|
153
|
+
dom.header.limiter = dom.header.floatingParent.children();
|
|
154
|
+
dom.header.scrollAdjust = dom.header.limiter.children();
|
|
155
|
+
|
|
156
|
+
dom.footer.host = dom.tfoot.parent();
|
|
157
|
+
dom.footer.limiter = dom.footer.floatingParent.children();
|
|
158
|
+
dom.footer.scrollAdjust = dom.footer.limiter.children();
|
|
138
159
|
|
|
139
160
|
var dtSettings = dt.settings()[0];
|
|
140
161
|
if (dtSettings._fixedHeader) {
|
|
@@ -365,7 +386,6 @@ $.extend(FixedHeader.prototype, {
|
|
|
365
386
|
itemDom.placeholder.remove();
|
|
366
387
|
}
|
|
367
388
|
|
|
368
|
-
itemDom.floating.children().detach();
|
|
369
389
|
itemDom.floating.remove();
|
|
370
390
|
}
|
|
371
391
|
|
|
@@ -384,8 +404,6 @@ $.extend(FixedHeader.prototype, {
|
|
|
384
404
|
itemDom.floatingParent
|
|
385
405
|
.css({
|
|
386
406
|
width: scrollBody[0].offsetWidth,
|
|
387
|
-
overflow: 'hidden',
|
|
388
|
-
height: 'fit-content',
|
|
389
407
|
position: 'fixed',
|
|
390
408
|
left: scrollEnabled
|
|
391
409
|
? tableNode.offset().left + scrollBody.scrollLeft()
|
|
@@ -409,7 +427,16 @@ $.extend(FixedHeader.prototype, {
|
|
|
409
427
|
)
|
|
410
428
|
.appendTo('body')
|
|
411
429
|
.children()
|
|
412
|
-
.eq(0)
|
|
430
|
+
.eq(0);
|
|
431
|
+
|
|
432
|
+
itemDom.limiter
|
|
433
|
+
.css({
|
|
434
|
+
width: '100%',
|
|
435
|
+
overflow: 'hidden',
|
|
436
|
+
height: 'fit-content'
|
|
437
|
+
});
|
|
438
|
+
|
|
439
|
+
itemDom.scrollAdjust
|
|
413
440
|
.append(itemDom.floating);
|
|
414
441
|
|
|
415
442
|
this._stickyPosition(itemDom.floating, '-');
|
|
@@ -417,7 +444,7 @@ $.extend(FixedHeader.prototype, {
|
|
|
417
444
|
var scrollLeftUpdate = function () {
|
|
418
445
|
var scrollLeft = scrollBody.scrollLeft();
|
|
419
446
|
that.s.scrollLeft = { footer: scrollLeft, header: scrollLeft };
|
|
420
|
-
itemDom.
|
|
447
|
+
itemDom.limiter.scrollLeft(that.s.scrollLeft.header);
|
|
421
448
|
};
|
|
422
449
|
|
|
423
450
|
scrollLeftUpdate();
|
|
@@ -425,7 +452,7 @@ $.extend(FixedHeader.prototype, {
|
|
|
425
452
|
|
|
426
453
|
// Need padding on the header's container to allow for a scrollbar,
|
|
427
454
|
// just like how DataTables handles it
|
|
428
|
-
itemDom.
|
|
455
|
+
itemDom.scrollAdjust.css({
|
|
429
456
|
width: 'fit-content',
|
|
430
457
|
paddingRight: that.s.dt.settings()[0].oBrowser.barWidth
|
|
431
458
|
});
|
|
@@ -536,6 +563,7 @@ $.extend(FixedHeader.prototype, {
|
|
|
536
563
|
* @private
|
|
537
564
|
*/
|
|
538
565
|
_modeChange: function (mode, item, forceChange) {
|
|
566
|
+
var dt = this.s.dt;
|
|
539
567
|
var itemDom = this.dom[item];
|
|
540
568
|
var position = this.s.position;
|
|
541
569
|
|
|
@@ -688,6 +716,8 @@ $.extend(FixedHeader.prototype, {
|
|
|
688
716
|
this.s.scrollLeft.header = -1;
|
|
689
717
|
this.s.scrollLeft.footer = -1;
|
|
690
718
|
this.s[item + 'Mode'] = mode;
|
|
719
|
+
|
|
720
|
+
dt.trigger('fixedheader-mode', [mode, item]);
|
|
691
721
|
},
|
|
692
722
|
|
|
693
723
|
/**
|
|
@@ -1060,7 +1090,7 @@ $.extend(FixedHeader.prototype, {
|
|
|
1060
1090
|
* @type {String}
|
|
1061
1091
|
* @static
|
|
1062
1092
|
*/
|
|
1063
|
-
FixedHeader.version = '4.0.
|
|
1093
|
+
FixedHeader.version = '4.0.3';
|
|
1064
1094
|
|
|
1065
1095
|
/**
|
|
1066
1096
|
* Defaults
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! FixedHeader 4.0.
|
|
1
|
+
/*! FixedHeader 4.0.3
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
!function(o){var i,s;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return o(t,window,document)}):"object"==typeof exports?(i=require("jquery"),s=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||i(t),s(t,e),o(e,t,t.document)}:(s(window,i),module.exports=o(i,window,window.document))):o(jQuery,window,document)}(function(m,v,H){"use strict";function s(t,e){if(!d.versionCheck("2"))throw"Warning: FixedHeader requires DataTables 2 or newer";if(!(this instanceof s))throw"FixedHeader must be initialised with the 'new' keyword.";if(!0===e&&(e={}),t=new d.Api(t),this.c=m.extend(!0,{},s.defaults,e),this.s={dt:t,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:m(v).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:t.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+o++,scrollLeft:{header:-1,footer:-1},enable:!0,autoDisable:!1},this.dom={floatingHeader:null,thead:m(t.table().header()),tbody:m(t.table().body()),tfoot:m(t.table().footer()),header:{host:null,floating:null,floatingParent:m('<div class="dtfh-floatingparent"><div></div></div>'),placeholder:null},footer:{host:null,floating:null,floatingParent:m('<div class="dtfh-floatingparent"><div></div></div>'),placeholder:null}},this.dom.header.host=this.dom.thead.parent(),this.dom.footer.host=this.dom.tfoot.parent(),(e=t.settings()[0])._fixedHeader)throw"FixedHeader already initialised on table "+e.nTable.id;(e._fixedHeader=this)._constructor()}var d=m.fn.dataTable,o=0;return m.extend(s.prototype,{destroy:function(){var t=this.dom;this.s.dt.off(".dtfc"),m(v).off(this.s.namespace),t.header.rightBlocker&&t.header.rightBlocker.remove(),t.header.leftBlocker&&t.header.leftBlocker.remove(),t.footer.rightBlocker&&t.footer.rightBlocker.remove(),t.footer.leftBlocker&&t.footer.leftBlocker.remove(),this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&t.tfoot.length&&this._modeChange("in-place","footer",!0)},enable:function(t,e,o){this.s.enable=t,this.s.enableType=o,!e&&void 0!==e||(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(t){return void 0!==t&&(this.c.headerOffset=t,this.update()),this.c.headerOffset},footerOffset:function(t){return void 0!==t&&(this.c.footerOffset=t,this.update()),this.c.footerOffset},update:function(t){var e=this.s.dt.table().node();(this.s.enable||this.s.autoDisable)&&(m(e).is(":visible")?(this.s.autoDisable=!1,this.enable(!0,!1)):(this.s.autoDisable=!0,this.enable(!1,!1)),0!==m(e).children("thead").length)&&(this._positions(),this._scroll(void 0===t||t),this._widths(this.dom.header),this._widths(this.dom.footer))},_constructor:function(){var o=this,i=this.s.dt,t=(m(v).on("scroll"+this.s.namespace,function(){o._scroll()}).on("resize"+this.s.namespace,d.util.throttle(function(){o.s.position.windowHeight=m(v).height(),o.update()},50)),m(".fh-fixedHeader")),t=(!this.c.headerOffset&&t.length&&(this.c.headerOffset=t.outerHeight()),m(".fh-fixedFooter"));!this.c.footerOffset&&t.length&&(this.c.footerOffset=t.outerHeight()),i.on("column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc",function(t,e){o.update()}).on("draw.dt.dtfc",function(t,e){o.update(e!==i.settings()[0])}),i.on("destroy.dtfc",function(){o.destroy()}),this._positions(),this._scroll()},_clone:function(t,e){var o,i,s=this,d=this.s.dt,n=this.dom[t],r="header"===t?this.dom.thead:this.dom.tfoot;"footer"===t&&this._scrollEnabled()||(!e&&n.floating?n.floating.removeClass("fixedHeader-floating fixedHeader-locked"):(n.floating&&(null!==n.placeholder&&n.placeholder.remove(),n.floating.children().detach(),n.floating.remove()),e=m(d.table().node()),o=m(e.parent()),i=this._scrollEnabled(),n.floating=m(d.table().node().cloneNode(!1)).attr("aria-hidden","true").css({top:0,left:0}).removeAttr("id"),n.floatingParent.css({width:o[0].offsetWidth,overflow:"hidden",height:"fit-content",position:"fixed",left:i?e.offset().left+o.scrollLeft():0}).css("header"===t?{top:this.c.headerOffset,bottom:""}:{top:"",bottom:this.c.footerOffset}).addClass("footer"===t?"dtfh-floatingparent-foot":"dtfh-floatingparent-head").appendTo("body").children().eq(0).append(n.floating),this._stickyPosition(n.floating,"-"),(i=function(){var t=o.scrollLeft();s.s.scrollLeft={footer:t,header:t},n.floatingParent.scrollLeft(s.s.scrollLeft.header)})(),o.off("scroll.dtfh").on("scroll.dtfh",i),n.floatingParent.children().css({width:"fit-content",paddingRight:s.s.dt.settings()[0].oBrowser.barWidth}),(e=m("footer"===t?"div.dtfc-bottom-blocker":"div.dtfc-top-blocker",d.table().container())).length&&e.clone().appendTo(n.floatingParent).css({position:"fixed",right:e.width()}),n.placeholder=r.clone(!1),n.placeholder.find("*[id]").removeAttr("id"),n.host.prepend(n.placeholder),n.floating.append(r),this._widths(n)))},_stickyPosition:function(t,e){var i;this._scrollEnabled()&&(i="rtl"===m(this.s.dt.table().node()).css("direction"),t.find("th").each(function(){var t,e,o;"sticky"===m(this).css("position")&&(t=m(this).css("right"),e=m(this).css("left"),"auto"===t||i?"auto"!==e&&i&&(o=+e.replace(/px/g,""),m(this).css("left",0<o?o:0)):(o=+t.replace(/px/g,""),m(this).css("right",0<o?o:0)))}))},_horizontal:function(t,e){var o,i=this.dom[t],s=this.s.scrollLeft;i.floating&&s[t]!==e&&(this._scrollEnabled()&&(o=m(m(this.s.dt.table().node()).parent()).scrollLeft(),i.floating.scrollLeft(o),i.floatingParent.scrollLeft(o)),s[t]=e)},_modeChange:function(t,e,o){var i,s,d,n,r,a,f,h=this.dom[e],l=this.s.position,c=this._scrollEnabled();"footer"===e&&c||(i=function(t){h.floating[0].style.setProperty("width",t+"px","important"),c||h.floatingParent[0].style.setProperty("width",t+"px","important")},n=this.dom["footer"===e?"tfoot":"thead"],s=m.contains(n[0],H.activeElement)?H.activeElement:null,r=m(m(this.s.dt.table().node()).parent()),"in-place"===t?(h.placeholder&&(h.placeholder.remove(),h.placeholder=null),m.contains(h.host[0],n[0])||("header"===e?h.host.prepend(n):h.host.append(n)),h.floating&&(h.floating.remove(),h.floating=null,this._stickyPosition(h.host,"+")),h.floatingParent&&(h.floatingParent.find("div.dtfc-top-blocker").remove(),h.floatingParent.remove()),m(m(h.host.parent()).parent()).scrollLeft(r.scrollLeft())):"in"===t?(this._clone(e,o),n=r.offset(),f=(d=m(H).scrollTop())+m(v).height(),a=c?n.top:l.tbodyTop,n=c?n.top+r.outerHeight():l.tfootTop,r="footer"===e?f<a?l.tfootHeight:a+l.tfootHeight-f:d+this.c.headerOffset+l.theadHeight-n,a="header"===e?"top":"bottom",f=this.c[e+"Offset"]-(0<r?r:0),h.floating.addClass("fixedHeader-floating"),h.floatingParent.css(a,f).css({left:l.left,"z-index":3}),i(l.width),"footer"===e&&h.floating.css("top","")):"below"===t?(this._clone(e,o),h.floating.addClass("fixedHeader-locked"),h.floatingParent.css({position:"absolute",top:l.tfootTop-l.theadHeight,left:l.left+"px"}),i(l.width)):"above"===t&&(this._clone(e,o),h.floating.addClass("fixedHeader-locked"),h.floatingParent.css({position:"absolute",top:l.tbodyTop,left:l.left+"px"}),i(l.width)),s&&s!==H.activeElement&&setTimeout(function(){s.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[e+"Mode"]=t)},_positions:function(){var t=this.s.dt,e=t.table(),o=this.s.position,i=this.dom,e=m(e.node()),s=this._scrollEnabled(),d=m(t.table().header()),t=m(t.table().footer()),i=i.tbody,n=e.parent();o.visible=e.is(":visible"),o.width=e.outerWidth(),o.left=e.offset().left,o.theadTop=d.offset().top,o.tbodyTop=(s?n:i).offset().top,o.tbodyHeight=(s?n:i).outerHeight(),o.theadHeight=d.outerHeight(),o.theadBottom=o.theadTop+o.theadHeight,o.tfootTop=o.tbodyTop+o.tbodyHeight,t.length?(o.tfootBottom=o.tfootTop+t.outerHeight(),o.tfootHeight=t.outerHeight()):(o.tfootBottom=o.tfootTop,o.tfootHeight=0)},_scroll:function(t){var e,o,i,s,d,n,r,a,f,h,l,c,p,g,u,b;this.s.dt.settings()[0].bDestroying||(e=this._scrollEnabled(),i=(o=m(this.s.dt.table().node()).parent()).offset(),c=o.outerHeight(),s=m(H).scrollLeft(),d=m(H).scrollTop(),n=m(v).height()+d,p=this.s.position,b=e?i.top:p.tbodyTop,a=(e?i:p).left,c=e?i.top+c:p.tfootTop,f=e?o.outerWidth():p.tbodyWidth,this.c.header&&(!this.s.enable||!p.visible||d+this.c.headerOffset+p.theadHeight<=b?h="in-place":d+this.c.headerOffset+p.theadHeight>b&&d+this.c.headerOffset+p.theadHeight<c?(h="in",d+this.c.headerOffset+p.theadHeight>c||void 0===this.dom.header.floatingParent?t=!0:0===(l=this.dom.header.floatingParent.css({top:this.c.headerOffset,position:"fixed"}).children().eq(0)).find(this.dom.header.floating).length&&l.append(this.dom.header.floating)):h="below",!t&&h===this.s.headerMode||this._modeChange(h,"header",t),this._horizontal("header",s)),g={offset:{top:0,left:0},height:0},u={offset:{top:0,left:0},height:0},this.c.footer&&this.dom.tfoot.length&&this.dom.tfoot.find("th, td").length&&(!this.s.enable||!p.visible||p.tfootBottom+this.c.footerOffset<=n?r="in-place":c+p.tfootHeight+this.c.footerOffset>n&&b+this.c.footerOffset<n?(r="in",t=!0):r="above",!t&&r===this.s.footerMode||this._modeChange(r,"footer",t),this._horizontal("footer",s),l=function(t){return{offset:t.offset(),height:t.outerHeight()}},g=this.dom.header.floating?l(this.dom.header.floating):l(this.dom.thead),u=this.dom.footer.floating?l(this.dom.footer.floating):l(this.dom.tfoot),e)&&u.offset.top>d&&(p=n+((c=d-i.top)>-g.height?c:0)-(g.offset.top+(c<-g.height?g.height:0)+u.height),o.outerHeight(p=p<0?0:p),Math.round(o.outerHeight())>=Math.round(p)?m(this.dom.tfoot.parent()).addClass("fixedHeader-floating"):m(this.dom.tfoot.parent()).removeClass("fixedHeader-floating")),this.dom.header.floating&&this.dom.header.floatingParent.css("left",a-s),this.dom.footer.floating&&this.dom.footer.floatingParent.css("left",a-s),void 0!==this.s.dt.settings()[0]._fixedColumns&&(this.dom.header.rightBlocker=(b=function(t,e,o){var i;return null!==(o=void 0===o?0===(i=m("div.dtfc-"+t+"-"+e+"-blocker")).length?null:i.clone().css("z-index",1):o)&&("in"===h||"below"===h?o.appendTo("body").css({top:("top"===e?g:u).offset.top,left:"right"===t?a+f-o.width():a}):o.detach()),o})("right","top",this.dom.header.rightBlocker),this.dom.header.leftBlocker=b("left","top",this.dom.header.leftBlocker),this.dom.footer.rightBlocker=b("right","bottom",this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=b("left","bottom",this.dom.footer.leftBlocker)))},_scrollEnabled:function(){var t=this.s.dt.settings()[0].oScroll;return""!==t.sY||""!==t.sX},_widths:function(t){if(t&&t.placeholder)for(var e=m(this.s.dt.table().node()),o=m(e.parent()),i=(t.floatingParent.css("width",o[0].offsetWidth),t.floating.css("width",e[0].offsetWidth),m("colgroup",t.floating).remove(),t.placeholder.parent().find("colgroup").clone().appendTo(t.floating).find("col")),s=this.s.dt.columns(":visible").widths(),d=0;d<s.length;d++)i.eq(d).css("width",s[d])}}),s.version="4.0.2",s.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},m.fn.dataTable.FixedHeader=s,m.fn.DataTable.FixedHeader=s,m(H).on("init.dt.dtfh",function(t,e,o){var i;"dt"===t.namespace&&(t=e.oInit.fixedHeader,i=d.defaults.fixedHeader,t||i)&&!e._fixedHeader&&(i=m.extend({},i,t),!1!==t)&&new s(e,i)}),d.Api.register("fixedHeader()",function(){}),d.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(t){t=t._fixedHeader;t&&t.update()})}),d.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(t){t=t._fixedHeader;e=void 0===e||e,t&&e!==t.enabled()&&t.enable(e)})}),d.Api.register("fixedHeader.enabled()",function(){if(this.context.length){var t=this.context[0]._fixedHeader;if(t)return t.enabled()}return!1}),d.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(t){t=t._fixedHeader;t&&t.enabled()&&t.enable(!1)})}),m.each(["header","footer"],function(t,o){d.Api.register("fixedHeader."+o+"Offset()",function(e){var t=this.context;return void 0===e?t.length&&t[0]._fixedHeader?t[0]._fixedHeader[o+"Offset"]():void 0:this.iterator("table",function(t){t=t._fixedHeader;t&&t[o+"Offset"](e)})})}),d});
|
|
4
|
+
(o=>{var i,s;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return o(t,window,document)}):"object"==typeof exports?(i=require("jquery"),s=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||i(t),s(t,e),o(e,t,t.document)}:(s(window,i),module.exports=o(i,window,window.document))):o(jQuery,window,document)})(function(b,v,H){function s(t,e){if(!d.versionCheck("2"))throw"Warning: FixedHeader requires DataTables 2 or newer";if(!(this instanceof s))throw"FixedHeader must be initialised with the 'new' keyword.";if(!0===e&&(e={}),t=new d.Api(t),this.c=b.extend(!0,{},s.defaults,e),this.s={dt:t,position:{theadTop:0,tbodyTop:0,tfootTop:0,tfootBottom:0,width:0,left:0,tfootHeight:0,theadHeight:0,windowHeight:b(v).height(),visible:!0},headerMode:null,footerMode:null,autoWidth:t.settings()[0].oFeatures.bAutoWidth,namespace:".dtfc"+o++,scrollLeft:{header:-1,footer:-1},enable:!0,autoDisable:!1},this.dom={floatingHeader:null,thead:b(t.table().header()),tbody:b(t.table().body()),tfoot:b(t.table().footer()),header:{host:null,scrollAdjust:null,floating:null,floatingParent:b('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null},footer:{host:null,scrollAdjust:null,floating:null,floatingParent:b('<div class="dtfh-floatingparent"><div class="dtfh-floating-limiter"><div></div></div></div>'),limiter:null,placeholder:null}},(e=this.dom).header.host=e.thead.parent(),e.header.limiter=e.header.floatingParent.children(),e.header.scrollAdjust=e.header.limiter.children(),e.footer.host=e.tfoot.parent(),e.footer.limiter=e.footer.floatingParent.children(),e.footer.scrollAdjust=e.footer.limiter.children(),(e=t.settings()[0])._fixedHeader)throw"FixedHeader already initialised on table "+e.nTable.id;(e._fixedHeader=this)._constructor()}var d=b.fn.dataTable,o=0;return b.extend(s.prototype,{destroy:function(){var t=this.dom;this.s.dt.off(".dtfc"),b(v).off(this.s.namespace),t.header.rightBlocker&&t.header.rightBlocker.remove(),t.header.leftBlocker&&t.header.leftBlocker.remove(),t.footer.rightBlocker&&t.footer.rightBlocker.remove(),t.footer.leftBlocker&&t.footer.leftBlocker.remove(),this.c.header&&this._modeChange("in-place","header",!0),this.c.footer&&t.tfoot.length&&this._modeChange("in-place","footer",!0)},enable:function(t,e,o){this.s.enable=t,this.s.enableType=o,!e&&void 0!==e||(this._positions(),this._scroll(!0))},enabled:function(){return this.s.enable},headerOffset:function(t){return void 0!==t&&(this.c.headerOffset=t,this.update()),this.c.headerOffset},footerOffset:function(t){return void 0!==t&&(this.c.footerOffset=t,this.update()),this.c.footerOffset},update:function(t){var e=this.s.dt.table().node();(this.s.enable||this.s.autoDisable)&&(b(e).is(":visible")?(this.s.autoDisable=!1,this.enable(!0,!1)):(this.s.autoDisable=!0,this.enable(!1,!1)),0!==b(e).children("thead").length)&&(this._positions(),this._scroll(void 0===t||t),this._widths(this.dom.header),this._widths(this.dom.footer))},_constructor:function(){var o=this,i=this.s.dt,t=(b(v).on("scroll"+this.s.namespace,function(){o._scroll()}).on("resize"+this.s.namespace,d.util.throttle(function(){o.s.position.windowHeight=b(v).height(),o.update()},50)),b(".fh-fixedHeader")),t=(!this.c.headerOffset&&t.length&&(this.c.headerOffset=t.outerHeight()),b(".fh-fixedFooter"));!this.c.footerOffset&&t.length&&(this.c.footerOffset=t.outerHeight()),i.on("column-reorder.dt.dtfc column-visibility.dt.dtfc column-sizing.dt.dtfc responsive-display.dt.dtfc",function(t,e){o.update()}).on("draw.dt.dtfc",function(t,e){o.update(e!==i.settings()[0])}),i.on("destroy.dtfc",function(){o.destroy()}),this._positions(),this._scroll()},_clone:function(t,e){var o,i,s=this,d=this.s.dt,r=this.dom[t],n="header"===t?this.dom.thead:this.dom.tfoot;"footer"===t&&this._scrollEnabled()||(!e&&r.floating?r.floating.removeClass("fixedHeader-floating fixedHeader-locked"):(r.floating&&(null!==r.placeholder&&r.placeholder.remove(),r.floating.remove()),e=b(d.table().node()),o=b(e.parent()),i=this._scrollEnabled(),r.floating=b(d.table().node().cloneNode(!1)).attr("aria-hidden","true").css({top:0,left:0}).removeAttr("id"),r.floatingParent.css({width:o[0].offsetWidth,position:"fixed",left:i?e.offset().left+o.scrollLeft():0}).css("header"===t?{top:this.c.headerOffset,bottom:""}:{top:"",bottom:this.c.footerOffset}).addClass("footer"===t?"dtfh-floatingparent-foot":"dtfh-floatingparent-head").appendTo("body").children().eq(0),r.limiter.css({width:"100%",overflow:"hidden",height:"fit-content"}),r.scrollAdjust.append(r.floating),this._stickyPosition(r.floating,"-"),(i=function(){var t=o.scrollLeft();s.s.scrollLeft={footer:t,header:t},r.limiter.scrollLeft(s.s.scrollLeft.header)})(),o.off("scroll.dtfh").on("scroll.dtfh",i),r.scrollAdjust.css({width:"fit-content",paddingRight:s.s.dt.settings()[0].oBrowser.barWidth}),(e=b("footer"===t?"div.dtfc-bottom-blocker":"div.dtfc-top-blocker",d.table().container())).length&&e.clone().appendTo(r.floatingParent).css({position:"fixed",right:e.width()}),r.placeholder=n.clone(!1),r.placeholder.find("*[id]").removeAttr("id"),r.host.prepend(r.placeholder),r.floating.append(n),this._widths(r)))},_stickyPosition:function(t,e){var i;this._scrollEnabled()&&(i="rtl"===b(this.s.dt.table().node()).css("direction"),t.find("th").each(function(){var t,e,o;"sticky"===b(this).css("position")&&(t=b(this).css("right"),e=b(this).css("left"),"auto"===t||i?"auto"!==e&&i&&(o=+e.replace(/px/g,""),b(this).css("left",0<o?o:0)):(o=+t.replace(/px/g,""),b(this).css("right",0<o?o:0)))}))},_horizontal:function(t,e){var o,i=this.dom[t],s=this.s.scrollLeft;i.floating&&s[t]!==e&&(this._scrollEnabled()&&(o=b(b(this.s.dt.table().node()).parent()).scrollLeft(),i.floating.scrollLeft(o),i.floatingParent.scrollLeft(o)),s[t]=e)},_modeChange:function(t,e,o){var i,s,d,r,n,l,a,f=this.s.dt,h=this.dom[e],c=this.s.position,g=this._scrollEnabled();"footer"===e&&g||(i=function(t){h.floating[0].style.setProperty("width",t+"px","important"),g||h.floatingParent[0].style.setProperty("width",t+"px","important")},r=this.dom["footer"===e?"tfoot":"thead"],s=b.contains(r[0],H.activeElement)?H.activeElement:null,n=b(b(this.s.dt.table().node()).parent()),"in-place"===t?(h.placeholder&&(h.placeholder.remove(),h.placeholder=null),b.contains(h.host[0],r[0])||("header"===e?h.host.prepend(r):h.host.append(r)),h.floating&&(h.floating.remove(),h.floating=null,this._stickyPosition(h.host,"+")),h.floatingParent&&(h.floatingParent.find("div.dtfc-top-blocker").remove(),h.floatingParent.remove()),b(b(h.host.parent()).parent()).scrollLeft(n.scrollLeft())):"in"===t?(this._clone(e,o),r=n.offset(),a=(d=b(H).scrollTop())+b(v).height(),l=g?r.top:c.tbodyTop,r=g?r.top+n.outerHeight():c.tfootTop,n="footer"===e?a<l?c.tfootHeight:l+c.tfootHeight-a:d+this.c.headerOffset+c.theadHeight-r,l="header"===e?"top":"bottom",a=this.c[e+"Offset"]-(0<n?n:0),h.floating.addClass("fixedHeader-floating"),h.floatingParent.css(l,a).css({left:c.left,"z-index":3}),i(c.width),"footer"===e&&h.floating.css("top","")):"below"===t?(this._clone(e,o),h.floating.addClass("fixedHeader-locked"),h.floatingParent.css({position:"absolute",top:c.tfootTop-c.theadHeight,left:c.left+"px"}),i(c.width)):"above"===t&&(this._clone(e,o),h.floating.addClass("fixedHeader-locked"),h.floatingParent.css({position:"absolute",top:c.tbodyTop,left:c.left+"px"}),i(c.width)),s&&s!==H.activeElement&&setTimeout(function(){s.focus()},10),this.s.scrollLeft.header=-1,this.s.scrollLeft.footer=-1,this.s[e+"Mode"]=t,f.trigger("fixedheader-mode",[t,e]))},_positions:function(){var t=this.s.dt,e=t.table(),o=this.s.position,i=this.dom,e=b(e.node()),s=this._scrollEnabled(),d=b(t.table().header()),t=b(t.table().footer()),i=i.tbody,r=e.parent();o.visible=e.is(":visible"),o.width=e.outerWidth(),o.left=e.offset().left,o.theadTop=d.offset().top,o.tbodyTop=(s?r:i).offset().top,o.tbodyHeight=(s?r:i).outerHeight(),o.theadHeight=d.outerHeight(),o.theadBottom=o.theadTop+o.theadHeight,o.tfootTop=o.tbodyTop+o.tbodyHeight,t.length?(o.tfootBottom=o.tfootTop+t.outerHeight(),o.tfootHeight=t.outerHeight()):(o.tfootBottom=o.tfootTop,o.tfootHeight=0)},_scroll:function(t){var e,o,i,s,d,r,n,l,a,f,h,c,g,p,u,m;this.s.dt.settings()[0].bDestroying||(e=this._scrollEnabled(),i=(o=b(this.s.dt.table().node()).parent()).offset(),c=o.outerHeight(),s=b(H).scrollLeft(),d=b(H).scrollTop(),r=b(v).height()+d,g=this.s.position,m=e?i.top:g.tbodyTop,l=(e?i:g).left,c=e?i.top+c:g.tfootTop,a=e?o.outerWidth():g.tbodyWidth,this.c.header&&(!this.s.enable||!g.visible||d+this.c.headerOffset+g.theadHeight<=m?f="in-place":d+this.c.headerOffset+g.theadHeight>m&&d+this.c.headerOffset+g.theadHeight<c?(f="in",d+this.c.headerOffset+g.theadHeight>c||void 0===this.dom.header.floatingParent?t=!0:0===(h=this.dom.header.floatingParent.css({top:this.c.headerOffset,position:"fixed"}).children().eq(0)).find(this.dom.header.floating).length&&h.append(this.dom.header.floating)):f="below",!t&&f===this.s.headerMode||this._modeChange(f,"header",t),this._horizontal("header",s)),p={offset:{top:0,left:0},height:0},u={offset:{top:0,left:0},height:0},this.c.footer&&this.dom.tfoot.length&&this.dom.tfoot.find("th, td").length&&(!this.s.enable||!g.visible||g.tfootBottom+this.c.footerOffset<=r?n="in-place":c+g.tfootHeight+this.c.footerOffset>r&&m+this.c.footerOffset<r?(n="in",t=!0):n="above",!t&&n===this.s.footerMode||this._modeChange(n,"footer",t),this._horizontal("footer",s),h=function(t){return{offset:t.offset(),height:t.outerHeight()}},p=this.dom.header.floating?h(this.dom.header.floating):h(this.dom.thead),u=this.dom.footer.floating?h(this.dom.footer.floating):h(this.dom.tfoot),e)&&u.offset.top>d&&(g=r+((c=d-i.top)>-p.height?c:0)-(p.offset.top+(c<-p.height?p.height:0)+u.height),o.outerHeight(g=g<0?0:g),Math.round(o.outerHeight())>=Math.round(g)?b(this.dom.tfoot.parent()).addClass("fixedHeader-floating"):b(this.dom.tfoot.parent()).removeClass("fixedHeader-floating")),this.dom.header.floating&&this.dom.header.floatingParent.css("left",l-s),this.dom.footer.floating&&this.dom.footer.floatingParent.css("left",l-s),void 0!==this.s.dt.settings()[0]._fixedColumns&&(this.dom.header.rightBlocker=(m=function(t,e,o){var i;return null!==(o=void 0===o?0===(i=b("div.dtfc-"+t+"-"+e+"-blocker")).length?null:i.clone().css("z-index",1):o)&&("in"===f||"below"===f?o.appendTo("body").css({top:("top"===e?p:u).offset.top,left:"right"===t?l+a-o.width():l}):o.detach()),o})("right","top",this.dom.header.rightBlocker),this.dom.header.leftBlocker=m("left","top",this.dom.header.leftBlocker),this.dom.footer.rightBlocker=m("right","bottom",this.dom.footer.rightBlocker),this.dom.footer.leftBlocker=m("left","bottom",this.dom.footer.leftBlocker)))},_scrollEnabled:function(){var t=this.s.dt.settings()[0].oScroll;return""!==t.sY||""!==t.sX},_widths:function(t){if(t&&t.placeholder)for(var e=b(this.s.dt.table().node()),o=b(e.parent()),i=(t.floatingParent.css("width",o[0].offsetWidth),t.floating.css("width",e[0].offsetWidth),b("colgroup",t.floating).remove(),t.placeholder.parent().find("colgroup").clone().appendTo(t.floating).find("col")),s=this.s.dt.columns(":visible").widths(),d=0;d<s.length;d++)i.eq(d).css("width",s[d])}}),s.version="4.0.3",s.defaults={header:!0,footer:!1,headerOffset:0,footerOffset:0},b.fn.dataTable.FixedHeader=s,b.fn.DataTable.FixedHeader=s,b(H).on("init.dt.dtfh",function(t,e,o){var i;"dt"===t.namespace&&(t=e.oInit.fixedHeader,i=d.defaults.fixedHeader,t||i)&&!e._fixedHeader&&(i=b.extend({},i,t),!1!==t)&&new s(e,i)}),d.Api.register("fixedHeader()",function(){}),d.Api.register("fixedHeader.adjust()",function(){return this.iterator("table",function(t){t=t._fixedHeader;t&&t.update()})}),d.Api.register("fixedHeader.enable()",function(e){return this.iterator("table",function(t){t=t._fixedHeader;e=void 0===e||e,t&&e!==t.enabled()&&t.enable(e)})}),d.Api.register("fixedHeader.enabled()",function(){if(this.context.length){var t=this.context[0]._fixedHeader;if(t)return t.enabled()}return!1}),d.Api.register("fixedHeader.disable()",function(){return this.iterator("table",function(t){t=t._fixedHeader;t&&t.enabled()&&t.enable(!1)})}),b.each(["header","footer"],function(t,o){d.Api.register("fixedHeader."+o+"Offset()",function(e){var t=this.context;return void 0===e?t.length&&t[0]._fixedHeader?t[0]._fixedHeader[o+"Offset"]():void 0:this.iterator("table",function(t){t=t._fixedHeader;t&&t[o+"Offset"](e)})})}),d});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! Bootstrap 5 styling wrapper for FixedHeader
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
(t=>{var d,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-fixedheader"],function(e){return t(e,window,document)}):"object"==typeof exports?(d=require("jquery"),a=function(e,n){n.fn.dataTable||require("datatables.net-bs5")(e,n),n.fn.dataTable.FixedHeader||require("datatables.net-fixedheader")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||d(e),a(e,n),t(n,0,e.document)}:(a(window,d),module.exports=t(d,window,window.document))):t(jQuery,window,document)})(function(e,n,t){return e.fn.dataTable});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! DataTables styling wrapper for FixedHeader
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
(t=>{var d,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net-dt","datatables.net-fixedheader"],function(e){return t(e,window,document)}):"object"==typeof exports?(d=require("jquery"),a=function(e,n){n.fn.dataTable||require("datatables.net-dt")(e,n),n.fn.dataTable.FixedHeader||require("datatables.net-fixedheader")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||d(e),a(e,n),t(n,0,e.document)}:(a(window,d),module.exports=t(d,window,window.document))):t(jQuery,window,document)})(function(e,n,t){return e.fn.dataTable});
|