/** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * * @version v1.23.1 * @homepage https://bootstrap-table.com * @author wenzhixin (http://wenzhixin.net.cn/) * @license MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.array.find.js"),require("core-js/modules/es.object.assign.js"),require("core-js/modules/es.object.to-string.js"),require("jquery")):"function"==typeof define&&define.amd?define(["core-js/modules/es.array.concat.js","core-js/modules/es.array.find.js","core-js/modules/es.object.assign.js","core-js/modules/es.object.to-string.js","jquery"],e):e(null,null,null,null,(t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t,e,i,r,n){"use strict";function o(t,e,i){return e=a(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,i||[],a(t).constructor):e.apply(t,i))}function s(t,e,i){return e&&function(t,e){for(var i=0;i'),this.$el.before('
'),this.$el.after('
'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var l=h.getEventName("resize.sticky-header-table",this.$el.attr("id")),f=h.getEventName("scroll.sticky-header-table",this.$el.attr("id"));n(window).off(l).on(l,(function(){return i.renderStickyHeader()})),n(window).off(f).on(f,(function(){return i.renderStickyHeader()})),this.$tableBody.off("scroll").on("scroll",(function(){return i.matchPositionX()}))}}},{key:"onColumnSearch",value:function(t){var i=t.currentTarget,r=t.keyCode;c(a(e.prototype),"onColumnSearch",this).call(this,{currentTarget:i,keyCode:r}),this.options.stickyHeader&&this.renderStickyHeader()}},{key:"resetView",value:function(){for(var t,i=this,r=arguments.length,o=new Array(r),s=0;sr&&i<=o){this.$stickyHeader.find("tr").each((function(e,i){n(i).find("th").each((function(i,r){n(r).css("min-width",t.$header.find("tr:eq(".concat(e,")")).find("th:eq(".concat(i,")")).css("width"))}))})),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var s=this.$tableBody[0].getBoundingClientRect(),c="100%",a=this.options.stickyHeaderOffsetLeft,l=this.options.stickyHeaderOffsetRight;a||(a=s.left),l||(c="".concat(s.width,"px")),this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(a=0,l=0,c="100%"),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY,"px")),this.$stickyContainer.css("left","".concat(a,"px")),this.$stickyContainer.css("right","".concat(l,"px")),this.$stickyContainer.css("width","".concat(c)),this.$stickyTable=n(""),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}])}(n.BootstrapTable)}));