From d7f7da596f48307142660b8bf36fd52dd095d44f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 26 Jul 2020 15:50:26 +0800 Subject: [PATCH 01/20] =?UTF-8?q?openTab=E6=89=93=E5=BC=80=E6=97=B6?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E5=88=B0=E5=BD=93=E5=89=8D=E9=A1=B5=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/ruoyi/js/common.js | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js index 68a43ba8..43e8c780 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js @@ -266,7 +266,7 @@ var closeItem = function(dataId){ /** 创建选项卡 */ function createMenuItem(dataUrl, menuName) { var panelUrl = window.frameElement.getAttribute('data-id'); - dataIndex = $.common.random(1,100), + dataIndex = $.common.random(1, 100), flag = true; if (dataUrl == undefined || $.trim(dataUrl).length == 0) return false; var topWindow = $(window.parent.document); @@ -275,6 +275,7 @@ function createMenuItem(dataUrl, menuName) { if ($(this).data('id') == dataUrl) { if (!$(this).hasClass('active')) { $(this).addClass('active').siblings('.menuTab').removeClass('active'); + scrollToTab(this); $('.page-tabs-content').animate({ marginLeft: ""}, "fast"); // 显示tab对应的内容区 $('.mainContent .RuoYi_iframe', topWindow).each(function() { @@ -304,10 +305,48 @@ function createMenuItem(dataUrl, menuName) { // 添加选项卡 $('.menuTabs .page-tabs-content', topWindow).append(str); + scrollToTab($('.menuTab.active', topWindow)); } return false; } +// 滚动到指定选项卡 +function scrollToTab(element) { + var topWindow = $(window.parent.document); + var marginLeftVal = calSumWidth($(element).prevAll()), + marginRightVal = calSumWidth($(element).nextAll()); + // 可视区域非tab宽度 + var tabOuterWidth = calSumWidth($(".content-tabs", topWindow).children().not(".menuTabs")); + //可视区域tab宽度 + var visibleWidth = $(".content-tabs", topWindow).outerWidth(true) - tabOuterWidth; + //实际滚动宽度 + var scrollVal = 0; + if ($(".page-tabs-content", topWindow).outerWidth() < visibleWidth) { + scrollVal = 0; + } else if (marginRightVal <= (visibleWidth - $(element).outerWidth(true) - $(element).next().outerWidth(true))) { + if ((visibleWidth - $(element).next().outerWidth(true)) > marginRightVal) { + scrollVal = marginLeftVal; + var tabElement = element; + while ((scrollVal - $(tabElement).outerWidth()) > ($(".page-tabs-content", topWindow).outerWidth() - visibleWidth)) { + scrollVal -= $(tabElement).prev().outerWidth(); + tabElement = $(tabElement).prev(); + } + } + } else if (marginLeftVal > (visibleWidth - $(element).outerWidth(true) - $(element).prev().outerWidth(true))) { + scrollVal = marginLeftVal - $(element).prev().outerWidth(true); + } + $('.page-tabs-content', topWindow).animate({ marginLeft: 0 - scrollVal + 'px' }, "fast"); +} + +//计算元素集合的总宽度 +function calSumWidth(elements) { + var width = 0; + $(elements).each(function() { + width += $(this).outerWidth(true); + }); + return width; +} + // 日志打印封装处理 var log = { log: function(msg) { From a9775607e0b868b41eb187b81121400325c12513 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 26 Jul 2020 18:39:47 +0800 Subject: [PATCH 02/20] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=9A=84=E8=AE=BF=E9=97=AE=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A1=B5=E7=AD=BE=E9=87=8D=E5=A4=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index f96fca04..b9f5e82a 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -217,7 +217,7 @@ ")}if(this.options.showPaginationSwitch){t.push(m('")}if(this.options.showRefresh){t.push(m('")}if(this.options.showToggle){t.push(m('")}if(this.options.showFullscreen){t.push(m('")}if(this.options.showColumns){t.push(m('
',this.options.formatColumns()),'",'","
")}t.push("");if(this.showToolbar||t.length>2){this.$toolbar.append(t.join(""))}if(this.options.showPaginationSwitch){this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",j.proxy(this.togglePagination,this))}if(this.options.showFullscreen){this.$toolbar.find('button[name="fullscreen"]').off("click").on("click",j.proxy(this.toggleFullscreen,this))}if(this.options.showRefresh){this.$toolbar.find('button[name="refresh"]').off("click").on("click",j.proxy(this.refresh,this))}if(this.options.showToggle){this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){u.toggleView()})}if(this.options.showSearch){this.$toolbar.find('button[name="showSearch"]').off("click").on("click",function(){j(this).parents(".select-table").siblings().slideToggle()})}if(this.options.showColumns){s=this.$toolbar.find(".keep-open");if(r<=this.options.minimumCountColumns){s.find("input").prop("disabled",true)}s.find("li").off("click").on("click",function(x){x.stopImmediatePropagation()});s.find("input").off("click").on("click",function(){var x=j(this);u.toggleColumn(j(this).val(),x.prop("checked"),false);u.trigger("column-switch",j(this).data("field"),x.prop("checked"))})}if(this.options.search){t=[];t.push('");this.$toolbar.append(t.join(""));v=this.$toolbar.find(".search input");v.off("keyup drop").on("keyup drop",function(x){if(u.options.searchOnEnterKey&&x.keyCode!==13){return}if(j.inArray(x.keyCode,[37,38,39,40])>-1){return}clearTimeout(w);w=setTimeout(function(){u.onSearch(x)},u.options.searchTimeOut)});if(b()){v.off("mouseup").on("mouseup",function(x){clearTimeout(w);w=setTimeout(function(){u.onSearch(x)},u.options.searchTimeOut)})}}};e.prototype.onSearch=function(r){var s=j.trim(j(r.currentTarget).val());if(this.options.trimOnSearch&&j(r.currentTarget).val()!==s){j(r.currentTarget).val(s)}if(s===this.searchText){return}this.searchText=s;this.options.searchText=s;this.options.pageNumber=1;this.initSearch();this.updatePagination();this.trigger("search",s)};e.prototype.initSearch=function(){var t=this;if(this.options.sidePagination!=="server"){if(this.options.customSearch!==j.noop){this.options.customSearch.apply(this,[this.searchText]);return}var r=this.searchText&&(this.options.escape?p(this.searchText):this.searchText).toLowerCase();var u=j.isEmptyObject(this.filterColumns)?null:this.filterColumns;this.data=u?j.grep(this.options.data,function(w,v){for(var s in u){if(j.isArray(u[s])&&j.inArray(w[s],u[s])===-1||w[s]!==u[s]){return false}}return true}):this.options.data;this.data=r?j.grep(this.data,function(A,x){for(var v=0;v-1){r=true}}}this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1;this.options.totalPages=this.totalPages}if(this.totalPages>0&&this.options.pageNumber>this.totalPages){this.options.pageNumber=this.totalPages}this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1;this.pageTo=this.options.pageNumber*this.options.pageSize;if(this.pageTo>this.options.totalRows){this.pageTo=this.options.totalRows}x.push('
','',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"");if(!this.options.onlyInfoPagination){x.push('');var F=[m('',this.options.paginationVAlign==="top"||this.options.paginationVAlign==="both"?"dropdown":"dropup"),'",'");x.push(this.options.formatRecordsPerPage(F.join("")));x.push("");x.push("
",'")}this.$pagination.html(x.join(""));if(!this.options.onlyInfoPagination){w=this.$pagination.find(".page-list a");G=this.$pagination.find(".page-first");I=this.$pagination.find(".page-pre");E=this.$pagination.find(".page-next");y=this.$pagination.find(".page-last");u=this.$pagination.find(".page-number");if(this.options.smartDisplay){if(this.totalPages<=1){this.$pagination.find("div.pagination").hide()}if(t.length<2||this.options.totalRows<=t[0]){this.$pagination.find("span.page-list").hide()}this.$pagination[this.getData().length?"show":"hide"]()}if(!this.options.paginationLoop){if(this.options.pageNumber===1){I.addClass("disabled")}if(this.options.pageNumber===this.totalPages){E.addClass("disabled")}}if(r){this.options.pageSize=this.options.formatAllRows()}w.off("click").on("click",j.proxy(this.onPageListChange,this));G.off("click").on("click",j.proxy(this.onPageFirst,this));I.off("click").on("click",j.proxy(this.onPagePre,this));E.off("click").on("click",j.proxy(this.onPageNext,this));y.off("click").on("click",j.proxy(this.onPageLast,this));u.off("click").on("click",j.proxy(this.onPageNumber,this))}if(this.options.showPageGo){var v=this,C=this.$pagination.find("ul.pagination"),B=C.find("li.pageGo");if(!B.length){B=j(['
  • ',m('',this.options.pageNumber),'","
  • "].join("")).appendTo(C);B.find("button").click(function(){var K=parseInt(B.find("input").val())||1;if(K<1||K>v.options.totalPages){K=1}v.selectPage(K)})}}};e.prototype.updatePagination=function(r){if(r&&j(r.currentTarget).hasClass("disabled")){return}if(!this.options.maintainSelected){this.resetRows()}this.initPagination();if(this.options.sidePagination==="server"){this.initServer()}else{this.initBody()}this.trigger("page-change",this.options.pageNumber,this.options.pageSize)};e.prototype.onPageListChange=function(r){var s=j(r.currentTarget);s.parent().addClass("active").siblings().removeClass("active");this.options.pageSize=s.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+s.text();this.$toolbar.find(".page-size").text(this.options.pageSize);this.updatePagination(r)};e.prototype.onPageFirst=function(r){this.options.pageNumber=1;this.updatePagination(r)};e.prototype.onPagePre=function(r){if((this.options.pageNumber-1)===0){this.options.pageNumber=this.options.totalPages}else{this.options.pageNumber--}this.updatePagination(r)};e.prototype.onPageNext=function(r){if((this.options.pageNumber+1)>this.options.totalPages){this.options.pageNumber=1}else{this.options.pageNumber++}this.updatePagination(r)};e.prototype.onPageLast=function(r){this.options.pageNumber=this.totalPages;this.updatePagination(r)};e.prototype.onPageNumber=function(r){if(this.options.pageNumber===+j(r.currentTarget).text()){return}this.options.pageNumber=+j(r.currentTarget).text();this.updatePagination(r)};e.prototype.initBody=function(x){var z=this,y=[],v=this.getData();this.trigger("pre-body",v);this.$body=this.$el.find(">tbody");if(!this.$body.length){this.$body=j("").appendTo(this.$el)}if(!this.options.pagination||this.options.sidePagination==="server"){this.pageFrom=1;this.pageTo=v.length}for(var w=this.pageFrom-1;w");if(this.options.cardView){y.push(m('
    ',this.header.fields.length))}if(!this.options.cardView&&this.options.detailView){y.push("",'',m('',this.options.iconsPrefix,this.options.icons.detailOpen),"","")}j.each(this.header.fields,function(I,L){var P="",M=o(C,L,z.options.escape),K="",E={},Q="",J=z.header.classes[I],G="",O="",R="",H="",F=z.columns[I];if(z.fromHtml&&typeof M==="undefined"){return}if(!F.visible){return}if(z.options.cardView&&!F.cardVisible){return}r=m('style="%s"',s.concat(z.header.styles[I]).join("; "));if(C["_"+L+"_id"]){Q=m(' id="%s"',C["_"+L+"_id"])}if(C["_"+L+"_class"]){J=m(' class="%s"',C["_"+L+"_class"])}if(C["_"+L+"_rowspan"]){O=m(' rowspan="%s"',C["_"+L+"_rowspan"])}if(C["_"+L+"_colspan"]){R=m(' colspan="%s"',C["_"+L+"_colspan"])}if(C["_"+L+"_title"]){H=m(' title="%s"',C["_"+L+"_title"])}E=q(z.header,z.header.cellStyles[I],[M,C,w,L],E);if(E.classes){J=m(' class="%s"',E.classes)}if(E.css){var D=[];for(var N in E.css){D.push(N+": "+E.css[N])}r=m('style="%s"',D.concat(z.header.styles[I]).join("; "))}M=q(F,z.header.formatters[I],[M,C,w],M);if(C["_"+L+"_data"]&&!j.isEmptyObject(C["_"+L+"_data"])){j.each(C["_"+L+"_data"],function(T,S){if(T==="index"){return}G+=m(' data-%s="%s"',T,S)})}if(F.checkbox||F.radio){K=F.checkbox?"checkbox":K;K=F.radio?"radio":K;P=[m(z.options.cardView?'
    ':'',F["class"]||""),"",z.header.formatters[I]&&typeof M==="string"?M:"",z.options.cardView?"
    ":""].join("");C[z.header.stateField]=M===true||(M&&M.checked)}else{M=typeof M==="undefined"||M===null?z.options.undefinedText:M;P=z.options.cardView?['
    ',z.options.showHeader?m('%s',r,c(z.columns,"field","title",L)):"",m('%s',M),"
    "].join(""):[m("",Q,J,r,G,O,R,H),M,""].join("");if(z.options.cardView&&z.options.smartDisplay&&M===""){P='
    '}}y.push(P)});if(this.options.cardView){y.push("
    ")}y.push("")}if(!y.length){y.push('',m('%s',this.$header.find("th").length,this.options.formatNoMatches()),"")}this.$body.html(y.join(""));if(!x){this.scrollTo(0)}this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(J){var D=j(this),F=D.parent(),M=z.data[F.data("index")],H=D[0].cellIndex,G=z.getVisibleFields(),K=G[z.options.detailView&&!z.options.cardView?H-1:H],E=z.columns[i(z.columns,K)],L=o(M,K,z.options.escape);if(D.find(".detail-icon").length){return}z.trigger(J.type==="click"?"click-cell":"dbl-click-cell",K,L,M,D);z.trigger(J.type==="click"?"click-row":"dbl-click-row",M,F,K);if(J.type==="click"&&z.options.clickToSelect&&E.clickToSelect&&!z.options.ignoreClickToSelectOn(J.target)){var I=F.find(m('[name="%s"]',z.options.selectItemName));if(I.length){I[0].click()}}});this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(){var H=j(this),G=H.parent().parent(),E=G.data("index"),I=v[E];if(G.next().is("tr.detail-view")){H.find("i").attr("class",m("%s %s",z.options.iconsPrefix,z.options.icons.detailOpen));G.next().remove();z.trigger("collapse-row",E,I)}else{H.find("i").attr("class",m("%s %s",z.options.iconsPrefix,z.options.icons.detailClose));G.after(m('',G.find("td").length));var D=G.next().find("td");var F=q(z.options,z.options.detailFormatter,[E,I,D],"");if(D.length===1){D.append(F)}z.trigger("expand-row",E,I,D)}z.resetView()});this.$selectItem=this.$body.find(m('[name="%s"]',this.options.selectItemName));this.$selectItem.off("click").on("click",function(E){E.stopImmediatePropagation();var F=j(this),D=F.prop("checked"),G=z.data[F.data("index")];if(z.options.maintainSelected&&j(this).is(":radio")){j.each(z.options.data,function(H,I){I[z.header.stateField]=false})}G[z.header.stateField]=D;if(z.options.singleSelect){z.$selectItem.not(this).each(function(){z.data[j(this).data("index")][z.header.stateField]=false});z.$selectItem.filter(":checked").not(this).prop("checked",false)}z.updateSelected();z.trigger(D?"check":"uncheck",G,F)});j.each(this.header.events,function(G,F){if(!F){return}if(typeof F==="string"){F=q(null,F)}var H=z.header.fields[G],D=j.inArray(H,z.getVisibleFields());if(z.options.detailView&&!z.options.cardView){D+=1}for(var E in F){z.$body.find(">tr:not(.no-records-found)").each(function(){var M=j(this),N=M.find(z.options.cardView?".card-view":"td").eq(D),J=E.indexOf(" "),I=E.substring(0,J),K=E.substring(J+1),L=F[E];N.find(K).off(I).on(I,function(Q){var O=M.data("index"),R=z.data[O],P=R[H];L.apply(this,[Q,P,R,O])})})}});this.updateSelected();this.resetView();this.trigger("post-body",v)};e.prototype.initServer=function(r,w,s){var u=this,v={},x={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder},t;if(this.options.pagination){x.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize;x.pageNumber=this.options.pageNumber}if(!this.options.firstLoad&&!firstLoadTable.includes(this.options.id)){firstLoadTable.push(this.options.id);return}if(!(s||this.options.url)&&!this.options.ajax){return}if(this.options.queryParamsType==="limit"){x={search:x.searchText,sort:x.sortName,order:x.sortOrder};if(this.options.pagination){x.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1);x.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize}}if(!(j.isEmptyObject(this.filterColumnsPartial))){x.filter=JSON.stringify(this.filterColumnsPartial,null)}v=q(this.options,this.options.queryParams,[x],v);j.extend(v,w||{});if(v===false){return}if(!r){this.$tableLoading.show()}t=j.extend({},q(null,this.options.ajaxOptions),{type:this.options.method,url:s||this.options.url,data:this.options.contentType==="application/json"&&this.options.method==="post"?JSON.stringify(v):v,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(y){y=q(u.options,u.options.responseHandler,[y],y);u.load(y);u.trigger("load-success",y);if(!r){u.$tableLoading.hide()}},error:function(y){u.trigger("load-error",y.status,y);if(!r){u.$tableLoading.hide()}}});if(this.options.ajax){q(this,this.options.ajax,[t],null)}else{if(this._xhr&&this._xhr.readyState!==4){this._xhr.abort()}this._xhr=j.ajax(t)}};e.prototype.initSearchText=function(){if(this.options.search){if(this.options.searchText!==""){var r=this.$toolbar.find(".search input");r.val(this.options.searchText);this.onSearch({currentTarget:r})}}};e.prototype.getCaret=function(){var r=this;j.each(this.$header.find("th"),function(s,t){j(t).find(".sortable").removeClass("desc asc").addClass((j(t).data("field")===r.options.sortName||j(t).data("sortName")===r.options.sortName)?r.options.sortOrder:"both")})};e.prototype.updateSelected=function(){var r=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;var s=j(".left-fixed-table-columns input[name=btSelectItem]");if(s.length>0){r=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===s.filter(":enabled").filter(":checked").length}this.$selectAll.add(this.$selectAll_).prop("checked",r);this.$selectItem.each(function(){j(this).closest("tr")[j(this).prop("checked")?"addClass":"removeClass"]("selected")})};e.prototype.updateRows=function(){var r=this;this.$selectItem.each(function(){r.data[j(this).data("index")][r.header.stateField]=j(this).prop("checked")})};e.prototype.resetRows=function(){var r=this;j.each(this.data,function(s,t){r.$selectAll.prop("checked",false);r.$selectItem.prop("checked",false);if(r.header.stateField){t[r.header.stateField]=false}})};e.prototype.trigger=function(s){var r=Array.prototype.slice.call(arguments,1);s+=".bs.table";this.options[e.EVENTS[s]].apply(this.options,r);this.$el.trigger(j.Event(s),r);this.options.onAll(s,r);this.$el.trigger(j.Event("all.bs.table"),[s,r])};e.prototype.resetHeader=function(){clearTimeout(this.timeoutId_);this.timeoutId_=setTimeout(j.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)};e.prototype.fitHeader=function(){var t=this,u,r,x,y;if(t.$el.is(":hidden")){t.timeoutId_=setTimeout(j.proxy(t.fitHeader,t),100);return}u=this.$tableBody.get(0);r=u.scrollWidth>u.clientWidth&&u.scrollHeight>u.clientHeight+this.$header.outerHeight()?a():0;this.$el.css("margin-top",-this.$header.outerHeight());x=j(":focus");if(x.length>0){var z=x.parents("th");if(z.length>0){var A=z.attr("data-field");if(A!==undefined){var s=this.$header.find("[data-field='"+A+"']");if(s.length>0){s.find(":input").addClass("focus-temp")}}}}this.$header_=this.$header.clone(true,true);this.$selectAll_=this.$header_.find('[name="btSelectAll"]');this.$tableHeader.css({"margin-right":r}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_);y=j(".focus-temp:visible:eq(0)");if(y.length>0){y.focus();this.$header.find(".focus-temp").removeClass("focus-temp")}this.$header.find("th[data-field]").each(function(B){t.$header_.find(m('th[data-field="%s"]',j(this).data("field"))).data(j(this).data())});var w=this.getVisibleFields(),v=this.$header_.find("th");this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(C){var E=j(this),B=C;if(t.options.detailView&&!t.options.cardView){if(C===0){t.$header_.find("th.detail").find(".fht-cell").width(E.innerWidth())}B=C-1}var D=t.$header_.find(m('th[data-field="%s"]',w[B]));if(D.length>1){D=j(v[E[0].cellIndex])}D.find(".fht-cell").width(E.innerWidth())});this.$tableBody.off("scroll").on("scroll",function(){t.$tableHeader.scrollLeft(j(this).scrollLeft());if(t.options.showFooter&&!t.options.cardView){t.$tableFooter.scrollLeft(j(this).scrollLeft())}});t.trigger("post-header")};e.prototype.resetFooter=function(){var s=this,t=s.getData(),r=[];if(!this.options.showFooter||this.options.cardView){return}if(!this.options.cardView&&this.options.detailView){r.push('
     
    ')}j.each(this.columns,function(x,z){var w,B="",v="",A=[],y={},u=m(' class="%s"',z["class"]);if(!z.visible){return}if(s.options.cardView&&(!z.cardVisible)){return}B=m("text-align: %s; ",z.falign?z.falign:z.align);v=m("vertical-align: %s; ",z.valign);y=q(null,s.options.footerStyle);if(y&&y.css){for(w in y.css){A.push(w+": "+y.css[w])}}r.push("");r.push('
    ');r.push(q(z,z.footerFormatter,[t]," ")||" ");r.push("
    ");r.push('
    ');r.push("");r.push("")});this.$tableFooter.find("tr").html(r.join(""));this.$tableFooter.show();clearTimeout(this.timeoutFooter_);this.timeoutFooter_=setTimeout(j.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0)};e.prototype.fitFooter=function(){var u=this,r,t,s;clearTimeout(this.timeoutFooter_);if(this.$el.is(":hidden")){this.timeoutFooter_=setTimeout(j.proxy(this.fitFooter,this),100);return}t=this.$el.css("width");s=t>this.$tableBody.width()?a():0;this.$tableFooter.css({"margin-right":s}).find("table").css("width",t).attr("class",this.$el.attr("class"));r=this.$tableFooter.find("td");this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(v){var w=j(this);r.eq(v).find(".fht-cell").width(w.innerWidth())})};e.prototype.toggleColumn=function(r,s,u){if(r===-1){return}this.columns[r].visible=s;this.initHeader();this.initSearch();this.initPagination();this.initBody();if(this.options.showColumns){var t=this.$toolbar.find(".keep-open input").prop("disabled",false);if(u){t.filter(m('[value="%s"]',r)).prop("checked",s)}if(t.filter(":checked").length<=this.options.minimumCountColumns){t.filter(":checked").prop("disabled",true)}}};e.prototype.toggleRow=function(r,t,s){if(r===-1){return}this.$body.find(typeof r!=="undefined"?m('tr[data-index="%s"]',r):m('tr[data-uniqueid="%s"]',t))[s?"show":"hide"]()};e.prototype.getVisibleFields=function(){var s=this,r=[];j.each(this.header.fields,function(t,v){var u=s.columns[i(s.columns,v)];if(!u.visible){return}r.push(v)});return r};e.prototype.resetView=function(u){var s=0;if(u&&u.height){this.options.height=u.height}this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length);if(this.options.height){var t=d(this.$toolbar),v=d(this.$pagination),r=this.options.height-t-v;this.$tableContainer.css("height",r+"px")}if(this.options.cardView){this.$el.css("margin-top","0");this.$tableContainer.css("padding-bottom","0");this.$tableFooter.hide();return}if(this.options.showHeader&&this.options.height){this.$tableHeader.show();this.resetHeader();s+=this.$header.outerHeight()}else{this.$tableHeader.hide();this.trigger("post-header")}if(this.options.showFooter){this.resetFooter();if(this.options.height){s+=this.$tableFooter.outerHeight()+1}}this.getCaret();this.$tableContainer.css("padding-bottom",s+"px");this.trigger("reset-view")};e.prototype.getData=function(r){return(this.searchText||!j.isEmptyObject(this.filterColumns)||!j.isEmptyObject(this.filterColumnsPartial))?(r?this.data.slice(this.pageFrom-1,this.pageTo):this.data):(r?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data)};e.prototype.load=function(s){var r=false;if(this.options.sidePagination==="server"){this.options.totalRows=s.total;r=s.fixedScroll;s=s[this.options.dataField]}else{if(!j.isArray(s)){r=s.fixedScroll;s=s.data}}this.initData(s);this.initSearch();this.initPagination();this.initBody(r)};e.prototype.append=function(r){this.initData(r,"append");this.initSearch();this.initPagination();this.initSort();this.initBody(true)};e.prototype.prepend=function(r){this.initData(r,"prepend");this.initSearch();this.initPagination();this.initSort();this.initBody(true)};e.prototype.remove=function(u){var r=this.options.data.length,s,t;if(!u.hasOwnProperty("field")||!u.hasOwnProperty("values")){return}for(s=r-1;s>=0;s--){t=this.options.data[s];if(!t.hasOwnProperty(u.field)){continue}if(j.inArray(t[u.field],u.values)!==-1){this.options.data.splice(s,1)}}if(r===this.options.data.length){return}this.initSearch();this.initPagination();this.initSort();this.initBody(true)};e.prototype.removeAll=function(){if(this.options.data.length>0){this.options.data.splice(0,this.options.data.length);this.initSearch();this.initPagination();this.initBody(true)}};e.prototype.getRowByUniqueId=function(x){var w=this.options.uniqueId,r=this.options.data.length,s=null,t,v,u;for(t=r-1;t>=0;t--){v=this.options.data[t];if(v.hasOwnProperty(w)){u=v[w]}else{if(v._data.hasOwnProperty(w)){u=v._data[w]}else{continue}}if(typeof u==="string"){x=x.toString()}else{if(typeof u==="number"){if((Number(u)===u)&&(u%1===0)){x=parseInt(x)}else{if((u===Number(u))&&(u!==0)){x=parseFloat(x)}}}}if(u===x){s=v;break}}return s};e.prototype.removeByUniqueId=function(t){var r=this.options.data.length,s=this.getRowByUniqueId(t);if(s){this.options.data.splice(this.options.data.indexOf(s),1)}if(r===this.options.data.length){return}this.initSearch();this.initPagination();this.initBody(true)};e.prototype.updateByUniqueId=function(t){var r=this;var s=j.isArray(t)?t:[t];j.each(s,function(u,w){var v;if(!w.hasOwnProperty("id")||!w.hasOwnProperty("row")){return}v=j.inArray(r.getRowByUniqueId(w.id),r.options.data);if(v===-1){return}j.extend(r.options.data[v],w.row)});this.initSearch();this.initSort();this.initBody(true)};e.prototype.insertRow=function(r){if(!r.hasOwnProperty("index")||!r.hasOwnProperty("row")){return}this.data.splice(r.index,0,r.row);this.initSearch();this.initPagination();this.initSort();this.initBody(true)};e.prototype.updateRow=function(t){var r=this;var s=j.isArray(t)?t:[t];j.each(s,function(u,v){if(!v.hasOwnProperty("index")||!v.hasOwnProperty("row")){return}j.extend(r.options.data[v.index],v.row)});this.initSearch();this.initSort();this.initBody(true)};e.prototype.showRow=function(r){if(!r.hasOwnProperty("index")&&!r.hasOwnProperty("uniqueId")){return}this.toggleRow(r.index,r.uniqueId,true)};e.prototype.hideRow=function(r){if(!r.hasOwnProperty("index")&&!r.hasOwnProperty("uniqueId")){return}this.toggleRow(r.index,r.uniqueId,false)};e.prototype.getRowsHidden=function(r){var t=j(this.$body[0]).children().filter(":hidden"),s=0;if(r){for(;str"),r;if(this.options.detailView&&!this.options.cardView){t+=1}r=x.eq(y).find(">td").eq(t);if(y<0||t<0||y>=this.data.length){return}for(w=y;wtd").eq(v).hide()}}r.attr("rowspan",u).attr("colspan",s).show()};e.prototype.updateCell=function(r){if(!r.hasOwnProperty("index")||!r.hasOwnProperty("field")||!r.hasOwnProperty("value")){return}this.data[r.index][r.field]=r.value;if(r.reinit===false){return}this.initSort();this.initBody(true)};e.prototype.getOptions=function(){return this.options};e.prototype.getSelections=function(){var r=this;return j.grep(this.options.data,function(s){return s[r.header.stateField] -})};e.prototype.getAllSelections=function(){var r=this;return j.grep(this.options.data,function(s){return s[r.header.stateField]})};e.prototype.checkAll=function(){this.checkAll_(true)};e.prototype.uncheckAll=function(){this.checkAll_(false)};e.prototype.checkInvert=function(){var s=this;var t=s.$selectItem.filter(":enabled");var r=t.filter(":checked");t.each(function(){j(this).prop("checked",!j(this).prop("checked"))});s.updateRows();s.updateSelected();s.trigger("uncheck-some",r);r=s.getSelections();s.trigger("check-some",r)};e.prototype.checkAll_=function(r){var s;if(!r){s=this.getSelections()}this.$selectAll.add(this.$selectAll_).prop("checked",r);this.$selectItem.filter(":enabled").prop("checked",r);this.updateRows();if(r){s=this.getSelections()}this.trigger(r?"check-all":"uncheck-all",s)};e.prototype.check=function(r){this.check_(true,r)};e.prototype.uncheck=function(r){this.check_(false,r)};e.prototype.check_=function(t,r){var s=this.$selectItem.filter(m('[data-index="%s"]',r)).prop("checked",t);this.data[r][this.header.stateField]=t;this.updateSelected();this.trigger(t?"check":"uncheck",this.data[r],s)};e.prototype.checkBy=function(r){this.checkBy_(true,r)};e.prototype.uncheckBy=function(r){this.checkBy_(false,r)};e.prototype.checkBy_=function(s,u){if(!u.hasOwnProperty("field")||!u.hasOwnProperty("values")){return}var r=this,t=[];j.each(this.options.data,function(v,x){if(!x.hasOwnProperty(u.field)){return false}if(j.inArray(x[u.field],u.values)!==-1){var w=r.$selectItem.filter(":enabled").filter(m('[data-index="%s"]',v)).prop("checked",s);x[r.header.stateField]=s;t.push(x);r.trigger(s?"check":"uncheck",x,w)}});this.updateSelected();this.trigger(s?"check-some":"uncheck-some",t)};e.prototype.destroy=function(){this.$el.insertBefore(this.$container);j(this.options.toolbar).insertBefore(this.$el);this.$container.next().remove();this.$container.remove();this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")};e.prototype.showLoading=function(){this.$tableLoading.show()};e.prototype.hideLoading=function(){this.$tableLoading.hide()};e.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var r=this.$toolbar.find('button[name="paginationSwitch"] i');if(this.options.pagination){r.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown)}else{r.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp)}this.updatePagination()};e.prototype.toggleFullscreen=function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen")};e.prototype.refresh=function(r){if(r&&r.url){this.options.pageNumber=1}table.rememberSelecteds={};table.rememberSelectedIds={};this.initServer(r&&r.silent,r&&r.query,r&&r.url);this.trigger("refresh",r)};e.prototype.resetWidth=function(){if(this.options.showHeader&&this.options.height){this.fitHeader()}if(this.options.showFooter){this.fitFooter()}};e.prototype.showColumn=function(r){this.toggleColumn(i(this.columns,r),true,true)};e.prototype.hideColumn=function(r){this.toggleColumn(i(this.columns,r),false,true)};e.prototype.getHiddenColumns=function(){return j.grep(this.columns,function(r){return !r.visible})};e.prototype.getVisibleColumns=function(){return j.grep(this.columns,function(r){return r.visible})};e.prototype.toggleAllColumns=function(s){var r=this;j.each(this.columns,function(u,v){r.columns[u].visible=s});this.initHeader();this.initSearch();this.initPagination();this.initBody();if(this.options.showColumns){var t=this.$toolbar.find(".keep-open input").prop("disabled",false);if(t.filter(":checked").length<=this.options.minimumCountColumns){t.filter(":checked").prop("disabled",true)}}};e.prototype.showAllColumns=function(){this.toggleAllColumns(true)};e.prototype.hideAllColumns=function(){this.toggleAllColumns(false)};e.prototype.filterBy=function(r){this.filterColumns=j.isEmptyObject(r)?{}:r;this.options.pageNumber=1;this.initSearch();this.updatePagination()};e.prototype.scrollTo=function(r){if(typeof r==="string"){r=r==="bottom"?this.$tableBody[0].scrollHeight:0}if(typeof r==="number"){this.$tableBody.scrollTop(r)}if(typeof r==="undefined"){return this.$tableBody.scrollTop()}};e.prototype.getScrollPosition=function(){return this.scrollTo()};e.prototype.selectPage=function(r){if(r>0&&r<=this.options.totalPages){this.options.pageNumber=r;this.updatePagination()}};e.prototype.prevPage=function(){if(this.options.pageNumber>1){this.options.pageNumber--;this.updatePagination()}};e.prototype.nextPage=function(){if(this.options.pageNumber tr[data-index="%s"]',r));if(t.next().is("tr.detail-view")===(s?false:true)){t.find("> td > .detail-icon").click()}};e.prototype.expandRow=function(r){this.expandRow_(true,r)};e.prototype.collapseRow=function(r){this.expandRow_(false,r)};e.prototype.expandAllRows=function(r){if(r){var w=this.$body.find(m('> tr[data-index="%s"]',0)),x=this,u=null,v=false,s=-1;if(!w.next().is("tr.detail-view")){w.find("> td > .detail-icon").click();v=true}else{if(!w.next().next().is("tr.detail-view")){w.next().find(".detail-icon").click();v=true}}if(v){try{s=setInterval(function(){u=x.$body.find("tr.detail-view").last().find(".detail-icon");if(u.length>0){u.click()}else{clearInterval(s)}},1)}catch(z){clearInterval(s)}}}else{var y=this.$body.children();for(var t=0;t0?Ab:zb)(a)},Cb=Math.min,Db=function(a){return a>0?Cb(Bb(a),9007199254740991):0},Eb=Math.max,Fb=Math.min,Gb=function(a,b){var c=Bb(a);return 0>c?Eb(c+b,0):Fb(c,b)},Hb=function(a){return function(b,c,d){var e,f=F(b),g=Db(f.length),h=Gb(d,g);if(a&&c!=c){for(;g>h;)if(e=f[h++],e!=e)return!0}else for(;g>h;h++)if((a||h in f)&&f[h]===c)return a||h||0;return!a&&-1}},Ib={includes:Hb(!0),indexOf:Hb(!1)},Jb=Ib.indexOf,Kb=function(a,b){var c,d=F(a),e=0,f=[];for(c in d)!J(ib,c)&&J(d,c)&&f.push(c);for(;b.length>e;)J(d,c=b[e++])&&(~Jb(f,c)||f.push(c));return f},Lb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mb=Lb.concat("length","prototype"),Nb=Object.getOwnPropertyNames||function(a){return Kb(a,Mb)},Ob={f:Nb},Pb=Object.getOwnPropertySymbols,Qb={f:Pb},Rb=yb("Reflect","ownKeys")||function(a){var b=Ob.f(R(a)),c=Qb.f;return c?b.concat(c(a)):b},Sb=function(a,b){var c,d,e=Rb(b),f=U.f,g=Q.f;for(c=0;ce;)U.f(a,f=c[e++],b[f]);return a},gc=yb("document","documentElement"),hc=">",ic="<",jc="prototype",kc="script",lc=hb("IE_PROTO"),mc=function(){},nc=function(a){return ic+kc+hc+a+ic+"/"+kc+hc},oc=function(a){a.write(nc("")),a.close();var b=a.parentWindow.Object;return a=null,b},pc=function(){var a,b=M("iframe"),c="java"+kc+":";return b.style.display="none",gc.appendChild(b),b.src=String(c),a=b.contentWindow.document,a.open(),a.write(nc("document.F=Object")),a.close(),a.F},rc=function(){try{qc=document.domain&&new ActiveXObject("htmlfile")}catch(a){}rc=qc?oc(qc):pc();for(var b=Lb.length;b--;)delete rc[jc][Lb[b]];return rc()},ib[lc]=!0,sc=Object.create||function(a,b){var c;return null!==a?(mc[jc]=R(a),c=new mc,mc[jc]=null,c[lc]=a):c=rc(),void 0===b?c:fc(c,b)},tc=Ob.f,uc={}.toString,vc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wc=function(a){try{return tc(a)}catch(b){return vc.slice()}},xc=function(a){return vc&&"[object Window]"==uc.call(a)?wc(a):tc(F(a))},yc={f:xc},zc=cb("wks"),Ac=r.Symbol,Bc=bc?Ac:fb,Cc=function(a){return J(zc,a)||(zc[a]=ac&&J(Ac,a)?Ac[a]:Bc("Symbol."+a)),zc[a]},Dc=Cc,Ec={f:Dc},Fc=U.f,Gc=function(a){var b=wb.Symbol||(wb.Symbol={});J(b,a)||Fc(b,a,{value:Ec.f(a)})},Hc=U.f,Ic=Cc("toStringTag"),Jc=function(a,b,c){a&&!J(a=c?a:a.prototype,Ic)&&Hc(a,Ic,{configurable:!0,value:b})},Kc=function(a){if("function"!=typeof a)throw TypeError(String(a)+" is not a function");return a},Lc=function(a,b,c){if(Kc(a),void 0===b)return a;switch(c){case 0:return function(){return a.call(b)};case 1:return function(c){return a.call(b,c)};case 2:return function(c,d){return a.call(b,c,d)};case 3:return function(c,d,e){return a.call(b,c,d,e)}}return function(){return a.apply(b,arguments)}},Mc=Cc("species"),Nc=function(a,b){var c;return cc(a)&&(c=a.constructor,"function"!=typeof c||c!==Array&&!cc(c.prototype)?G(c)&&(c=c[Mc],null===c&&(c=void 0)):c=void 0),new(void 0===c?Array:c)(0===b?0:b)},Oc=[].push,Pc=function(a){var b=1==a,c=2==a,d=3==a,e=4==a,f=6==a,g=5==a||f;return function(h,i,j,k){for(var l,m,n=dc(h),o=D(n),p=Lc(i,j,3),q=Db(o.length),r=0,s=k||Nc,t=b?s(h,q):c?s(h,0):void 0;q>r;r++)if((g||r in o)&&(l=o[r],m=p(l,r,n),a))if(b)t[r]=m;else if(m)switch(a){case 3:return!0;case 5:return l;case 6:return r;case 2:Oc.call(t,l)}else if(e)return!1;return f?-1:d||e?e:t}},Qc={forEach:Pc(0),map:Pc(1),filter:Pc(2),some:Pc(3),every:Pc(4),find:Pc(5),findIndex:Pc(6)},Rc=Qc.forEach,Sc=hb("hidden"),Tc="Symbol",Uc="prototype",Vc=Cc("toPrimitive"),Wc=ub.set,Xc=ub.getterFor(Tc),Yc=Object[Uc],Zc=r.Symbol,$c=yb("JSON","stringify"),_c=Q.f,ad=U.f,bd=yc.f,cd=y.f,dd=cb("symbols"),ed=cb("op-symbols"),fd=cb("string-to-symbol-registry"),gd=cb("symbol-to-string-registry"),hd=cb("wks"),id=r.QObject,jd=!id||!id[Uc]||!id[Uc].findChild,kd=t&&s(function(){return 7!=sc(ad({},"a",{get:function(){return ad(this,"a",{value:7}).a}})).a})?function(a,b,c){var d=_c(Yc,b);d&&delete Yc[b],ad(a,b,c),d&&a!==Yc&&ad(Yc,b,d)}:ad,ld=function(a,b){var c=dd[a]=sc(Zc[Uc]);return Wc(c,{type:Tc,tag:a,description:b}),t||(c.description=b),c},md=ac&&"symbol"==typeof Zc.iterator?function(a){return"symbol"==typeof a}:function(a){return Object(a)instanceof Zc},nd=function(a,b,c){a===Yc&&nd(ed,b,c),R(a);var d=H(b,!0);return R(c),J(dd,d)?(c.enumerable?(J(a,Sc)&&a[Sc][d]&&(a[Sc][d]=!1),c=sc(c,{enumerable:z(0,!1)})):(J(a,Sc)||ad(a,Sc,z(1,{})),a[Sc][d]=!0),kd(a,d,c)):ad(a,d,c)},od=function(a,b){var c,d;return R(a),c=F(b),d=ec(c).concat(td(c)),Rc(d,function(b){(!t||qd.call(c,b))&&nd(a,b,c[b])}),a},pd=function(a,b){return void 0===b?sc(a):od(sc(a),b)},qd=function(a){var b=H(a,!0),c=cd.call(this,b);return this===Yc&&J(dd,b)&&!J(ed,b)?!1:c||!J(this,b)||!J(dd,b)||J(this,Sc)&&this[Sc][b]?c:!0},rd=function(a,b){var c,d=F(a),e=H(b,!0);return d!==Yc||!J(dd,e)||J(ed,e)?(c=_c(d,e),!c||!J(dd,e)||J(d,Sc)&&d[Sc][e]||(c.enumerable=!0),c):void 0},sd=function(a){var b=bd(F(a)),c=[];return Rc(b,function(a){J(dd,a)||J(ib,a)||c.push(a)}),c},td=function(a){var b=a===Yc,c=bd(b?ed:F(a)),d=[];return Rc(c,function(a){!J(dd,a)||b&&!J(Yc,a)||d.push(dd[a])}),d},ac||(Zc=function(){var a,b,c;if(this instanceof Zc)throw TypeError("Symbol is not a constructor");return a=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,b=fb(a),c=function(a){this===Yc&&c.call(ed,a),J(this,Sc)&&J(this[Sc],b)&&(this[Sc][b]=!1),kd(this,b,z(1,a))},t&&jd&&kd(Yc,b,{configurable:!0,set:c}),ld(b,a)},vb(Zc[Uc],"toString",function(){return Xc(this).tag}),y.f=qd,U.f=nd,Q.f=rd,Ob.f=yc.f=sd,Qb.f=td,t&&(ad(Zc[Uc],"description",{configurable:!0,get:function(){return Xc(this).description}}),vb(Yc,"propertyIsEnumerable",qd,{unsafe:!0}))),bc||(Ec.f=function(a){return ld(Cc(a),a)}),_b({global:!0,wrap:!0,forced:!ac,sham:!ac},{Symbol:Zc}),Rc(ec(hd),function(a){Gc(a)}),_b({target:Tc,stat:!0,forced:!ac},{"for":function(a){var b,c=String(a);return J(fd,c)?fd[c]:(b=Zc(c),fd[c]=b,gd[b]=c,b)},keyFor:function(a){if(!md(a))throw TypeError(a+" is not a symbol");return J(gd,a)?gd[a]:void 0},useSetter:function(){jd=!0},useSimple:function(){jd=!1}}),_b({target:"Object",stat:!0,forced:!ac,sham:!t},{create:pd,defineProperty:nd,defineProperties:od,getOwnPropertyDescriptor:rd}),_b({target:"Object",stat:!0,forced:!ac},{getOwnPropertyNames:sd,getOwnPropertySymbols:td}),_b({target:"Object",stat:!0,forced:s(function(){Qb.f(1)})},{getOwnPropertySymbols:function(a){return Qb.f(dc(a))}}),$c&&(ud=!ac||s(function(){var a=Zc();return"[null]"!=$c([a])||"{}"!=$c({a:a})||"{}"!=$c(Object(a))}),_b({target:"JSON",stat:!0,forced:ud},{stringify:function(a,b){for(var c,d=[a],e=1;arguments.length>e;)d.push(arguments[e++]);return c=b,!G(b)&&void 0===a||md(a)?void 0:(cc(b)||(b=function(a,b){return"function"==typeof c&&(b=c.call(this,a,b)),md(b)?void 0:b}),d[1]=b,$c.apply(null,d))}})),Zc[Uc][Vc]||V(Zc[Uc],Vc,Zc[Uc].valueOf),Jc(Zc,Tc),ib[Sc]=!0,vd=U.f,wd=r.Symbol,!t||"function"!=typeof wd||"description"in wd.prototype&&void 0===wd().description||(xd={},yd=function(){var a=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),b=this instanceof yd?new wd(a):void 0===a?wd():wd(a);return""===a&&(xd[b]=!0),b},Sb(yd,wd),zd=yd.prototype=wd.prototype,zd.constructor=yd,Ad=zd.toString,Bd="Symbol(test)"==String(wd("test")),Cd=/^Symbol\((.*)\)[^)]+$/,vd(zd,"description",{configurable:!0,get:function(){var a,b=G(this)?this.valueOf():this,c=Ad.call(b);return J(xd,b)?"":(a=Bd?c.slice(7,-1):c.replace(Cd,"$1"),""===a?void 0:a)}}),_b({global:!0,forced:!0},{Symbol:yd})),Gc("iterator"),Dd=function(a,b,c){var d=H(b);d in a?U.f(a,d,z(0,c)):a[d]=c},Ed=yb("navigator","userAgent")||"",Fd=r.process,Gd=Fd&&Fd.versions,Hd=Gd&&Gd.v8,Hd?(Id=Hd.split("."),Jd=Id[0]+Id[1]):Ed&&(Id=Ed.match(/Edge\/(\d+)/),(!Id||Id[1]>=74)&&(Id=Ed.match(/Chrome\/(\d+)/),Id&&(Jd=Id[1]))),Kd=Jd&&+Jd,Ld=Cc("species"),Md=function(a){return Kd>=51||!s(function(){var b=[],c=b.constructor={};return c[Ld]=function(){return{foo:1}},1!==b[a](Boolean).foo})},Nd=Cc("isConcatSpreadable"),Od=9007199254740991,Pd="Maximum allowed index exceeded",Qd=Kd>=51||!s(function(){var a=[];return a[Nd]=!1,a.concat()[0]!==a}),Rd=Md("concat"),Sd=function(a){if(!G(a))return!1;var b=a[Nd];return void 0!==b?!!b:cc(a)},Td=!Qd||!Rd,_b({target:"Array",proto:!0,forced:Td},{concat:function(){var a,b,c,d,e,f=dc(this),g=Nc(f,0),h=0;for(a=-1,c=arguments.length;c>a;a++)if(e=-1===a?f:arguments[a],Sd(e)){if(d=Db(e.length),h+d>Od)throw TypeError(Pd);for(b=0;d>b;b++,h++)b in e&&Dd(g,h,e[b])}else{if(h>=Od)throw TypeError(Pd);Dd(g,h++,e)}return g.length=h,g}}),Ud=Qc.filter,Vd=Md("filter"),Wd=Vd&&!s(function(){[].filter.call({length:-1,0:1},function(a){throw a})}),_b({target:"Array",proto:!0,forced:!Vd||!Wd},{filter:function(a){return Ud(this,a,arguments.length>1?arguments[1]:void 0)}}),Xd=Cc("unscopables"),Yd=Array.prototype,void 0==Yd[Xd]&&U.f(Yd,Xd,{configurable:!0,value:sc(null)}),Zd=function(a){Yd[Xd][a]=!0},$d=Qc.find,_d="find",ae=!0,_d in[]&&Array(1)[_d](function(){ae=!1}),_b({target:"Array",proto:!0,forced:ae},{find:function(a){return $d(this,a,arguments.length>1?arguments[1]:void 0)}}),Zd(_d),be=Qc.findIndex,ce="findIndex",de=!0,ce in[]&&Array(1)[ce](function(){de=!1}),_b({target:"Array",proto:!0,forced:de},{findIndex:function(a){return be(this,a,arguments.length>1?arguments[1]:void 0)}}),Zd(ce),ee=Ib.includes,_b({target:"Array",proto:!0},{includes:function(a){return ee(this,a,arguments.length>1?arguments[1]:void 0)}}),Zd("includes"),fe=function(a,b){var c=[][a];return!c||!s(function(){c.call(null,b||function(){throw 1},1)})},ge=Ib.indexOf,he=[].indexOf,ie=!!he&&1/[1].indexOf(1,-0)<0,je=fe("indexOf"),_b({target:"Array",proto:!0,forced:ie||je},{indexOf:function(a){return ie?he.apply(this,arguments)||0:ge(this,a,arguments.length>1?arguments[1]:void 0)}}),ke=!s(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype}),le=hb("IE_PROTO"),me=Object.prototype,ne=ke?Object.getPrototypeOf:function(a){return a=dc(a),J(a,le)?a[le]:"function"==typeof a.constructor&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?me:null},oe=Cc("iterator"),pe=!1,qe=function(){return this},[].keys&&(te=[].keys(),"next"in te?(se=ne(ne(te)),se!==Object.prototype&&(re=se)):pe=!0),void 0==re&&(re={}),J(re,oe)||V(re,oe,qe),ue={IteratorPrototype:re,BUGGY_SAFARI_ITERATORS:pe},ve=ue.IteratorPrototype,we=function(a,b,c){var d=b+" Iterator";return a.prototype=sc(ve,{next:z(1,c)}),Jc(a,d,!1),a},xe=function(a){if(!G(a)&&null!==a)throw TypeError("Can't set "+String(a)+" as a prototype");return a},ye=Object.setPrototypeOf||("__proto__"in{}?function(){var a,b=!1,c={};try{a=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,a.call(c,[]),b=c instanceof Array}catch(d){}return function(c,d){return R(c),xe(d),b?a.call(c,d):c.__proto__=d,c}}():void 0),ze=ue.IteratorPrototype,Ae=ue.BUGGY_SAFARI_ITERATORS,Be=Cc("iterator"),Ce="keys",De="values",Ee="entries",Fe=function(){return this},Ge=function(a,b,c,d,e,f,g){var h,i,j,k,l,m,n,o,p,q;if(we(c,b,d),h=function(a){if(a===e&&m)return m;if(!Ae&&a in k)return k[a];switch(a){case Ce:return function(){return new c(this,a)};case De:return function(){return new c(this,a)};case Ee:return function(){return new c(this,a)}}return function(){return new c(this)}},i=b+" Iterator",j=!1,k=a.prototype,l=k[Be]||k["@@iterator"]||e&&k[e],m=!Ae&&l||h(e),n="Array"==b?k.entries||l:l,n&&(o=ne(n.call(new a)),ze!==Object.prototype&&o.next&&(ne(o)!==ze&&(ye?ye(o,ze):"function"!=typeof o[Be]&&V(o,Be,Fe)),Jc(o,i,!0))),e==De&&l&&l.name!==De&&(j=!0,m=function(){return l.call(this)}),k[Be]!==m&&V(k,Be,m),e)if(p={values:h(De),keys:f?m:h(Ce),entries:h(Ee)},g)for(q in p)!Ae&&!j&&q in k||vb(k,q,p[q]);else _b({target:b,proto:!0,forced:Ae||j},p);return p},He="Array Iterator",Ie=ub.set,Je=ub.getterFor(He),Ke=Ge(Array,"Array",function(a,b){Ie(this,{type:He,target:F(a),index:0,kind:b})},function(){var a=Je(this),b=a.target,c=a.kind,d=a.index++;return!b||d>=b.length?(a.target=void 0,{value:void 0,done:!0}):"keys"==c?{value:d,done:!1}:"values"==c?{value:b[d],done:!1}:{value:[d,b[d]],done:!1}},"values"),Zd("keys"),Zd("values"),Zd("entries"),Le=[].join,Me=D!=Object,Ne=fe("join",","),_b({target:"Array",proto:!0,forced:Me||Ne},{join:function(a){return Le.call(F(this),void 0===a?",":a)}}),Oe=Qc.map,Pe=Md("map"),Qe=Pe&&!s(function(){[].map.call({length:-1,0:1},function(a){throw a})}),_b({target:"Array",proto:!0,forced:!Pe||!Qe},{map:function(a){return Oe(this,a,arguments.length>1?arguments[1]:void 0)}}),Re=[].reverse,Se=[1,2],_b({target:"Array",proto:!0,forced:String(Se)===String(Se.reverse())},{reverse:function(){return cc(this)&&(this.length=this.length),Re.call(this)}}),Te=Cc("species"),Ue=[].slice,Ve=Math.max,_b({target:"Array",proto:!0,forced:!Md("slice")},{slice:function(a,b){var c,d,e,f=F(this),g=Db(f.length),h=Gb(a,g),i=Gb(void 0===b?g:b,g);if(cc(f)&&(c=f.constructor,"function"!=typeof c||c!==Array&&!cc(c.prototype)?G(c)&&(c=c[Te],null===c&&(c=void 0)):c=void 0,c===Array||void 0===c))return Ue.call(f,h,i);for(d=new(void 0===c?Array:c)(Ve(i-h,0)),e=0;i>h;h++,e++)h in f&&Dd(d,e,f[h]);return d.length=e,d}}),We=[],Xe=We.sort,Ye=s(function(){We.sort(void 0)}),Ze=s(function(){We.sort(null)}),$e=fe("sort"),_e=Ye||!Ze||$e,_b({target:"Array",proto:!0,forced:_e},{sort:function(a){return void 0===a?Xe.call(dc(this)):Xe.call(dc(this),Kc(a))}}),af=Math.max,bf=Math.min,cf=9007199254740991,df="Maximum allowed length exceeded",_b({target:"Array",proto:!0,forced:!Md("splice")},{splice:function(a,b){var c,d,e,f,g,h,i=dc(this),j=Db(i.length),k=Gb(a,j),l=arguments.length;if(0===l?c=d=0:1===l?(c=0,d=j-k):(c=l-2,d=bf(af(Bb(b),0),j-k)),j+c-d>cf)throw TypeError(df);for(e=Nc(i,d),f=0;d>f;f++)g=k+f,g in i&&Dd(e,f,i[g]);if(e.length=d,d>c){for(f=k;j-d>f;f++)g=f+d,h=f+c,g in i?i[h]=i[g]:delete i[h];for(f=j;f>j-d+c;f--)delete i[f-1]}else if(c>d)for(f=j-d;f>k;f--)g=f+d-1,h=f+c-1,g in i?i[h]=i[g]:delete i[h];for(f=0;c>f;f++)i[f+k]=arguments[f+2];return i.length=j-d+c,e}}),ef=function(a,b,c){var d,e;return ye&&"function"==typeof(d=b.constructor)&&d!==c&&G(e=d.prototype)&&e!==c.prototype&&ye(a,e),a},ff=" \n \f\r                 \u2028\u2029",gf="["+ff+"]",hf=RegExp("^"+gf+gf+"*"),jf=RegExp(gf+gf+"*$"),kf=function(a){return function(b){var c=String(E(b));return 1&a&&(c=c.replace(hf,"")),2&a&&(c=c.replace(jf,"")),c}},lf={start:kf(1),end:kf(2),trim:kf(3)},mf=Ob.f,nf=Q.f,of=U.f,pf=lf.trim,qf="Number",rf=r[qf],sf=rf.prototype,tf=B(sc(sf))==qf,uf=function(a){var b,c,d,e,f,g,h,i,j=H(a,!1);if("string"==typeof j&&j.length>2)if(j=pf(j),b=j.charCodeAt(0),43===b||45===b){if(c=j.charCodeAt(2),88===c||120===c)return 0/0}else if(48===b){switch(j.charCodeAt(1)){case 66:case 98:d=2,e=49;break;case 79:case 111:d=8,e=55;break;default:return+j}for(f=j.slice(2),g=f.length,h=0;g>h;h++)if(i=f.charCodeAt(h),48>i||i>e)return 0/0;return parseInt(f,d)}return+j},Zb(qf,!rf(" 0o1")||!rf("0b1")||rf("+0x1"))){for(vf=function(a){var b=arguments.length<1?0:a,c=this;return c instanceof vf&&(tf?s(function(){sf.valueOf.call(c)}):B(c)!=qf)?ef(new rf(uf(b)),c,vf):uf(b)},xf=t?mf(rf):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),yf=0;xf.length>yf;yf++)J(rf,wf=xf[yf])&&!J(vf,wf)&&of(vf,wf,nf(rf,wf));vf.prototype=sf,sf.constructor=vf,vb(r,qf,vf)}zf=Object.assign,Af=Object.defineProperty,Bf=!zf||s(function(){var a,b,c,d;return t&&1!==zf({b:1},zf(Af({},"a",{enumerable:!0,get:function(){Af(this,"b",{value:3,enumerable:!1})}}),{b:2})).b?!0:(a={},b={},c=Symbol(),d="abcdefghijklmnopqrst",a[c]=7,d.split("").forEach(function(a){b[a]=a}),7!=zf({},a)[c]||ec(zf({},b)).join("")!=d)})?function(a){for(var b,c,d,e,f,g=dc(a),h=arguments.length,i=1,j=Qb.f,k=y.f;h>i;)for(b=D(arguments[i++]),c=j?ec(b).concat(j(b)):ec(b),d=c.length,e=0;d>e;)f=c[e++],(!t||k.call(b,f))&&(g[f]=b[f]);return g}:zf,_b({target:"Object",stat:!0,forced:Object.assign!==Bf},{assign:Bf}),Cf=y.f,Df=function(a){return function(b){for(var c,d=F(b),e=ec(d),f=e.length,g=0,h=[];f>g;)c=e[g++],(!t||Cf.call(d,c))&&h.push(a?[c,d[c]]:d[c]);return h}},Ef={entries:Df(!0),values:Df(!1)},Ff=Ef.entries,_b({target:"Object",stat:!0},{entries:function(a){return Ff(a)}}),Gf=Cc("toStringTag"),Hf={},Hf[Gf]="z",If="[object z]"===String(Hf),Jf=Cc("toStringTag"),Kf="Arguments"==B(function(){return arguments}()),Lf=function(a,b){try{return a[b]}catch(c){}},Mf=If?B:function(a){var b,c,d;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=Lf(b=Object(a),Jf))?c:Kf?B(b):"Object"==(d=B(b))&&"function"==typeof b.callee?"Arguments":d},Nf=If?{}.toString:function(){return"[object "+Mf(this)+"]"},If||vb(Object.prototype,"toString",Nf,{unsafe:!0}),Of=lf.trim,Pf=r.parseFloat,Qf=1/Pf(ff+"-0")!==-1/0,Rf=Qf?function(a){var b=Of(String(a)),c=Pf(b);return 0===c&&"-"==b.charAt(0)?-0:c}:Pf,_b({global:!0,forced:parseFloat!=Rf},{parseFloat:Rf}),Sf=lf.trim,Tf=r.parseInt,Uf=/^[+-]?0[Xx]/,Vf=8!==Tf(ff+"08")||22!==Tf(ff+"0x16"),Wf=Vf?function(a,b){var c=Sf(String(a));return Tf(c,b>>>0||(Uf.test(c)?16:10))}:Tf,_b({global:!0,forced:parseInt!=Wf},{parseInt:Wf}),Xf=function(){var a=R(this),b="";return a.global&&(b+="g"),a.ignoreCase&&(b+="i"),a.multiline&&(b+="m"),a.dotAll&&(b+="s"),a.unicode&&(b+="u"),a.sticky&&(b+="y"),b},Yf=s(function(){var a=c("a","y");return a.lastIndex=2,null!=a.exec("abcd")}),Zf=s(function(){var a=c("^r","gy");return a.lastIndex=2,null!=a.exec("str")}),$f={UNSUPPORTED_Y:Yf,BROKEN_CARET:Zf},_f=RegExp.prototype.exec,ag=String.prototype.replace,bg=_f,cg=function(){var a=/a/,b=/b*/g;return _f.call(a,"a"),_f.call(b,"a"),0!==a.lastIndex||0!==b.lastIndex}(),dg=$f.UNSUPPORTED_Y||$f.BROKEN_CARET,eg=void 0!==/()??/.exec("")[1],fg=cg||eg||dg,fg&&(bg=function(a){var b,c,d,e,f=this,g=dg&&f.sticky,h=Xf.call(f),i=f.source,j=0,k=a;return g&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),k=String(a).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==a[f.lastIndex-1])&&(i="(?: "+i+")",k=" "+k,j++),c=new RegExp("^(?:"+i+")",h)),eg&&(c=new RegExp("^"+i+"$(?!\\s)",h)),cg&&(b=f.lastIndex),d=_f.call(g?c:f,k),g?d?(d.input=d.input.slice(j),d[0]=d[0].slice(j),d.index=f.lastIndex,f.lastIndex+=d[0].length):f.lastIndex=0:cg&&d&&(f.lastIndex=f.global?d.index+d[0].length:b),eg&&d&&d.length>1&&ag.call(d[0],c,function(){for(e=1;e1?arguments[1]:void 0)}}),rg=function(a){return function(b,c){var d,e,f=String(E(b)),g=Bb(c),h=f.length;return 0>g||g>=h?a?"":void 0:(d=f.charCodeAt(g),55296>d||d>56319||g+1===h||(e=f.charCodeAt(g+1))<56320||e>57343?a?f.charAt(g):d:a?f.slice(g,g+2):(d-55296<<10)+(e-56320)+65536)}},sg={codeAt:rg(!1),charAt:rg(!0)},tg=sg.charAt,ug="String Iterator",vg=ub.set,wg=ub.getterFor(ug),Ge(String,"String",function(a){vg(this,{type:ug,string:String(a),index:0})},function(){var a,b=wg(this),c=b.string,d=b.index;return d>=c.length?{value:void 0,done:!0}:(a=tg(c,d),b.index+=a.length,{value:a,done:!1})}),xg=Cc("species"),yg=!s(function(){var a=/./;return a.exec=function(){var a=[];return a.groups={a:"7"},a},"7"!=="".replace(a,"$")}),zg=function(){return"$0"==="a".replace(/./,"$0")}(),Ag=!s(function(){var a,b=/(?:)/,c=b.exec;return b.exec=function(){return c.apply(this,arguments)},a="ab".split(b),2!==a.length||"a"!==a[0]||"b"!==a[1]}),Bg=function(a,b,c,d){var e,f,g,h,i=Cc(a),j=!s(function(){var b={};return b[i]=function(){return 7},7!=""[a](b)}),k=j&&!s(function(){var b=!1,c=/a/;return"split"===a&&(c={},c.constructor={},c.constructor[xg]=function(){return c},c.flags="",c[i]=/./[i]),c.exec=function(){return b=!0,null},c[i](""),!b});j&&k&&("replace"!==a||yg&&zg)&&("split"!==a||Ag)||(e=/./[i],f=c(i,""[a],function(a,b,c,d,f){return b.exec===gg?j&&!f?{done:!0,value:e.call(b,c,d)}:{done:!0,value:a.call(c,b,d)}:{done:!1}},{REPLACE_KEEPS_$0:zg}),g=f[0],h=f[1],vb(String.prototype,a,g),vb(RegExp.prototype,i,2==b?function(a,b){return h.call(a,this,b)}:function(a){return h.call(a,this)})),d&&V(RegExp.prototype[i],"sham",!0)},Cg=sg.charAt,Dg=function(a,b,c){return b+(c?Cg(a,b).length:1)},Eg=function(a,b){var c,d=a.exec;if("function"==typeof d){if(c=d.call(a,b),"object"!=typeof c)throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==B(a))throw TypeError("RegExp#exec called on incompatible receiver");return gg.call(a,b)},Fg=Math.max,Gg=Math.min,Hg=Math.floor,Ig=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jg=/\$([$&'`]|\d\d?)/g,Kg=function(a){return void 0===a?a:String(a)},Bg("replace",2,function(a,b,c,d){function e(a,c,d,e,f,g){var h=d+a.length,i=e.length,j=Jg;return void 0!==f&&(f=dc(f),j=Ig),b.call(g,j,function(b,g){var j,k,l;switch(g.charAt(0)){case"$":return"$";case"&":return a;case"`":return c.slice(0,d);case"'":return c.slice(h);case"<":j=f[g.slice(1,-1)];break;default:if(k=+g,0===k)return b;if(k>i)return l=Hg(k/10),0===l?b:i>=l?void 0===e[l-1]?g.charAt(1):e[l-1]+g.charAt(1):b;j=e[k-1]}return void 0===j?"":j})}return[function(c,d){var e=E(this),f=void 0==c?void 0:c[a];return void 0!==f?f.call(c,e,d):b.call(String(e),c,d)},function(a,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y;if((d.REPLACE_KEEPS_$0||"string"==typeof f&&-1===f.indexOf("$0"))&&(g=c(b,a,this,f),g.done))return g.value;for(h=R(a),i=String(this),j="function"==typeof f,j||(f=String(f)),k=h.global,k&&(l=h.unicode,h.lastIndex=0),m=[];(n=Eg(h,i),null!==n)&&(m.push(n),k);)o=String(n[0]),""===o&&(h.lastIndex=Dg(i,Db(h.lastIndex),l));for(p="",q=0,r=0;r=q&&(p+=i.slice(q,t)+y,q=t+s.length)}return p+i.slice(q)}]}),Lg=Object.is||function(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b},Bg("search",1,function(a,b,c){return[function(b){var c=E(this),d=void 0==b?void 0:b[a];return void 0!==d?d.call(b,c):new RegExp(b)[a](String(c))},function(a){var d,e,f,g,h=c(b,a,this);return h.done?h.value:(d=R(a),e=String(this),f=d.lastIndex,Lg(f,0)||(d.lastIndex=0),g=Eg(d,e),Lg(d.lastIndex,f)||(d.lastIndex=f),null===g?-1:g.index)}]}),Mg=Cc("species"),Ng=function(a,b){var c,d=R(a).constructor;return void 0===d||void 0==(c=R(d)[Mg])?b:Kc(c)},Og=[].push,Pg=Math.min,Qg=4294967295,Rg=!s(function(){return!RegExp(Qg,"y")}),Bg("split",2,function(a,b,c){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(a,c){var d,e,f,g,h,i,j,k=String(E(this)),l=void 0===c?Qg:c>>>0;if(0===l)return[];if(void 0===a)return[k];if(!ng(a))return b.call(k,a,l);for(d=[],e=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(a.sticky?"y":""),f=0,g=new RegExp(a.source,e+"g");(h=gg.call(g,k))&&(i=g.lastIndex,!(i>f&&(d.push(k.slice(f,h.index)),h.length>1&&h.index=l)));)g.lastIndex===h.index&&g.lastIndex++; +return f===k.length?(j||!g.test(""))&&d.push(""):d.push(k.slice(f)),d.length>l?d.slice(0,l):d}:"0".split(void 0,0).length?function(a,c){return void 0===a&&0===c?[]:b.call(this,a,c)}:b,[function(b,c){var e=E(this),f=void 0==b?void 0:b[a];return void 0!==f?f.call(b,e,c):d.call(String(e),b,c)},function(a,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s=c(d,a,this,e,d!==b);if(s.done)return s.value;if(f=R(a),g=String(this),h=Ng(f,RegExp),i=f.unicode,j=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(Rg?"y":"g"),k=new h(Rg?f:"^(?:"+f.source+")",j),l=void 0===e?Qg:e>>>0,0===l)return[];if(0===g.length)return null===Eg(k,g)?[g]:[];for(m=0,n=0,o=[];n1?arguments[1]:void 0)}:[].forEach;for(Yg in Vg)if(Zg=r[Yg],$g=Zg&&Zg.prototype,$g&&$g.forEach!==Xg)try{V($g,"forEach",Xg)}catch(Hh){$g.forEach=Xg}_g=Cc("iterator"),ah=Cc("toStringTag"),bh=Ke.values;for(ch in Vg)if(dh=r[ch],eh=dh&&dh.prototype){if(eh[_g]!==bh)try{V(eh,_g,bh)}catch(Hh){eh[_g]=bh}if(eh[ah]||V(eh,ah,ch),Vg[ch])for(fh in Ke)if(eh[fh]!==Ke[fh])try{V(eh,fh,Ke[fh])}catch(Hh){eh[fh]=Ke[fh]}}gh="1.17.1",hh=4;try{ih=a.fn.dropdown.Constructor.VERSION,void 0!==ih&&(hh=parseInt(ih,10))}catch(Ih){}try{jh=bootstrap.Tooltip.VERSION,void 0!==jh&&(hh=parseInt(jh,10))}catch(Ih){}return kh={3:{iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggleOff:"glyphicon-list-alt icon-list-alt",toggleOn:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus",fullscreen:"glyphicon-fullscreen",search:"glyphicon-search",clearSearch:"glyphicon-trash"},classes:{buttonsPrefix:"btn",buttons:"default",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"pull",inputGroup:"input-group",inputPrefix:"input-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'',toolbarDropdownSeparator:'
  • ',pageDropdown:['"],pageDropdownItem:'
    ',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s%s
    ',searchInput:'',searchButton:'',searchClearButton:''}},4:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s
    %s
    ',searchInput:'',searchButton:'',searchClearButton:''}},5:{iconsPrefix:"fa",icons:{paginationSwitchDown:"fa-caret-square-down",paginationSwitchUp:"fa-caret-square-up",refresh:"fa-sync",toggleOff:"fa-toggle-off",toggleOn:"fa-toggle-on",columns:"fa-th-list",detailOpen:"fa-plus",detailClose:"fa-minus",fullscreen:"fa-arrows-alt",search:"fa-search",clearSearch:"fa-trash"},classes:{buttonsPrefix:"btn",buttons:"secondary",buttonsGroup:"btn-group",buttonsDropdown:"btn-group",pull:"float",inputGroup:"btn-group",inputPrefix:"form-control-",input:"form-control",paginationDropdown:"btn-group dropdown",dropup:"dropup",dropdownActive:"active",paginationActive:"active",buttonActive:"active"},html:{toolbarDropdown:['"],toolbarDropdownItem:'',pageDropdown:['"],pageDropdownItem:'%s',toolbarDropdownSeparator:'',dropdownCaret:'',pagination:['
      ',"
    "],paginationItem:'
  • %s
  • ',icon:'',inputGroup:'
    %s
    %s
    ',searchInput:'',searchButton:'',searchClearButton:''}}}[hh],lh={id:void 0,firstLoad:!0,height:void 0,classes:"table table-bordered table-hover",theadClasses:"",headerStyle:function(){return{}},rowStyle:function(){return{}},rowAttributes:function(){return{}},undefinedText:"-",locale:void 0,virtualScroll:!1,virtualScrollItemHeight:void 0,sortable:!0,sortClass:void 0,silentSort:!0,sortName:void 0,sortOrder:void 0,sortReset:!1,sortStable:!1,rememberOrder:!1,serverSort:!0,customSort:void 0,columns:[[]],data:[],url:void 0,method:"get",cache:!0,contentType:"application/json",dataType:"json",ajax:void 0,ajaxOptions:{},queryParams:function(a){return a},queryParamsType:"limit",responseHandler:function(a){return a},totalField:"total",totalNotFilteredField:"totalNotFiltered",dataField:"rows",pagination:!1,paginationParts:["pageInfo","pageSize","pageList"],showExtendedPagination:!1,paginationLoop:!0,sidePagination:"client",totalRows:0,totalNotFiltered:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"‹",paginationNextText:"›",paginationSuccessivelySize:5,paginationPagesBySide:1,paginationUseIntermediate:!1,search:!1,searchOnEnterKey:!1,strictSearch:!1,visibleSearch:!1,showButtonIcons:!0,showButtonText:!1,showSearchButton:!1,showSearchClearButton:!1,trimOnSearch:!0,searchAlign:"right",searchTimeOut:500,searchText:"",customSearch:void 0,showHeader:!0,showFooter:!1,footerStyle:function(){return{}},searchAccentNeutralise:!1,showColumns:!1,showSearch:!1,showPageGo:!1,showColumnsToggleAll:!1,showColumnsSearch:!1,minimumCountColumns:1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,showFullscreen:!1,smartDisplay:!0,escape:!1,filterOptions:{filterAlgorithm:"and"},idField:void 0,selectItemName:"btSelectItem",clickToSelect:!1,ignoreClickToSelectOn:function(a){var b=a.tagName;return["A","BUTTON"].includes(b)},singleSelect:!1,checkboxHeader:!0,maintainMetaData:!1,multipleSelectRow:!1,uniqueId:void 0,cardView:!1,detailView:!1,detailViewIcon:!0,detailViewByClick:!1,detailViewAlign:"left",detailFormatter:function(){return""},detailFilter:function(){return!0},toolbar:void 0,toolbarAlign:"left",buttonsToolbar:void 0,buttonsAlign:"right",buttonsOrder:["search","paginationSwitch","refresh","toggle","fullscreen","columns"],buttonsPrefix:kh.classes.buttonsPrefix,buttonsClass:kh.classes.buttons,icons:kh.icons,iconSize:void 0,iconsPrefix:kh.iconsPrefix,loadingFontSize:"auto",loadingTemplate:function(a){return'\n '.concat(a,'\n \n \n ')},onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onShowSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onPostFooter:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onRefresh:function(){return!1},onResetView:function(){return!1},onScrollBody:function(){return!1}},mh={formatLoadingMessage:function(){return"Loading, please wait"},formatRecordsPerPage:function(a){return"".concat(a," rows per page")},formatShowingRows:function(a,b,c,d){return void 0!==d&&d>0&&d>c?"Showing ".concat(a," to ").concat(b," of ").concat(c," rows (filtered from ").concat(d," total rows)"):"Showing ".concat(a," to ").concat(b," of ").concat(c," rows")},formatSRPaginationPreText:function(){return"previous page"},formatSRPaginationPageText:function(a){return"to page ".concat(a)},formatSRPaginationNextText:function(){return"next page"},formatDetailPagination:function(a){return"Showing ".concat(a," rows")},formatSearch:function(){return"Search"},formatPageGo:function(){return"跳转"},formatClearSearch:function(){return"Clear Search"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatPaginationSwitchDown:function(){return"Show pagination"},formatPaginationSwitchUp:function(){return"Hide pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Columns"},formatColumnsToggleAll:function(){return"Toggle all"},formatFullscreen:function(){return"Fullscreen"},formatAllRows:function(){return"All"}},nh={field:void 0,title:void 0,titleTooltip:void 0,"class":void 0,width:void 0,widthUnit:"px",rowspan:void 0,colspan:void 0,align:void 0,halign:void 0,falign:void 0,valign:void 0,cellStyle:void 0,radio:!1,checkbox:!1,checkboxEnabled:!0,clickToSelect:!0,showSelectTitle:!1,sortable:!1,sortName:void 0,order:"asc",sorter:void 0,visible:!0,ignore:!1,switchable:!0,cardVisible:!0,searchable:!0,formatter:void 0,footerFormatter:void 0,detailFormatter:void 0,searchFormatter:!0,escape:!1,events:void 0},oh=["getOptions","refreshOptions","getData","getSelections","getAllSelections","load","append","prepend","remove","removeAll","insertRow","updateRow","getRowByUniqueId","updateByUniqueId","removeByUniqueId","updateCell","updateCellByUniqueId","showRow","hideRow","getHiddenRows","showColumn","hideColumn","getVisibleColumns","getHiddenColumns","showAllColumns","hideAllColumns","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","destroy","resetView","showLoading","hideLoading","togglePagination","toggleFullscreen","toggleView","resetSearch","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","toggleDetailView","expandRow","collapseRow","expandRowByUniqueId","collapseRowByUniqueId","expandAllRows","collapseAllRows","updateColumnTitle","updateFormatText"],ph={"all.bs.table":"onAll","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","post-footer.bs.table":"onPostFooter","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","refresh.bs.table":"onRefresh","scroll-body.bs.table":"onScrollBody"},Object.assign(lh,mh),qh={VERSION:gh,THEME:"bootstrap".concat(hh),CONSTANTS:kh,DEFAULTS:lh,COLUMN_DEFAULTS:nh,METHODS:oh,EVENTS:ph,LOCALES:{en:mh,"en-US":mh}},rh=s(function(){ec(1)}),_b({target:"Object",stat:!0,forced:rh},{keys:function(a){return ec(dc(a))}}),sh=Q.f,th="".endsWith,uh=Math.min,vh=qg("endsWith"),wh=!vh&&!!function(){var a=sh(String.prototype,"endsWith");return a&&!a.writable}(),_b({target:"String",proto:!0,forced:!wh&&!vh},{endsWith:function(a){var b,c,d,e,f=String(E(this));return og(a),b=arguments.length>1?arguments[1]:void 0,c=Db(f.length),d=void 0===b?c:uh(Db(b),c),e=String(a),th?th.call(f,e,d):f.slice(d-e.length,d)===e}}),xh=Q.f,yh="".startsWith,zh=Math.min,Ah=qg("startsWith"),Bh=!Ah&&!!function(){var a=xh(String.prototype,"startsWith");return a&&!a.writable}(),_b({target:"String",proto:!0,forced:!Bh&&!Ah},{startsWith:function(a){var b,c,d=String(E(this));return og(a),b=Db(zh(arguments.length>1?arguments[1]:void 0,d.length)),c=String(a),yh?yh.call(d,c,b):d.slice(b,b+c.length)===c}}),Ch={sprintf:function(a){var b,c,d,e,f,g;for(b=arguments.length,c=new Array(b>1?b-1:0),d=1;b>d;d++)c[d-1]=arguments[d];return e=!0,f=0,g=a.replace(/%s/g,function(){var a=c[f++];return"undefined"==typeof a?(e=!1,""):a}),e?g:""},isEmptyObject:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.entries(a).length&&a.constructor===Object},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},getFieldTitle:function(a,b){var c,d,e,f=!0,g=!1,h=void 0;try{for(d=a[Symbol.iterator]();!(f=(c=d.next()).done);f=!0)if(e=c.value,e.field===b)return e.title}catch(i){g=!0,h=i}finally{try{f||null==d.return||d.return()}finally{if(g)throw h}}return""},setFieldIndex:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=0,t=[],u=!0,v=!1,w=void 0;try{for(c=a[0][Symbol.iterator]();!(u=(b=c.next()).done);u=!0)d=b.value,s+=d.colspan||1}catch(x){v=!0,w=x}finally{try{u||null==c.return||c.return()}finally{if(v)throw w}}for(e=0;ef;f++)t[e][f]=!1;for(g=0;gq;q++)t[g+q][p]=!0;for(r=0;o>r;r++)t[g][p+r]=!0}}catch(x){i=!0,j=x}finally{try{h||null==l.return||l.return()}finally{if(i)throw j}}}},normalizeAccent:function(a){return a.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},updateFieldGroup:function(a){var b,c,d,e,f,g,h,j,k,l,m,n,o,p=(b=[]).concat.apply(b,i(a)),q=!0,r=!1,s=void 0;try{for(d=a[Symbol.iterator]();!(q=(c=d.next()).done);q=!0){e=c.value,f=!0,g=!1,h=void 0;try{for(k=e[Symbol.iterator]();!(f=(j=k.next()).done);f=!0)if(l=j.value,l.colspanGroup>1){for(m=0,n=function(a){var b=p.find(function(b){return b.fieldIndex===a});b.visible&&m++},o=l.colspanIndex;o0}}catch(t){g=!0,h=t}finally{try{f||null==k.return||k.return()}finally{if(g)throw h}}}}catch(t){r=!0,s=t}finally{try{q||null==d.return||d.return()}finally{if(r)throw s}}},getScrollBarWidth:function(){var b,c,d,e;return void 0===this.cachedWidth&&(b=a("
    ").addClass("fixed-table-scroll-inner"),c=a("
    ").addClass("fixed-table-scroll-outer"),c.append(b),a("body").append(c),d=b[0].offsetWidth,c.css("overflow","scroll"),e=b[0].offsetWidth,d===e&&(e=c[0].clientWidth),c.remove(),this.cachedWidth=d-e),this.cachedWidth},calculateObjectValue:function(a,b,c,e){var f,g,h,j,k,l,m,n=b;if("string"==typeof b)if(f=b.split("."),f.length>1){n=window,g=!0,h=!1,j=void 0;try{for(l=f[Symbol.iterator]();!(g=(k=l.next()).done);g=!0)m=k.value,n=n[m]}catch(o){h=!0,j=o}finally{try{g||null==l.return||l.return()}finally{if(h)throw j}}}else n=window[b];return null!==n&&"object"===d(n)?n:"function"==typeof n?n.apply(a,c||[]):!n&&"string"==typeof b&&this.sprintf.apply(this,[b].concat(i(c)))?this.sprintf.apply(this,[b].concat(i(c))):e},compareObjects:function(a,b,c){var d,e,f,g=Object.keys(a),h=Object.keys(b);if(c&&g.length!==h.length)return!1;for(d=0,e=g;d/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`"):a},unescapeHTML:function(a){return"string"==typeof a?a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/`/g,"`"):a},getRealDataAttr:function(a){var b,c,d,e,f,g;for(b=0,c=Object.entries(a);btd,>th").each(function(e,g){for(var i,j,k,l=+a(g).attr("colspan")||1,m=+a(g).attr("rowspan")||1,n=e;f[c]&&f[c][n];n++);for(i=n;n+l>i;i++)for(j=c;c+m>j;j++)f[j]||(f[j]=[]),f[j][i]=!0;k=b[n].field,h[k]=a(g).html().trim(),h["_".concat(k,"_id")]=a(g).attr("id"),h["_".concat(k,"_class")]=a(g).attr("class"),h["_".concat(k,"_rowspan")]=a(g).attr("rowspan"),h["_".concat(k,"_colspan")]=a(g).attr("colspan"),h["_".concat(k,"_title")]=a(g).attr("title"),h["_".concat(k,"_data")]=d.getRealDataAttr(a(g).data())}),e.push(h)}),e},sort:function(a,b,c,d,e,f){return(void 0===a||null===a)&&(a=""),(void 0===b||null===b)&&(b=""),d&&a===b&&(a=e,b=f),this.isNumeric(a)&&this.isNumeric(b)?(a=parseFloat(a),b=parseFloat(b),b>a?-1*c:a>b?c:0):a===b?0:("string"!=typeof a&&(a=a.toString()),-1===a.localeCompare(b)?-1*c:c)},getResizeEventName:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a=a||"".concat(+new Date).concat(~~(1e6*Math.random())),"resize.bootstrap-table-".concat(a)},hasDetailViewIcon:function(a){return a.detailView&&a.detailViewIcon&&!a.cardView},checkAutoMergeCells:function(a){var b,c,d,e,f,g,h=!0,i=!1,j=void 0;try{for(c=a[Symbol.iterator]();!(h=(b=c.next()).done);h=!0)for(d=b.value,e=0,f=Object.keys(d);ee&&h++,i=c;d>i;i++)a[i]&&g.push(a[i]);return{topOffset:e,bottomOffset:f,rowsAbove:h,rows:g}}},{key:"checkChanges",value:function(a,b){var c=b!==this.cache[a];return this.cache[a]=b,c}},{key:"getExtra",value:function(a,b){var c=document.createElement("tr");return c.className="virtual-scroll-".concat(a),b&&(c.style.height="".concat(b,"px")),c.outerHTML}}]),a}(),Gh=function(){function b(c,d){e(this,b),this.options=d,this.$el=a(c),this.$el_=this.$el.clone(),this.timeoutId_=0,this.timeoutFooter_=0,this.init()}return g(b,[{key:"init",value:function(){this.initConstants(),this.initLocale(),this.initContainer(),this.initTable(),this.initHeader(),this.initData(),this.initHiddenRows(),this.initToolbar(),this.initPagination(),this.initBody(),this.initSearchText(),this.initServer()}},{key:"initConstants",value:function(){var b,c=this.options;this.constants=qh.CONSTANTS,this.constants.theme=a.fn.bootstrapTable.theme,b=c.buttonsPrefix?"".concat(c.buttonsPrefix,"-"):"",this.constants.buttonsClass=[c.buttonsPrefix,b+c.buttonsClass,Ch.sprintf("".concat(b,"%s"),c.iconSize)].join(" ").trim()}},{key:"initLocale",value:function(){var b,c;this.options.locale&&(b=a.fn.bootstrapTable.locales,c=this.options.locale.split(/-|_/),c[0]=c[0].toLowerCase(),c[1]&&(c[1]=c[1].toUpperCase()),b[this.options.locale]?a.extend(this.options,b[this.options.locale]):b[c.join("-")]?a.extend(this.options,b[c.join("-")]):b[c[0]]&&a.extend(this.options,b[c[0]]))}},{key:"initContainer",value:function(){var b=["top","both"].includes(this.options.paginationVAlign)?'
    ':"",c=["bottom","both"].includes(this.options.paginationVAlign)?'
    ':"",d=Ch.calculateObjectValue(this.options,this.options.loadingTemplate,[this.options.formatLoadingMessage()]);this.$container=a('\n
    \n
    \n ').concat(b,'\n
    \n
    \n
    \n
    \n ').concat(d,'\n
    \n
    \n \n
    \n ').concat(c,"\n
    \n ")),this.$container.insertAfter(this.$el),this.$tableContainer=this.$container.find(".fixed-table-container"),this.$tableHeader=this.$container.find(".fixed-table-header"),this.$tableBody=this.$container.find(".fixed-table-body"),this.$tableLoading=this.$container.find(".fixed-table-loading"),this.$tableFooter=this.$el.find("tfoot"),this.$toolbar=this.options.buttonsToolbar?a("body").find(this.options.buttonsToolbar):this.$container.find(".fixed-table-toolbar"),this.$pagination=this.$container.find(".fixed-table-pagination"),this.$tableBody.append(this.$el),this.$container.after('
    '),this.$el.addClass(this.options.classes),this.$tableLoading.addClass(this.options.classes),this.options.height&&(this.$tableContainer.addClass("fixed-height"),this.options.showFooter&&this.$tableContainer.addClass("has-footer"),this.options.classes.split(" ").includes("table-bordered")&&(this.$tableBody.append('
    '),this.$tableBorder=this.$tableBody.find(".fixed-table-border"),this.$tableLoading.addClass("fixed-table-border")),this.$tableFooter=this.$container.find(".fixed-table-footer"))}},{key:"initTable",value:function(){var c,d=this,e=[];this.$header=this.$el.find(">thead"),this.$header.length?this.options.theadClasses&&this.$header.addClass(this.options.theadClasses):this.$header=a('')).appendTo(this.$el),this._headerTrClasses=[],this.$header.find("tr").each(function(b,c){var f=a(c),g=[];f.find("th").each(function(b,c){var d=a(c);"undefined"!=typeof d.data("field")&&d.data("field","".concat(d.data("field"))),g.push(a.extend({},{title:d.html(),"class":d.attr("class"),titleTooltip:d.attr("title"),rowspan:d.attr("rowspan")?+d.attr("rowspan"):void 0,colspan:d.attr("colspan")?+d.attr("colspan"):void 0},d.data()))}),e.push(g),f.attr("class")&&d._headerTrClasses.push(f.attr("class"))}),Array.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=a.extend(!0,[],e,this.options.columns),this.columns=[],this.fieldsColumnsIndex=[],Ch.setFieldIndex(this.options.columns),this.options.columns.forEach(function(c,e){c.forEach(function(c,f){var g=a.extend({},b.COLUMN_DEFAULTS,c);"undefined"!=typeof g.fieldIndex&&(d.columns[g.fieldIndex]=g,d.fieldsColumnsIndex[g.field]=g.fieldIndex),d.options.columns[e][f]=g})}),this.options.data.length||(c=Ch.trToData(this.columns,this.$el.find(">tbody>tr")),c.length&&(this.options.data=c,this.fromHtml=!0)),this.footerData=Ch.trToData(this.columns,this.$el.find(">tfoot>tr")),this.footerData&&this.$el.find("tfoot").html(""),!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()}},{key:"initHeader",value:function(){var b,c=this,d={},e=[];this.header={fields:[],styles:[],classes:[],formatters:[],detailFormatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]},Ch.updateFieldGroup(this.options.columns),this.options.columns.forEach(function(a,b){e.push(""));var f="";0===b&&Ch.hasDetailViewIcon(c.options)&&(f='\n
    \n ')),f&&"right"!==c.options.detailViewAlign&&e.push(f),a.forEach(function(a,f){var g,i,j,k,l,m,n,o,p,q,r=Ch.sprintf(' class="%s"',a["class"]),s=a.widthUnit,t=parseFloat(a.width),u=Ch.sprintf("text-align: %s; ",a.halign?a.halign:a.align),v=Ch.sprintf("text-align: %s; ",a.align),w=Ch.sprintf("vertical-align: %s; ",a.valign);if(w+=Ch.sprintf("width: %s; ",!a.checkbox&&!a.radio||t?t?t+s:void 0:a.showSelectTitle?void 0:"36px"),"undefined"!=typeof a.fieldIndex||a.visible){if(g=Ch.calculateObjectValue(null,c.options.headerStyle,[a]),i=[],j="",g&&g.css)for(k=0,l=Object.entries(g.css);k0?" data-not-first-th":"",">"),e.push(Ch.sprintf('
    ',c.options.sortable&&a.sortable?"sortable both":"")),p=c.options.escape?Ch.escapeHTML(a.title):a.title,q=p,a.checkbox&&(p="",!c.options.singleSelect&&c.options.checkboxHeader&&(p=''),c.header.stateField=a.field),a.radio&&(p="",c.header.stateField=a.field),!p&&a.showSelectTitle&&(p+=q),e.push(p),e.push("
    "),e.push('
    '),e.push("
    "),e.push("")}}),f&&"right"===c.options.detailViewAlign&&e.push(f),e.push("")}),this.$header.html(e.join("")),this.$header.find("th[data-field]").each(function(b,c){a(c).data(d[a(c).data("field")])}),this.$container.off("click",".th-inner").on("click",".th-inner",function(b){var d=a(b.currentTarget);return c.options.detailView&&!d.parent().hasClass("bs-checkbox")&&d.closest(".bootstrap-table")[0]!==c.$container[0]?!1:(c.options.sortable&&d.parent().data().sortable&&c.onSort(b),void 0)}),this.$header.children().children().off("keypress").on("keypress",function(b){if(c.options.sortable&&a(b.currentTarget).data().sortable){var d=b.keyCode||b.which;13===d&&c.onSort(b)}}),b=Ch.getResizeEventName(this.$el.attr("id")),a(window).off(b),!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret(),a(window).on(b,function(){return c.resetView() +})),this.$selectAll=this.$header.find('[name="btSelectAll"]'),this.$selectAll.off("click").on("click",function(b){b.stopPropagation();var d=a(b.currentTarget).prop("checked");c[d?"checkAll":"uncheckAll"](),c.updateSelected()})}},{key:"initData",value:function(a,b){"append"===b?this.options.data=this.options.data.concat(a):"prepend"===b?this.options.data=[].concat(a).concat(this.options.data):(a=a||this.options.data,this.options.data=Array.isArray(a)?a:a[this.options.dataField]),this.data=i(this.options.data),this.options.sortReset&&(this.unsortedData=i(this.data)),"server"!==this.options.sidePagination&&this.initSort()}},{key:"initSort",value:function(){var a=this,b=this.options.sortName,c="desc"===this.options.sortOrder?-1:1,d=this.header.fields.indexOf(this.options.sortName),e=0;-1!==d?(this.options.sortStable&&this.data.forEach(function(a,b){a.hasOwnProperty("_position")||(a._position=b)}),this.options.customSort?Ch.calculateObjectValue(this.options,this.options.customSort,[this.options.sortName,this.options.sortOrder,this.data]):this.data.sort(function(e,f){var g,h,i;return a.header.sortNames[d]&&(b=a.header.sortNames[d]),g=Ch.getItemField(e,b,a.options.escape),h=Ch.getItemField(f,b,a.options.escape),i=Ch.calculateObjectValue(a.header,a.header.sorters[d],[g,h,e,f]),void 0!==i?a.options.sortStable&&0===i?c*(e._position-f._position):c*i:Ch.sort(g,h,c,a.options.sortStable,e._position,f._position)}),void 0!==this.options.sortClass&&(clearTimeout(e),e=setTimeout(function(){a.$el.removeClass(a.options.sortClass);var b=a.$header.find('[data-field="'.concat(a.options.sortName,'"]')).index();a.$el.find("tr td:nth-child(".concat(b+1,")")).addClass(a.options.sortClass)},250))):this.options.sortReset&&(this.data=i(this.unsortedData))}},{key:"onSort",value:function(b){var c,d=b.type,e=b.currentTarget,f="keypress"===d?a(e):a(e).parent(),g=this.$header.find("th").eq(f.index());return this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===f.data("field")?(c=this.options.sortOrder,void 0===c?this.options.sortOrder="asc":"asc"===c?this.options.sortOrder="desc":"desc"===this.options.sortOrder&&(this.options.sortOrder=this.options.sortReset?void 0:"asc"),void 0===this.options.sortOrder&&(this.options.sortName=void 0)):(this.options.sortName=f.data("field"),this.options.sortOrder=this.options.rememberOrder?"asc"===f.data("order")?"desc":"asc":this.columns[this.fieldsColumnsIndex[f.data("field")]].sortOrder||this.columns[this.fieldsColumnsIndex[f.data("field")]].order),this.trigger("sort",this.options.sortName,this.options.sortOrder),f.add(g).data("order",this.options.sortOrder),this.getCaret(),"server"===this.options.sidePagination&&this.options.serverSort?(this.options.pageNumber=1,this.initServer(this.options.silentSort),void 0):(this.initSort(),this.initBody(),void 0)}},{key:"initToolbar",value:function(){var b,c,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=this,w=this.options,x=[],y=0,z=0;this.$toolbar.find(".bs-bars").children().length&&a("body").append(a(w.toolbar)),this.$toolbar.html(""),("string"==typeof w.toolbar||"object"===d(w.toolbar))&&a(Ch.sprintf('
    ',this.constants.classes.pull,w.toolbarAlign)).appendTo(this.$toolbar).append(a(w.toolbar)),x=['
    ')],"string"==typeof w.icons&&(w.icons=Ch.calculateObjectValue(null,w.icons)),c={search:'"),paginationSwitch:'"),refresh:'"),toggle:'"),fullscreen:'"),columns:function(){var a,b,c=[];return c.push('
    \n \n ").concat(v.constants.html.toolbarDropdown[0])),w.showColumnsSearch&&(c.push(Ch.sprintf(v.constants.html.toolbarDropdownItem,Ch.sprintf('',v.constants.classes.input,w.formatSearch()))),c.push(v.constants.html.toolbarDropdownSeparator)),w.showColumnsToggleAll&&(a=v.getVisibleColumns().length===v.columns.filter(function(a){return!v.isSelectionColumn(a)}).length,c.push(Ch.sprintf(v.constants.html.toolbarDropdownItem,Ch.sprintf(' %s',a?'checked="checked"':"",w.formatColumnsToggleAll()))),c.push(v.constants.html.toolbarDropdownSeparator)),b=0,v.columns.forEach(function(a){a.visible&&b++}),v.columns.forEach(function(a,d){var e,f;v.isSelectionColumn(a)||(!w.cardView||a.cardVisible)&&(a.ignore||(e=a.visible?' checked="checked"':"",f=b<=v.options.minimumCountColumns&&e?' disabled="disabled"':"",a.switchable&&(c.push(Ch.sprintf(v.constants.html.toolbarDropdownItem,Ch.sprintf(' %s',a.field,d,e,f,a.title))),z++)))}),c.push(v.constants.html.toolbarDropdown[1],"
    "),c.join("")}()},"string"==typeof w.buttonsOrder&&(w.buttonsOrder=w.buttonsOrder.replace(/\[|\]| |'/g,"").toLowerCase().split(",")),e=!0,f=!1,g=void 0;try{for(i=w.buttonsOrder[Symbol.iterator]();!(e=(h=i.next()).done);e=!0)j=h.value,w["show"+j.charAt(0).toUpperCase()+j.substring(1)]&&x.push(c[j])}catch(A){f=!0,g=A}finally{try{e||null==i.return||i.return()}finally{if(f)throw g}}x.push("
    "),(this.showToolbar||x.length>2)&&this.$toolbar.append(x.join("")),w.showSearch&&this.$toolbar.find('button[name="showSearch"]').off("click").on("click",function(){return v.toggleShowSearch()}),w.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",function(){return v.togglePagination()}),w.showFullscreen&&this.$toolbar.find('button[name="fullscreen"]').off("click").on("click",function(){return v.toggleFullscreen()}),w.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",function(){return v.refresh()}),w.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){v.toggleView()}),w.showColumns&&(b=this.$toolbar.find(".keep-open"),k=b.find('input[type="checkbox"]:not(".toggle-all")'),l=b.find('input[type="checkbox"].toggle-all'),z<=w.minimumCountColumns&&b.find("input").prop("disabled",!0),b.find("li, label").off("click").on("click",function(a){a.stopImmediatePropagation()}),k.off("click").on("click",function(b){var c=b.currentTarget,d=a(c);v._toggleColumn(d.val(),d.prop("checked"),!1),v.trigger("column-switch",d.data("field"),d.prop("checked")),l.prop("checked",k.filter(":checked").length===v.columns.filter(function(a){return!v.isSelectionColumn(a)}).length)}),l.off("click").on("click",function(b){var c=b.currentTarget;v._toggleAllColumns(a(c).prop("checked"))}),w.showColumnsSearch&&(m=b.find('[name="columnsSearch"]'),n=b.find(".dropdown-item-marker"),m.on("keyup paste change",function(b){var c=b.currentTarget,d=a(c),e=d.val().toLowerCase();n.show(),k.each(function(b,c){var d=a(c),f=d.parents(".dropdown-item-marker"),g=f.text().toLowerCase();g.includes(e)||f.hide()})}))),(w.search||this.showSearchClearButton)&&(x=[],o=Ch.sprintf(this.constants.html.searchButton,this.constants.buttonsClass,w.formatSearch(),w.showButtonIcons?Ch.sprintf(this.constants.html.icon,w.iconsPrefix,w.icons.search):"",w.showButtonText?w.formatSearch():""),p=Ch.sprintf(this.constants.html.searchClearButton,this.constants.buttonsClass,w.formatClearSearch(),w.showButtonIcons?Ch.sprintf(this.constants.html.icon,w.iconsPrefix,w.icons.clearSearch):"",w.showButtonText?w.formatClearSearch():""),q=''),r=q,(w.showSearchButton||w.showSearchClearButton)&&(s=(w.showSearchButton?o:"")+(w.showSearchClearButton?p:""),r=w.search?Ch.sprintf(this.constants.html.inputGroup,q,s):s),x.push(Ch.sprintf('\n
    \n %s\n
    \n '),r)),this.$toolbar.append(x.join("")),t=this.$toolbar.find(".search input"),u=function(){var a="keyup drop blur ".concat(Ch.isIEBrowser()?"mouseup":"");t.off(a).on(a,function(a){w.searchOnEnterKey&&13!==a.keyCode||[37,38,39,40].includes(a.keyCode)||(clearTimeout(y),y=setTimeout(function(){v.onSearch({currentTarget:a.currentTarget})},w.searchTimeOut))})},w.showSearchButton?(this.$toolbar.find(".search button[name=search]").off("click").on("click",function(){clearTimeout(y),y=setTimeout(function(){v.onSearch({currentTarget:t})},w.searchTimeOut)}),w.searchOnEnterKey&&u()):u(),w.showSearchClearButton&&this.$toolbar.find(".search button[name=clearSearch]").click(function(){v.resetSearch()}))}},{key:"onSearch",value:function(){var b,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=c.currentTarget,e=c.firedByInitSearchText,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0;if(void 0!==d&&a(d).length&&f){if(b=a(d).val().trim(),this.options.trimOnSearch&&a(d).val()!==b&&a(d).val(b),this.searchText===b&&b.length>0)return;a(d).hasClass("search-input")&&(this.searchText=b,this.options.searchText=b)}e||(this.options.pageNumber=1),this.initSearch(),e?"client"===this.options.sidePagination&&this.updatePagination():this.updatePagination(),this.trigger("search",this.searchText)}},{key:"initSearch",value:function(){var a,b,c,d=this;if(this.filterOptions=this.filterOptions||this.options.filterOptions,"server"!==this.options.sidePagination){if(this.options.customSearch)return this.data=Ch.calculateObjectValue(this.options,this.options.customSearch,[this.options.data,this.searchText,this.filterColumns]),void 0;a=this.searchText&&(this.fromHtml?Ch.escapeHTML(this.searchText):this.searchText).toLowerCase(),b=Ch.isEmptyObject(this.filterColumns)?null:this.filterColumns,"function"==typeof this.filterOptions.filterAlgorithm?this.data=this.options.data.filter(function(a){return d.filterOptions.filterAlgorithm.apply(null,[a,b])}):"string"==typeof this.filterOptions.filterAlgorithm&&(this.data=b?this.options.data.filter(function(a){var c,e,f,g=d.filterOptions.filterAlgorithm;if("and"===g){for(c in b)if(Array.isArray(b[c])&&!b[c].includes(a[c])||!Array.isArray(b[c])&&a[c]!==b[c])return!1}else if("or"===g){e=!1;for(f in b)(Array.isArray(b[f])&&b[f].includes(a[f])||!Array.isArray(b[f])&&a[f]===b[f])&&(e=!0);return e}return!0}):i(this.options.data)),c=this.getVisibleFields(),this.data=a?this.data.filter(function(b,e){var f,g,h,i,j,k,l,m,n,o,p,q,r;for(f=0;f|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm,m=l.exec(a),n=!1,m)switch(o=m[1]||"".concat(m[5],"l"),p=m[2]||m[3],q=parseInt(i,10),r=parseInt(p,10),o){case">":case"r;break;case"<":case">l":n=r>q;break;case"<=":case"=<":case">=l":case"=>l":n=r>=q;break;case">=":case"=>":case"<=l":case"==r}if(n||"".concat(i).toLowerCase().includes(a))return!0}}return!1}):this.data,this.options.sortReset&&(this.unsortedData=i(this.data)),this.initSort()}}},{key:"initPagination",value:function(){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=this,x=this.options;if(!x.pagination)return this.$pagination.hide(),void 0;if(this.$pagination.show(),b=[],c=!1,k=this.getData({includeHiddenRows:!1}),l=x.pageList,"string"==typeof l&&(l=l.replace(/\[|\]| /g,"").toLowerCase().split(",")),l=l.map(function(a){return"string"==typeof a?a.toLowerCase()===x.formatAllRows().toLowerCase()||["all","unlimited"].includes(a.toLowerCase())?x.formatAllRows():+a:a}),this.paginationParts=x.paginationParts,"string"==typeof this.paginationParts&&(this.paginationParts=this.paginationParts.replace(/\[|\]| |'/g,"").split(",")),"server"!==x.sidePagination&&(x.totalRows=k.length),this.totalPages=0,x.totalRows&&(x.pageSize===x.formatAllRows()&&(x.pageSize=x.totalRows,c=!0),this.totalPages=~~((x.totalRows-1)/x.pageSize)+1,x.totalPages=this.totalPages),this.totalPages>0&&x.pageNumber>this.totalPages&&(x.pageNumber=this.totalPages),this.pageFrom=(x.pageNumber-1)*x.pageSize+1,this.pageTo=x.pageNumber*x.pageSize,this.pageTo>x.totalRows&&(this.pageTo=x.totalRows),this.options.pagination&&"server"!==this.options.sidePagination&&(this.options.totalNotFiltered=this.options.data.length),this.options.showExtendedPagination||(this.options.totalNotFiltered=void 0),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&b.push('
    ')),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort"))&&(m=this.paginationParts.includes("pageInfoShort")?x.formatDetailPagination(x.totalRows):x.formatShowingRows(this.pageFrom,this.pageTo,x.totalRows,x.totalNotFiltered),b.push('\n '.concat(m,"\n "))),this.paginationParts.includes("pageSize")&&(b.push(''),n=['\n \n ").concat(this.constants.html.pageDropdown[0])],l.forEach(function(a,b){if(!x.smartDisplay||0===b||l[b-1]")),b.push(x.formatRecordsPerPage(n.join("")))),(this.paginationParts.includes("pageInfo")||this.paginationParts.includes("pageInfoShort")||this.paginationParts.includes("pageSize"))&&b.push("
    "),this.paginationParts.includes("pageList")){if(b.push('
    '),Ch.sprintf(this.constants.html.pagination[0],Ch.sprintf(" pagination-%s",x.iconSize)),Ch.sprintf(this.constants.html.paginationItem," page-pre",x.formatSRPaginationPreText(),x.paginationPreText)),this.totalPagesthis.totalPages-e&&(e=e-(x.paginationSuccessivelySize-(this.totalPages-e))+1),1>e&&(e=1),f>this.totalPages&&(f=this.totalPages),o=Math.round(x.paginationPagesBySide/2),p=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Ch.sprintf(w.constants.html.paginationItem,b+(a===x.pageNumber?" ".concat(w.constants.classes.paginationActive):""),x.formatSRPaginationPageText(a),a)},e>1){for(q=x.paginationPagesBySide,q>=e&&(q=e-1),d=1;q>=d;d++)b.push(p(d));e-1===q+1?(d=e-1,b.push(p(d))):e-1>q&&(e-2*x.paginationPagesBySide>x.paginationPagesBySide&&x.paginationUseIntermediate?(d=Math.round((e-o)/2+o),b.push(p(d," page-intermediate"))):b.push(Ch.sprintf(this.constants.html.paginationItem," page-first-separator disabled","","...")))}for(d=e;f>=d;d++)b.push(p(d));if(this.totalPages>f)for(r=this.totalPages-(x.paginationPagesBySide-1),f>=r&&(r=f+1),f+1===r-1?(d=f+1,b.push(p(d))):r>f+1&&(this.totalPages-f>2*x.paginationPagesBySide&&x.paginationUseIntermediate?(d=Math.round((this.totalPages-o-f)/2+f),b.push(p(d," page-intermediate"))):b.push(Ch.sprintf(this.constants.html.paginationItem," page-last-separator disabled","","..."))),d=r;d<=this.totalPages;d++)b.push(p(d));b.push(Ch.sprintf(this.constants.html.paginationItem," page-next",x.formatSRPaginationNextText(),x.paginationNextText)),b.push(this.constants.html.pagination[1],"
    ")}this.$pagination.html(b.join("")),s=["bottom","both"].includes(x.paginationVAlign)?" ".concat(this.constants.classes.dropup):"",this.$pagination.last().find(".page-list > span").addClass(s),x.onlyInfoPagination||(g=this.$pagination.find(".page-list a"),h=this.$pagination.find(".page-pre"),i=this.$pagination.find(".page-next"),j=this.$pagination.find(".page-item").not(".page-next, .page-pre, .page-last-separator, .page-first-separator"),this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),x.smartDisplay&&(l.length<2||x.totalRows<=l[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"](),x.paginationLoop||(1===x.pageNumber&&h.addClass("disabled"),x.pageNumber===this.totalPages&&i.addClass("disabled")),c&&(x.pageSize=x.formatAllRows()),g.off("click").on("click",function(a){return w.onPageListChange(a)}),h.off("click").on("click",function(a){return w.onPagePre(a)}),i.off("click").on("click",function(a){return w.onPageNext(a)}),j.off("click").on("click",function(a){return w.onPageNumber(a)})),this.options.showPageGo&&(t=this,u=this.$pagination.find("ul.pagination"),v=u.find("li.pageGo"),v.length||(v=a(['
  • ',Ch.sprintf('',this.options.pageNumber),'","
  • "].join("")).appendTo(u),v.find("button").click(function(){var a=parseInt(v.find("input").val())||1;(1>a||a>t.options.totalPages)&&(a=1),t.selectPage(a)})))}},{key:"updatePagination",value:function(b){b&&a(b.currentTarget).hasClass("disabled")||(this.options.maintainMetaData||this.resetRows(),this.initPagination(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize),"server"===this.options.sidePagination?this.initServer():this.initBody())}},{key:"onPageListChange",value:function(b){b.preventDefault();var c=a(b.currentTarget);return c.parent().addClass(this.constants.classes.dropdownActive).siblings().removeClass(this.constants.classes.dropdownActive),this.options.pageSize=c.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+c.text(),this.$toolbar.find(".page-size").text(this.options.pageSize),this.updatePagination(b),!1}},{key:"onPagePre",value:function(a){return a.preventDefault(),0===this.options.pageNumber-1?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--,this.updatePagination(a),!1}},{key:"onPageNext",value:function(a){return a.preventDefault(),this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++,this.updatePagination(a),!1}},{key:"onPageNumber",value:function(b){return b.preventDefault(),this.options.pageNumber!==+a(b.currentTarget).text()?(this.options.pageNumber=+a(b.currentTarget).text(),this.updatePagination(b),!1):void 0}},{key:"initRow",value:function(a,b){var c,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,u=this,v=[],w={},x=[],y="",z={},A=[];if(!(Ch.findIndex(this.hiddenRows,a)>-1)){if(w=Ch.calculateObjectValue(this.options,this.options.rowStyle,[a,b],w),w&&w.css)for(c=0,e=Object.entries(w.css);c"),this.options.cardView&&v.push('
    ')),t="",Ch.hasDetailViewIcon(this.options)&&(t="",Ch.calculateObjectValue(null,this.options.detailFilter,[b,a])&&(t+='\n \n '.concat(Ch.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen),"\n \n ")),t+=""),t&&"right"!==this.options.detailViewAlign&&v.push(t),this.header.fields.forEach(function(c,d){var e,f,g,i,j,k,l,m,n,o,p,q,r,s,t,w="",y=Ch.getItemField(a,c,u.options.escape),z="",A="",B={},C="",D=u.header.classes[d],E="",F="",G="",H="",I="",J=u.columns[d];if((!u.fromHtml&&!u.autoMergeCells||"undefined"!=typeof y||J.checkbox||J.radio)&&J.visible&&(!u.options.cardView||J.cardVisible)){if(J.escape&&(y=Ch.escapeHTML(y)),x.concat([u.header.styles[d]]).length&&(E=' style="'.concat(x.concat([u.header.styles[d]]).join("; "),'"')),a["_".concat(c,"_id")]&&(C=Ch.sprintf(' id="%s"',a["_".concat(c,"_id")])),a["_".concat(c,"_class")]&&(D=Ch.sprintf(' class="%s"',a["_".concat(c,"_class")])),a["_".concat(c,"_rowspan")]&&(G=Ch.sprintf(' rowspan="%s"',a["_".concat(c,"_rowspan")])),a["_".concat(c,"_colspan")]&&(H=Ch.sprintf(' colspan="%s"',a["_".concat(c,"_colspan")])),a["_".concat(c,"_title")]&&(I=Ch.sprintf(' title="%s"',a["_".concat(c,"_title")])),B=Ch.calculateObjectValue(u.header,u.header.cellStyles[d],[y,a,b,c],B),B.classes&&(D=' class="'.concat(B.classes,'"')),B.css){for(e=[],f=0,g=Object.entries(B.css);f'):'"),'"),u.header.formatters[d]&&"string"==typeof z?z:"",u.options.cardView?"
    ":""].join(""),a[u.header.stateField]=z===!0||!!y||z&&z.checked):(z="undefined"==typeof z||null===z?u.options.undefinedText:z,u.options.cardView?(t=u.options.showHeader?'").concat(Ch.getFieldTitle(u.columns,c),""):"",w='
    '.concat(t,'').concat(z,"
    "),u.options.smartDisplay&&""===z&&(w='
    ')):w="").concat(z,"")),v.push(w)}}),t&&"right"===this.options.detailViewAlign&&v.push(t),this.options.cardView&&v.push("
    "),v.push(""),v.join("")}}},{key:"initBody",value:function(b){var c,d,e,f,g,h,i=this,j=this.getData();for(this.trigger("pre-body",j),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=a("").appendTo(this.$el)),this.options.pagination&&"server"!==this.options.sidePagination||(this.pageFrom=1,this.pageTo=j.length),c=[],d=a(document.createDocumentFragment()),e=!1,this.autoMergeCells=Ch.checkAutoMergeCells(j.slice(this.pageFrom-1,this.pageTo)),f=this.pageFrom-1;f'.concat(Ch.sprintf('%s',this.getVisibleFields().length,this.options.formatNoMatches()),"")),b||this.scrollTo(0),this.initBodyEvent(),this.updateSelected(),this.initFooter(),this.resetView(),"server"!==this.options.sidePagination&&(this.options.totalRows=j.length),this.trigger("post-body",j)}},{key:"initBodyEvent",value:function(){var b=this;this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(c){var d,e=a(c.currentTarget),f=e.parent(),g=a(c.target).parents(".card-views").children(),h=a(c.target).parents(".card-view"),i=f.data("index"),j=b.data[i],k=b.options.cardView?g.index(h):e[0].cellIndex,l=b.getVisibleFields(),m=l[Ch.hasDetailViewIcon(b.options)&&"right"!==b.options.detailViewAlign?k-1:k],n=b.columns[b.fieldsColumnsIndex[m]],o=Ch.getItemField(j,m,b.options.escape);e.find(".detail-icon").length||(b.trigger("click"===c.type?"click-cell":"dbl-click-cell",m,o,j,e),b.trigger("click"===c.type?"click-row":"dbl-click-row",j,f,m),"click"===c.type&&b.options.clickToSelect&&n.clickToSelect&&!Ch.calculateObjectValue(b.options,b.options.ignoreClickToSelectOn,[c.target])&&(d=f.find(Ch.sprintf('[name="%s"]',b.options.selectItemName)),d.length&&d[0].click()),"click"===c.type&&b.options.detailViewByClick&&b.toggleDetailView(i,b.header.detailFormatters[b.fieldsColumnsIndex[m]]))}).off("mousedown").on("mousedown",function(a){b.multipleSelectRowCtrlKey=a.ctrlKey||a.metaKey,b.multipleSelectRowShiftKey=a.shiftKey}),this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(c){return c.preventDefault(),b.toggleDetailView(a(c.currentTarget).parent().parent().data("index")),!1}),this.$selectItem=this.$body.find(Ch.sprintf('[name="%s"]',this.options.selectItemName)),this.$selectItem.off("click").on("click",function(c){c.stopImmediatePropagation();var d=a(c.currentTarget);b._toggleCheck(d.prop("checked"),d.data("index"))}),this.header.events.forEach(function(c,d){var e,f,g,h,i,j=c;if(j&&("string"==typeof j&&(j=Ch.calculateObjectValue(null,j)),e=b.header.fields[d],f=b.getVisibleFields().indexOf(e),-1!==f)){Ch.hasDetailViewIcon(b.options)&&"right"!==b.options.detailViewAlign&&(f+=1),g=function(c){if(!j.hasOwnProperty(c))return"continue";var d=j[c];b.$body.find(">tr:not(.no-records-found)").each(function(g,h){var i=a(h),j=i.find(b.options.cardView?".card-views>.card-view":">td").eq(f),k=c.indexOf(" "),l=c.substring(0,k),m=c.substring(k+1);j.find(m).off(l).on(l,function(a){var c=i.data("index"),f=b.data[c],g=f[e];d.apply(b,[a,g,f,c])})})};for(h in j)i=g(h)}})}},{key:"initServer",value:function(b,c,d){var e,f,g,h,i,j,k,l=this,m={},n=this.header.fields.indexOf(this.options.sortName),o={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder};if(this.header.sortNames[n]&&(o.sortName=this.header.sortNames[n]),this.options.pagination&&"server"===this.options.sidePagination&&(o.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,o.pageNumber=this.options.pageNumber),!this.options.firstLoad&&!firstLoadTable.includes(this.options.id))return firstLoadTable.push(this.options.id),void 0;if(d||this.options.url||this.options.ajax){if("limit"===this.options.queryParamsType&&(o={search:o.searchText,sort:o.sortName,order:o.sortOrder},this.options.pagination&&"server"===this.options.sidePagination&&(o.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),o.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,0===o.limit&&delete o.limit)),this.options.search&&"server"===this.options.sidePagination&&this.columns.filter(function(a){return!a.searchable}).length){o.searchable=[],e=!0,f=!1,g=void 0;try{for(i=this.columns[Symbol.iterator]();!(e=(h=i.next()).done);e=!0)j=h.value,!j.checkbox&&j.searchable&&(this.options.visibleSearch&&j.visible||!this.options.visibleSearch)&&o.searchable.push(j.field)}catch(p){f=!0,g=p}finally{try{e||null==i.return||i.return()}finally{if(f)throw g}}}if(Ch.isEmptyObject(this.filterColumnsPartial)||(o.filter=JSON.stringify(this.filterColumnsPartial,null)),a.extend(o,c||{}),m=Ch.calculateObjectValue(this.options,this.options.queryParams,[o],m),m!==!1)return b||this.showLoading(),k=a.extend({},Ch.calculateObjectValue(null,this.options.ajaxOptions),{type:this.options.method,url:d||this.options.url,data:"application/json"===this.options.contentType&&"post"===this.options.method?JSON.stringify(m):m,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(a,c,d){var e=Ch.calculateObjectValue(l.options,l.options.responseHandler,[a,d],a); +l.load(e),l.trigger("load-success",e,d&&d.status,d),b||l.hideLoading(),"server"===l.options.sidePagination&&e[l.options.totalField]>0&&!e[l.options.dataField].length&&l.updatePagination()},error:function(a){var c=[];"server"===l.options.sidePagination&&(c={},c[l.options.totalField]=0,c[l.options.dataField]=[]),l.load(c),l.trigger("load-error",a&&a.status,a),b||l.$tableLoading.hide()}}),this.options.ajax?Ch.calculateObjectValue(this,this.options.ajax,[k],null):(this._xhr&&4!==this._xhr.readyState&&this._xhr.abort(),this._xhr=a.ajax(k)),m}}},{key:"initSearchText",value:function(){if(this.options.search&&(this.searchText="",""!==this.options.searchText)){var a=this.$toolbar.find(".search input");a.val(this.options.searchText),this.onSearch({currentTarget:a,firedByInitSearchText:!0})}}},{key:"getCaret",value:function(){var b=this;this.$header.find("th").each(function(c,d){a(d).find(".sortable").removeClass("desc asc").addClass(a(d).data("field")===b.options.sortName?b.options.sortOrder:"both")})}},{key:"updateSelected",value:function(){var b=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",b),this.$selectItem.each(function(b,c){a(c).closest("tr")[a(c).prop("checked")?"addClass":"removeClass"]("selected")})}},{key:"updateRows",value:function(){var b=this;this.$selectItem.each(function(c,d){b.data[a(d).data("index")][b.header.stateField]=a(d).prop("checked")})}},{key:"resetRows",value:function(){var a,b,c,d=!0,e=!1,f=void 0;try{for(b=this.data[Symbol.iterator]();!(d=(a=b.next()).done);d=!0)c=a.value,this.$selectAll.prop("checked",!1),this.$selectItem.prop("checked",!1),this.header.stateField&&(c[this.header.stateField]=!1)}catch(g){e=!0,f=g}finally{try{d||null==b.return||b.return()}finally{if(e)throw f}}this.initHiddenRows()}},{key:"trigger",value:function(c){var d,e,f,g,h="".concat(c,".bs.table");for(e=arguments.length,f=new Array(e>1?e-1:0),g=1;e>g;g++)f[g-1]=arguments[g];(d=this.options)[b.EVENTS[h]].apply(d,f),this.$el.trigger(a.Event(h),f),this.options.onAll(h,f),this.$el.trigger(a.Event("all.bs.table"),[h,f])}},{key:"resetHeader",value:function(){var a=this;clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(function(){return a.fitHeader()},this.$el.is(":hidden")?100:0)}},{key:"fitHeader",value:function(){var b,c,d,e,f,g,h,i,j,k,l,m=this;if(this.$el.is(":hidden"))return this.timeoutId_=setTimeout(function(){return m.fitHeader()},100),void 0;for(b=this.$tableBody.get(0),c=b.scrollWidth>b.clientWidth&&b.scrollHeight>b.clientHeight+this.$header.outerHeight()?Ch.getScrollBarWidth():0,this.$el.css("margin-top",-this.$header.outerHeight()),d=a(":focus"),d.length>0&&(e=d.parents("th"),e.length>0&&(f=e.attr("data-field"),void 0!==f&&(g=this.$header.find("[data-field='".concat(f,"']")),g.length>0&&g.find(":input").addClass("focus-temp")))),this.$header_=this.$header.clone(!0,!0),this.$selectAll_=this.$header_.find('[name="btSelectAll"]'),this.$tableHeader.css("margin-right",c).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_),this.$tableLoading.css("width",this.$el.outerWidth()),h=a(".focus-temp:visible:eq(0)"),h.length>0&&(h.focus(),this.$header.find(".focus-temp").removeClass("focus-temp")),this.$header.find("th[data-field]").each(function(b,c){m.$header_.find(Ch.sprintf('th[data-field="%s"]',a(c).data("field"))).data(a(c).data())}),i=this.getVisibleFields(),j=this.$header_.find("th"),k=this.$body.find(">tr:not(.no-records-found,.virtual-scroll-top)").eq(0);k.length&&k.find('>td[colspan]:not([colspan="1"])').length;)k=k.next();l=k.find("> *").length,k.find("> *").each(function(b,c){var d,e,f,g,h,k=a(c);return Ch.hasDetailViewIcon(m.options)&&(0===b&&"right"!==m.options.detailViewAlign||b===l-1&&"right"===m.options.detailViewAlign)?(d=j.filter(".detail"),e=d.innerWidth()-d.find(".fht-cell").width(),d.find(".fht-cell").width(k.innerWidth()-e),void 0):(f=Ch.hasDetailViewIcon(m.options)&&"right"!==m.options.detailViewAlign?b-1:b,g=m.$header_.find(Ch.sprintf('th[data-field="%s"]',i[f])),g.length>1&&(g=a(j[k[0].cellIndex])),h=g.innerWidth()-g.find(".fht-cell").width(),g.find(".fht-cell").width(k.innerWidth()-h),void 0)}),this.horizontalScroll(),this.trigger("post-header")}},{key:"initFooter",value:function(){var a,b,c,d,e,f,g,i,j,k,l,m,n,o,p,q,r,s,t;if(this.options.showFooter&&!this.options.cardView){a=this.getData(),b=[],c="",Ch.hasDetailViewIcon(this.options)&&(c='
    '),c&&"right"!==this.options.detailViewAlign&&b.push(c),d=!0,e=!1,f=void 0;try{for(i=this.columns[Symbol.iterator]();!(d=(g=i.next()).done);d=!0)if(j=g.value,k="",l="",m=[],n={},o=Ch.sprintf(' class="%s"',j["class"]),j.visible){if(this.options.cardView&&!j.cardVisible)return;if(k=Ch.sprintf("text-align: %s; ",j.falign?j.falign:j.align),l=Ch.sprintf("vertical-align: %s; ",j.valign),n=Ch.calculateObjectValue(null,this.options.footerStyle,[j]),n&&n.css)for(p=0,q=Object.entries(n.css);p"),b.push('
    '),b.push(Ch.calculateObjectValue(j,j.footerFormatter,[a],this.footerData[0]&&this.footerData[0][j.field]||"")),b.push("
    "),b.push('
    '),b.push(""),b.push("")}}catch(u){e=!0,f=u}finally{try{d||null==i.return||i.return()}finally{if(e)throw f}}c&&"right"===this.options.detailViewAlign&&b.push(c),this.options.height||this.$tableFooter.length||(this.$el.append(""),this.$tableFooter=this.$el.find("tfoot")),this.$tableFooter.find("tr").html(b.join("")),this.trigger("post-footer",this.$tableFooter)}}},{key:"fitFooter",value:function(){var b,c,d,e,f,g=this;if(this.$el.is(":hidden"))return setTimeout(function(){return g.fitFooter()},100),void 0;for(b=this.$tableBody.get(0),c=b.scrollWidth>b.clientWidth&&b.scrollHeight>b.clientHeight+this.$header.outerHeight()?Ch.getScrollBarWidth():0,this.$tableFooter.css("margin-right",c).find("table").css("width",this.$el.outerWidth()).attr("class",this.$el.attr("class")),this.getVisibleFields(),d=this.$tableFooter.find("th"),e=this.$body.find(">tr:first-child:not(.no-records-found)");e.length&&e.find('>td[colspan]:not([colspan="1"])').length;)e=e.next();f=e.find("> *").length,e.find("> *").each(function(b,c){var e,h,i,j,k=a(c);return Ch.hasDetailViewIcon(g.options)&&(0===b&&"left"===g.options.detailViewAlign||b===f-1&&"right"===g.options.detailViewAlign)?(e=d.filter(".detail"),h=e.innerWidth()-e.find(".fht-cell").width(),e.find(".fht-cell").width(k.innerWidth()-h),void 0):(i=d.eq(b),j=i.innerWidth()-i.find(".fht-cell").width(),i.find(".fht-cell").width(k.innerWidth()-j),void 0)}),this.horizontalScroll()}},{key:"horizontalScroll",value:function(){var a=this;this.$tableBody.off("scroll").on("scroll",function(){var b=a.$tableBody.scrollLeft();a.options.showHeader&&a.options.height&&a.$tableHeader.scrollLeft(b),a.options.showFooter&&!a.options.cardView&&a.$tableFooter.scrollLeft(b),a.trigger("scroll-body",a.$tableBody)})}},{key:"getVisibleFields",value:function(){var a,b,c,d,e=[],f=!0,g=!1,h=void 0;try{for(b=this.header.fields[Symbol.iterator]();!(f=(a=b.next()).done);f=!0)c=a.value,d=this.columns[this.fieldsColumnsIndex[c]],d&&d.visible&&e.push(c)}catch(i){g=!0,h=i}finally{try{f||null==b.return||b.return()}finally{if(g)throw h}}return e}},{key:"initHiddenRows",value:function(){this.hiddenRows=[]}},{key:"getOptions",value:function(){var b=a.extend({},this.options);return delete b.data,a.extend(!0,{},b)}},{key:"refreshOptions",value:function(b){Ch.compareObjects(this.options,b,!0)||(this.options=a.extend(this.options,b),this.trigger("refresh-options",this.options),this.destroy(),this.init())}},{key:"getData",value:function(a){var b,c=this,d=this.options.data;return!(this.searchText||this.options.customSearch||this.options.sortName)&&Ch.isEmptyObject(this.filterColumns)&&Ch.isEmptyObject(this.filterColumnsPartial)||a&&a.unfiltered||(d=this.data),a&&a.useCurrentPage&&(d=d.slice(this.pageFrom-1,this.pageTo)),a&&!a.includeHiddenRows&&(b=this.getHiddenRows(),d=d.filter(function(a){return-1===Ch.findIndex(b,a)})),a&&a.formatted&&d.forEach(function(a){var b,d,e,f,g,i;for(b=0,d=Object.entries(a);b=0;b--)d=!1,c=this.options.data[b],(c.hasOwnProperty(a.field)||"$index"===a.field)&&(d=c.hasOwnProperty(a.field)||"$index"!==a.field?a.values.includes(c[a.field]):a.values.includes(b),d&&(this.options.data.splice(b,1),"server"===this.options.sidePagination&&(this.options.totalRows-=1)));e!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}}},{key:"removeAll",value:function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"insertRow",value:function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("row")&&(this.options.data.splice(a.index,0,a.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}},{key:"updateRow",value:function(b){var c,d,e,f=Array.isArray(b)?b:[b],g=!0,h=!1,i=void 0;try{for(d=f[Symbol.iterator]();!(g=(c=d.next()).done);g=!0)e=c.value,e.hasOwnProperty("index")&&e.hasOwnProperty("row")&&(e.hasOwnProperty("replace")&&e.replace?this.options.data[e.index]=e.row:a.extend(this.options.data[e.index],e.row))}catch(j){h=!0,i=j}finally{try{g||null==d.return||d.return()}finally{if(h)throw i}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"getRowByUniqueId",value:function(a){var b,c,d,e=this.options.uniqueId,f=this.options.data.length,g=a,h=null;for(b=f-1;b>=0;b--){if(c=this.options.data[b],c.hasOwnProperty(e))d=c[e];else{if(!c._data||!c._data.hasOwnProperty(e))continue;d=c._data[e]}if("string"==typeof d?g=g.toString():"number"==typeof d&&(Number(d)===d&&0===d%1?g=parseInt(g):d===Number(d)&&0!==d&&(g=parseFloat(g))),d===g){h=c;break}}return h}},{key:"updateByUniqueId",value:function(b){var c,d,e,f,g=Array.isArray(b)?b:[b],h=!0,i=!1,j=void 0;try{for(d=g[Symbol.iterator]();!(h=(c=d.next()).done);h=!0)e=c.value,e.hasOwnProperty("id")&&e.hasOwnProperty("row")&&(f=this.options.data.indexOf(this.getRowByUniqueId(e.id)),-1!==f&&(e.hasOwnProperty("replace")&&e.replace?this.options.data[f]=e.row:a.extend(this.options.data[f],e.row)))}catch(k){i=!0,j=k}finally{try{h||null==d.return||d.return()}finally{if(i)throw j}}this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0)}},{key:"removeByUniqueId",value:function(a){var b=this.options.data.length,c=this.getRowByUniqueId(a);c&&this.options.data.splice(this.options.data.indexOf(c),1),b!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initBody(!0))}},{key:"updateCell",value:function(a){a.hasOwnProperty("index")&&a.hasOwnProperty("field")&&a.hasOwnProperty("value")&&(this.data[a.index][a.field]=a.value,a.reinit!==!1&&(this.initSort(),this.initBody(!0)))}},{key:"updateCellByUniqueId",value:function(a){var b=this,c=Array.isArray(a)?a:[a];c.forEach(function(a){var c=a.id,d=a.field,e=a.value,f=b.options.data.indexOf(b.getRowByUniqueId(c));-1!==f&&(b.options.data[f][d]=e)}),a.reinit!==!1&&(this.initSort(),this.initBody(!0))}},{key:"showRow",value:function(a){this._toggleRow(a,!0)}},{key:"hideRow",value:function(a){this._toggleRow(a,!1)}},{key:"_toggleRow",value:function(a,b){var c,d;a.hasOwnProperty("index")?c=this.getData()[a.index]:a.hasOwnProperty("uniqueId")&&(c=this.getRowByUniqueId(a.uniqueId)),c&&(d=Ch.findIndex(this.hiddenRows,c),b||-1!==d?b&&d>-1&&this.hiddenRows.splice(d,1):this.hiddenRows.push(c),this.initBody(!0),this.initPagination())}},{key:"getHiddenRows",value:function(a){var b,c,d,e,f,g,h,i;if(a)return this.initHiddenRows(),this.initBody(!0),this.initPagination(),void 0;b=this.getData(),c=[],d=!0,e=!1,f=void 0;try{for(h=b[Symbol.iterator]();!(d=(g=h.next()).done);d=!0)i=g.value,this.hiddenRows.includes(i)&&c.push(i)}catch(j){e=!0,f=j}finally{try{d||null==h.return||h.return()}finally{if(e)throw f}}return this.hiddenRows=c,c}},{key:"showColumn",value:function(a){var b=this,c=Array.isArray(a)?a:[a];c.forEach(function(a){b._toggleColumn(b.fieldsColumnsIndex[a],!0,!0)})}},{key:"hideColumn",value:function(a){var b=this,c=Array.isArray(a)?a:[a];c.forEach(function(a){b._toggleColumn(b.fieldsColumnsIndex[a],!1,!0)})}},{key:"_toggleColumn",value:function(a,b,c){if(-1!==a&&this.columns[a].visible!==b&&(this.columns[a].visible=b,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var d=this.$toolbar.find('.keep-open input:not(".toggle-all")').prop("disabled",!1);c&&d.filter(Ch.sprintf('[value="%s"]',a)).prop("checked",b),d.filter(":checked").length<=this.options.minimumCountColumns&&d.filter(":checked").prop("disabled",!0)}}},{key:"getVisibleColumns",value:function(){var a=this;return this.columns.filter(function(b){return b.visible&&!a.isSelectionColumn(b)})}},{key:"getHiddenColumns",value:function(){return this.columns.filter(function(a){var b=a.visible;return!b})}},{key:"isSelectionColumn",value:function(a){return a.radio||a.checkbox}},{key:"showAllColumns",value:function(){this._toggleAllColumns(!0)}},{key:"hideAllColumns",value:function(){this._toggleAllColumns(!1)}},{key:"_toggleAllColumns",value:function(b){var c,d,e,f,g=this,h=!0,i=!1,j=void 0;try{for(d=this.columns.slice().reverse()[Symbol.iterator]();!(h=(c=d.next()).done);h=!0)if(e=c.value,e.switchable){if(!b&&this.options.showColumns&&this.getVisibleColumns().length===this.options.minimumCountColumns)continue;e.visible=b}}catch(k){i=!0,j=k}finally{try{h||null==d.return||d.return()}finally{if(i)throw j}}this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns&&(f=this.$toolbar.find('.keep-open input[type="checkbox"]:not(".toggle-all")').prop("disabled",!1),b?f.prop("checked",b):f.get().reverse().forEach(function(c){f.filter(":checked").length>g.options.minimumCountColumns&&a(c).prop("checked",b)}),f.filter(":checked").length<=this.options.minimumCountColumns&&f.filter(":checked").prop("disabled",!0))}},{key:"mergeCells",value:function(a){var b,c,d,e=a.index,f=this.getVisibleFields().indexOf(a.field),g=a.rowspan||1,h=a.colspan||1,i=this.$body.find(">tr");if(Ch.hasDetailViewIcon(this.options)&&(f+=1),d=i.eq(e).find(">td").eq(f),!(0>e||0>f||e>=this.data.length)){for(b=e;e+g>b;b++)for(c=f;f+h>c;c++)i.eq(b).find(">td").eq(c).hide();d.attr("rowspan",g).attr("colspan",h).show()}}},{key:"checkAll",value:function(){this._toggleCheckAll(!0)}},{key:"uncheckAll",value:function(){this._toggleCheckAll(!1)}},{key:"_toggleCheckAll",value:function(a){var b,c=this.getSelections();return this.$selectAll.add(this.$selectAll_).prop("checked",a),this.$selectItem.filter(":enabled").prop("checked",a),this.updateRows(),b=this.getSelections(),a?(this.trigger("check-all",b,c),void 0):(this.trigger("uncheck-all",b,c),void 0)}},{key:"checkInvert",value:function(){var b=this.$selectItem.filter(":enabled"),c=b.filter(":checked");b.each(function(b,c){a(c).prop("checked",!a(c).prop("checked"))}),this.updateRows(),this.updateSelected(),this.trigger("uncheck-some",c),c=this.getSelections(),this.trigger("check-some",c)}},{key:"check",value:function(a){this._toggleCheck(!0,a)}},{key:"uncheck",value:function(a){this._toggleCheck(!1,a)}},{key:"_toggleCheck",value:function(a,b){var c,d,e,f,g,h,i,j,k=this.$selectItem.filter('[data-index="'.concat(b,'"]')),l=this.data[b];if(k.is(":radio")||this.options.singleSelect||this.options.multipleSelectRow&&!this.multipleSelectRowCtrlKey&&!this.multipleSelectRowShiftKey){c=!0,d=!1,e=void 0;try{for(g=this.options.data[Symbol.iterator]();!(c=(f=g.next()).done);c=!0)h=f.value,h[this.header.stateField]=!1}catch(m){d=!0,e=m}finally{try{c||null==g.return||g.return()}finally{if(d)throw e}}this.$selectItem.filter(":checked").not(k).prop("checked",!1)}if(l[this.header.stateField]=a,this.options.multipleSelectRow){if(this.multipleSelectRowShiftKey&&this.multipleSelectRowLastSelectedIndex>=0)for(i=[this.multipleSelectRowLastSelectedIndex,b].sort(),j=i[0]+1;j0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.$tableContainer.toggleClass("has-card-view",this.options.cardView),!this.options.cardView&&this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),h+=this.$header.outerHeight(!0)+1):(this.$tableHeader.hide(),this.trigger("post-header")),!this.options.cardView&&this.options.showFooter&&(this.$tableFooter.show(),this.fitFooter(),this.options.height&&(h+=this.$tableFooter.outerHeight(!0))),this.$container.hasClass("fullscreen")?(this.$tableContainer.css("height",""),this.$tableContainer.css("width","")):this.options.height&&(this.$tableBorder&&(this.$tableBorder.css("width",""),this.$tableBorder.css("height","")),b=this.$toolbar.outerHeight(!0),c=this.$pagination.outerHeight(!0),d=this.options.height-b-c,e=this.$tableBody.find(">table"),f=e.outerHeight(),this.$tableContainer.css("height","".concat(d,"px")),this.$tableBorder&&e.is(":visible")&&(g=d-f-2,this.$tableBody[0].scrollWidth-this.$tableBody.innerWidth()&&(g-=Ch.getScrollBarWidth()),this.$tableBorder.css("width","".concat(e.outerWidth(),"px")),this.$tableBorder.css("height","".concat(g,"px")))),this.options.cardView?(this.$el.css("margin-top","0"),this.$tableContainer.css("padding-bottom","0"),this.$tableFooter.hide()):(this.getCaret(),this.$tableContainer.css("padding-bottom","".concat(h,"px"))),this.trigger("reset-view")}},{key:"showLoading",value:function(){this.$tableLoading.css("display","flex");var a=this.options.loadingFontSize;"auto"===this.options.loadingFontSize&&(a=.04*this.$tableLoading.width(),a=Math.max(12,a),a=Math.min(32,a),a="".concat(a,"px")),this.$tableLoading.find(".loading-text").css("font-size",a)}},{key:"hideLoading",value:function(){this.$tableLoading.css("display","none")}},{key:"toggleShowSearch",value:function(){this.$el.parents(".select-table").siblings().slideToggle()}},{key:"togglePagination",value:function(){var a,b;this.options.pagination=!this.options.pagination,a=this.options.showButtonIcons?this.options.pagination?this.options.icons.paginationSwitchDown:this.options.icons.paginationSwitchUp:"",b=this.options.showButtonText?this.options.pagination?this.options.formatPaginationSwitchUp():this.options.formatPaginationSwitchDown():"",this.$toolbar.find('button[name="paginationSwitch"]').html(Ch.sprintf(this.constants.html.icon,this.options.iconsPrefix,a)+" "+b),this.updatePagination()}},{key:"toggleFullscreen",value:function(){this.$el.closest(".bootstrap-table").toggleClass("fullscreen"),this.resetView()}},{key:"toggleView",value:function(){var a,b;this.options.cardView=!this.options.cardView,this.initHeader(),a=this.options.showButtonIcons?this.options.cardView?this.options.icons.toggleOn:this.options.icons.toggleOff:"",b=this.options.showButtonText?this.options.cardView?this.options.formatToggleOff():this.options.formatToggleOn():"",this.$toolbar.find('button[name="toggle"]').html(Ch.sprintf(this.constants.html.icon,this.options.iconsPrefix,a)+" "+b),this.initBody(),this.trigger("toggle",this.options.cardView)}},{key:"resetSearch",value:function(a){var b=this.$toolbar.find(".search input");b.val(a||""),this.onSearch({currentTarget:b})}},{key:"filterBy",value:function(b,c){this.filterOptions=Ch.isEmptyObject(c)?this.options.filterOptions:a.extend(this.options.filterOptions,c),this.filterColumns=Ch.isEmptyObject(b)?{}:b,this.options.pageNumber=1,this.initSearch(),this.updatePagination()}},{key:"scrollTo",value:function c(b){var e,c;return"undefined"==typeof b?this.$tableBody.scrollTop():(e={unit:"px",value:0},"object"===d(b)?e=Object.assign(e,b):"string"==typeof b&&"bottom"===b?e.value=this.$tableBody[0].scrollHeight:("string"==typeof b||"number"==typeof b)&&(e.value=b),c=e.value,"rows"===e.unit&&(c=0,this.$body.find("> tr:lt(".concat(e.value,")")).each(function(b,d){c+=a(d).outerHeight(!0)})),this.$tableBody.scrollTop(c),void 0)}},{key:"getScrollPosition",value:function(){return this.scrollTo()}},{key:"selectPage",value:function(a){a>0&&a<=this.options.totalPages&&(this.options.pageNumber=a,this.updatePagination())}},{key:"prevPage",value:function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())}},{key:"nextPage",value:function(){this.options.pageNumber tr[data-index="%s"]',a));c.next().is("tr.detail-view")?this.collapseRow(a):this.expandRow(a,b),this.resetView()}},{key:"expandRow",value:function(a,b){var c,d,e,f=this.data[a],g=this.$body.find(Ch.sprintf('> tr[data-index="%s"][data-has-detail-view]',a));g.next().is("tr.detail-view")||(this.options.detailViewIcon&&g.find("a.detail-icon").html(Ch.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailClose)),g.after(Ch.sprintf('',g.children("td").length)),c=g.next().find("td"),d=b||this.options.detailFormatter,e=Ch.calculateObjectValue(this.options,d,[a,f,c],""),1===c.length&&c.append(e),this.trigger("expand-row",a,f,c))}},{key:"expandRowByUniqueId",value:function(a){var b=this.getRowByUniqueId(a);b&&this.expandRow(this.data.indexOf(b))}},{key:"collapseRow",value:function(a){var b=this.data[a],c=this.$body.find(Ch.sprintf('> tr[data-index="%s"][data-has-detail-view]',a));c.next().is("tr.detail-view")&&(this.options.detailViewIcon&&c.find("a.detail-icon").html(Ch.sprintf(this.constants.html.icon,this.options.iconsPrefix,this.options.icons.detailOpen)),this.trigger("collapse-row",a,b,c.next()),c.next().remove())}},{key:"collapseRowByUniqueId",value:function(a){var b=this.getRowByUniqueId(a);b&&this.collapseRow(this.data.indexOf(b))}},{key:"expandAllRows",value:function(){var b,c=this.$body.find("> tr[data-index][data-has-detail-view]");for(b=0;b tr[data-index][data-has-detail-view]");for(b=0;b1?c-1:0),f=1;c>f;f++)e[f-1]=arguments[f];return this.each(function(c,f){var h,i=a(f).data("bootstrap.table"),j=a.extend({},Gh.DEFAULTS,a(f).data(),"object"===d(b)&&b);if("string"==typeof b){if(!qh.METHODS.includes(b))throw new Error("Unknown method: ".concat(b));if(!i)return;g=(h=i)[b].apply(h,e),"destroy"===b&&a(f).removeData("bootstrap.table")}i||a(f).data("bootstrap.table",i=new a.BootstrapTable(f,j))}),"undefined"==typeof g?this:g},a.fn.bootstrapTable.Constructor=Gh,a.fn.bootstrapTable.theme=qh.THEME,a.fn.bootstrapTable.VERSION=qh.VERSION,a.fn.bootstrapTable.defaults=Gh.DEFAULTS,a.fn.bootstrapTable.columnDefaults=Gh.COLUMN_DEFAULTS,a.fn.bootstrapTable.events=Gh.EVENTS,a.fn.bootstrapTable.locales=Gh.LOCALES,a.fn.bootstrapTable.methods=Gh.METHODS,a.fn.bootstrapTable.utils=Ch,a(function(){a('[data-toggle="table"]').bootstrapTable()}),Gh}),TABLE_EVENTS="all.bs.table click-cell.bs.table dbl-click-cell.bs.table click-row.bs.table dbl-click-row.bs.table sort.bs.table check.bs.table uncheck.bs.table onUncheck check-all.bs.table uncheck-all.bs.table check-some.bs.table uncheck-some.bs.table load-success.bs.table load-error.bs.table column-switch.bs.table page-change.bs.table search.bs.table toggle.bs.table show-search.bs.table expand-row.bs.table collapse-row.bs.table refresh-options.bs.table reset-view.bs.table refresh.bs.table",firstLoadTable=[],union=function(a,b){return $.isPlainObject(b)?addRememberRow(a,b):$.isArray(b)?$.each(b,function(b,c){$.isPlainObject(c)?addRememberRow(a,c):-1==$.inArray(c,a)&&(a[a.length]=c)}):-1==$.inArray(b,a)&&(a[a.length]=b),a},difference=function(a,b){if($.isPlainObject(b))removeRememberRow(a,b);else if($.isArray(b))$.each(b,function(b,c){if($.isPlainObject(c))removeRememberRow(a,c);else{var d=$.inArray(c,a);-1!=d&&a.splice(d,1)}});else{var c=$.inArray(b,a);-1!=c&&a.splice(c,1)}return a},_={union:union,difference:difference}; \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.js index d0aeb94d..7050c007 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.js @@ -1,42 +1,771 @@ -(function ($) { - 'use strict'; +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = global || self, factory(global.jQuery)); +}(this, (function ($) { 'use strict'; - $.fn.bootstrapTable.locales['zh-CN'] = { - formatLoadingMessage: function () { - return '正在努力地加载数据中,请稍候……'; - }, - formatRecordsPerPage: function (pageNumber) { - return pageNumber + ' 条记录每页'; - }, - formatShowingRows: function (pageFrom, pageTo, totalRows) { - return '第 ' + pageFrom + ' 到 ' + pageTo + ' 条,共 ' + totalRows + ' 条记录。'; - }, - formatSearch: function () { - return '搜索'; - }, - formatNoMatches: function () { - return '没有找到匹配的记录'; - }, - formatPaginationSwitch: function () { - return '隐藏/显示分页'; - }, - formatRefresh: function () { - return '刷新'; - }, - formatToggle: function () { - return '切换'; - }, - formatColumns: function () { - return '列'; - }, - formatExport: function () { - return '导出数据'; - }, - formatClearFilters: function () { - return '清空过滤'; - } - }; + $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $; - $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']); + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; -})(jQuery); + function createCommonjsModule(fn, module) { + return module = { exports: {} }, fn(module, module.exports), module.exports; + } + + var check = function (it) { + return it && it.Math == Math && it; + }; + + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global_1 = + // eslint-disable-next-line no-undef + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + check(typeof self == 'object' && self) || + check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func + Function('return this')(); + + var fails = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; + + // Thank's IE8 for his funny defineProperty + var descriptors = !fails(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; + }); + + var nativePropertyIsEnumerable = {}.propertyIsEnumerable; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); + + // `Object.prototype.propertyIsEnumerable` method implementation + // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable + var f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; + } : nativePropertyIsEnumerable; + + var objectPropertyIsEnumerable = { + f: f + }; + + var createPropertyDescriptor = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; + + var toString = {}.toString; + + var classofRaw = function (it) { + return toString.call(it).slice(8, -1); + }; + + var split = ''.split; + + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins + return !Object('z').propertyIsEnumerable(0); + }) ? function (it) { + return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); + } : Object; + + // `RequireObjectCoercible` abstract operation + // https://tc39.github.io/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; + }; + + // toObject with fallback for non-array-like ES3 strings + + + + var toIndexedObject = function (it) { + return indexedObject(requireObjectCoercible(it)); + }; + + var isObject = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; + + // `ToPrimitive` abstract operation + // https://tc39.github.io/ecma262/#sec-toprimitive + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + var toPrimitive = function (input, PREFERRED_STRING) { + if (!isObject(input)) return input; + var fn, val; + if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; + if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + throw TypeError("Can't convert object to primitive value"); + }; + + var hasOwnProperty = {}.hasOwnProperty; + + var has = function (it, key) { + return hasOwnProperty.call(it, key); + }; + + var document = global_1.document; + // typeof document.createElement is 'object' in old IE + var EXISTS = isObject(document) && isObject(document.createElement); + + var documentCreateElement = function (it) { + return EXISTS ? document.createElement(it) : {}; + }; + + // Thank's IE8 for his funny defineProperty + var ie8DomDefine = !descriptors && !fails(function () { + return Object.defineProperty(documentCreateElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor + var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject(O); + P = toPrimitive(P, true); + if (ie8DomDefine) try { + return nativeGetOwnPropertyDescriptor(O, P); + } catch (error) { /* empty */ } + if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); + }; + + var objectGetOwnPropertyDescriptor = { + f: f$1 + }; + + var anObject = function (it) { + if (!isObject(it)) { + throw TypeError(String(it) + ' is not an object'); + } return it; + }; + + var nativeDefineProperty = Object.defineProperty; + + // `Object.defineProperty` method + // https://tc39.github.io/ecma262/#sec-object.defineproperty + var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (ie8DomDefine) try { + return nativeDefineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var objectDefineProperty = { + f: f$2 + }; + + var createNonEnumerableProperty = descriptors ? function (object, key, value) { + return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var setGlobal = function (key, value) { + try { + createNonEnumerableProperty(global_1, key, value); + } catch (error) { + global_1[key] = value; + } return value; + }; + + var SHARED = '__core-js_shared__'; + var store = global_1[SHARED] || setGlobal(SHARED, {}); + + var sharedStore = store; + + var functionToString = Function.toString; + + // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper + if (typeof sharedStore.inspectSource != 'function') { + sharedStore.inspectSource = function (it) { + return functionToString.call(it); + }; + } + + var inspectSource = sharedStore.inspectSource; + + var WeakMap = global_1.WeakMap; + + var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); + + var shared = createCommonjsModule(function (module) { + (module.exports = function (key, value) { + return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.6.0', + mode: 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' + }); + }); + + var id = 0; + var postfix = Math.random(); + + var uid = function (key) { + return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); + }; + + var keys = shared('keys'); + + var sharedKey = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys = {}; + + var WeakMap$1 = global_1.WeakMap; + var set, get, has$1; + + var enforce = function (it) { + return has$1(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) { + throw TypeError('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (nativeWeakMap) { + var store$1 = new WeakMap$1(); + var wmget = store$1.get; + var wmhas = store$1.has; + var wmset = store$1.set; + set = function (it, metadata) { + wmset.call(store$1, it, metadata); + return metadata; + }; + get = function (it) { + return wmget.call(store$1, it) || {}; + }; + has$1 = function (it) { + return wmhas.call(store$1, it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys[STATE] = true; + set = function (it, metadata) { + createNonEnumerableProperty(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return has(it, STATE) ? it[STATE] : {}; + }; + has$1 = function (it) { + return has(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has$1, + enforce: enforce, + getterFor: getterFor + }; + + var redefine = createCommonjsModule(function (module) { + var getInternalState = internalState.get; + var enforceInternalState = internalState.enforce; + var TEMPLATE = String(String).split('String'); + + (module.exports = function (O, key, value, options) { + var unsafe = options ? !!options.unsafe : false; + var simple = options ? !!options.enumerable : false; + var noTargetGet = options ? !!options.noTargetGet : false; + if (typeof value == 'function') { + if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); + enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); + } + if (O === global_1) { + if (simple) O[key] = value; + else setGlobal(key, value); + return; + } else if (!unsafe) { + delete O[key]; + } else if (!noTargetGet && O[key]) { + simple = true; + } + if (simple) O[key] = value; + else createNonEnumerableProperty(O, key, value); + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative + })(Function.prototype, 'toString', function toString() { + return typeof this == 'function' && getInternalState(this).source || inspectSource(this); + }); + }); + + var path = global_1; + + var aFunction = function (variable) { + return typeof variable == 'function' ? variable : undefined; + }; + + var getBuiltIn = function (namespace, method) { + return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) + : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; + }; + + var ceil = Math.ceil; + var floor = Math.floor; + + // `ToInteger` abstract operation + // https://tc39.github.io/ecma262/#sec-tointeger + var toInteger = function (argument) { + return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); + }; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.github.io/ecma262/#sec-tolength + var toLength = function (argument) { + return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var max = Math.max; + var min$1 = Math.min; + + // Helper for a popular repeating case of the spec: + // Let integer be ? ToInteger(index). + // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). + var toAbsoluteIndex = function (index, length) { + var integer = toInteger(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; + }; + + var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.github.io/ecma262/#sec-array.prototype.includes + includes: createMethod(true), + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var indexOf = arrayIncludes.indexOf; + + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~indexOf(result, key) || result.push(key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); + + // `Object.getOwnPropertyNames` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertynames + var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return objectKeysInternal(O, hiddenKeys$1); + }; + + var objectGetOwnPropertyNames = { + f: f$3 + }; + + var f$4 = Object.getOwnPropertySymbols; + + var objectGetOwnPropertySymbols = { + f: f$4 + }; + + // all object keys, includes non-enumerable and symbols + var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = objectGetOwnPropertyNames.f(anObject(it)); + var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; + return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; + }; + + var copyConstructorProperties = function (target, source) { + var keys = ownKeys(source); + var defineProperty = objectDefineProperty.f; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + }; + + var replacement = /#|\.prototype\./; + + var isForced = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : typeof detection == 'function' ? fails(detection) + : !!detection; + }; + + var normalize = isForced.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced.data = {}; + var NATIVE = isForced.NATIVE = 'N'; + var POLYFILL = isForced.POLYFILL = 'P'; + + var isForced_1 = isForced; + + var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + + + + + + + /* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.noTargetGet - prevent calling a getter on target + */ + var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global_1; + } else if (STATIC) { + target = global_1[TARGET] || setGlobal(TARGET, {}); + } else { + target = (global_1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.noTargetGet) { + descriptor = getOwnPropertyDescriptor$1(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty === typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + // extend global + redefine(target, key, sourceProperty, options); + } + }; + + // `IsArray` abstract operation + // https://tc39.github.io/ecma262/#sec-isarray + var isArray = Array.isArray || function isArray(arg) { + return classofRaw(arg) == 'Array'; + }; + + // `ToObject` abstract operation + // https://tc39.github.io/ecma262/#sec-toobject + var toObject = function (argument) { + return Object(requireObjectCoercible(argument)); + }; + + var createProperty = function (object, key, value) { + var propertyKey = toPrimitive(key); + if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { + // Chrome 38 Symbol has incorrect toString conversion + // eslint-disable-next-line no-undef + return !String(Symbol()); + }); + + var useSymbolAsUid = nativeSymbol + // eslint-disable-next-line no-undef + && !Symbol.sham + // eslint-disable-next-line no-undef + && typeof Symbol() == 'symbol'; + + var WellKnownSymbolsStore = shared('wks'); + var Symbol$1 = global_1.Symbol; + var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid; + + var wellKnownSymbol = function (name) { + if (!has(WellKnownSymbolsStore, name)) { + if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; + else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var SPECIES = wellKnownSymbol('species'); + + // `ArraySpeciesCreate` abstract operation + // https://tc39.github.io/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate = function (originalArray, length) { + var C; + if (isArray(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; + else if (isObject(C)) { + C = C[SPECIES]; + if (C === null) C = undefined; + } + } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); + }; + + var userAgent = getBuiltIn('navigator', 'userAgent') || ''; + + var process = global_1.process; + var versions = process && process.versions; + var v8 = versions && versions.v8; + var match, version; + + if (v8) { + match = v8.split('.'); + version = match[0] + match[1]; + } else if (userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = match[1]; + } + } + + var v8Version = version && +version; + + var SPECIES$1 = wellKnownSymbol('species'); + + var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return v8Version >= 51 || !fails(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$1] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; + var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; + + // `Array.prototype.concat` method + // https://tc39.github.io/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + _export({ target: 'Array', proto: true, forced: FORCED }, { + concat: function concat(arg) { // eslint-disable-line no-unused-vars + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = toLength(E.length); + if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + /** + * Bootstrap Table Chinese translation + * Author: Zhixin Wen + */ + + $.fn.bootstrapTable.locales['zh-CN'] = { + formatLoadingMessage: function formatLoadingMessage() { + return '正在努力地加载数据中,请稍候'; + }, + formatRecordsPerPage: function formatRecordsPerPage(pageNumber) { + return "\u6BCF\u9875\u663E\u793A ".concat(pageNumber, " \u6761\u8BB0\u5F55"); + }, + formatShowingRows: function formatShowingRows(pageFrom, pageTo, totalRows, totalNotFiltered) { + if (totalNotFiltered !== undefined && totalNotFiltered > 0 && totalNotFiltered > totalRows) { + return "\u663E\u793A\u7B2C ".concat(pageFrom, " \u5230\u7B2C ").concat(pageTo, " \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ").concat(totalRows, " \u6761\u8BB0\u5F55\uFF08\u4ECE ").concat(totalNotFiltered, " \u603B\u8BB0\u5F55\u4E2D\u8FC7\u6EE4\uFF09"); + } + + return "\u663E\u793A\u7B2C ".concat(pageFrom, " \u5230\u7B2C ").concat(pageTo, " \u6761\u8BB0\u5F55\uFF0C\u603B\u5171 ").concat(totalRows, " \u6761\u8BB0\u5F55"); + }, + formatSRPaginationPreText: function formatSRPaginationPreText() { + return '上一页'; + }, + formatSRPaginationPageText: function formatSRPaginationPageText(page) { + return "\u7B2C".concat(page, "\u9875"); + }, + formatSRPaginationNextText: function formatSRPaginationNextText() { + return '下一页'; + }, + formatDetailPagination: function formatDetailPagination(totalRows) { + return "\u603B\u5171 ".concat(totalRows, " \u6761\u8BB0\u5F55"); + }, + formatClearSearch: function formatClearSearch() { + return '清空过滤'; + }, + formatSearch: function formatSearch() { + return '搜索'; + }, + formatNoMatches: function formatNoMatches() { + return '没有找到匹配的记录'; + }, + formatPaginationSwitch: function formatPaginationSwitch() { + return '隐藏/显示分页'; + }, + formatPaginationSwitchDown: function formatPaginationSwitchDown() { + return '显示分页'; + }, + formatPaginationSwitchUp: function formatPaginationSwitchUp() { + return '隐藏分页'; + }, + formatRefresh: function formatRefresh() { + return '刷新'; + }, + formatToggle: function formatToggle() { + return '切换'; + }, + formatToggleOn: function formatToggleOn() { + return '显示卡片视图'; + }, + formatToggleOff: function formatToggleOff() { + return '隐藏卡片视图'; + }, + formatColumns: function formatColumns() { + return '列'; + }, + formatColumnsToggleAll: function formatColumnsToggleAll() { + return '切换所有'; + }, + formatFullscreen: function formatFullscreen() { + return '全屏'; + }, + formatAllRows: function formatAllRows() { + return '所有'; + }, + formatAutoRefresh: function formatAutoRefresh() { + return '自动刷新'; + }, + formatExport: function formatExport() { + return '导出数据'; + }, + formatJumpTo: function formatJumpTo() { + return '跳转'; + }, + formatAdvancedSearch: function formatAdvancedSearch() { + return '高级搜索'; + }, + formatAdvancedCloseButton: function formatAdvancedCloseButton() { + return '关闭'; + }, + formatFilterControlSwitch: function formatFilterControlSwitch() { + return '隐藏/显示过滤控制'; + }, + formatFilterControlSwitchHide: function formatFilterControlSwitchHide() { + return '隐藏过滤控制'; + }, + formatFilterControlSwitchShow: function formatFilterControlSwitchShow() { + return '显示过滤控制'; + } + }; + $.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['zh-CN']); + +}))); diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js index 19299a32..f844b578 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/locale/bootstrap-table-zh-CN.min.js @@ -1 +1,10 @@ -(function($){$.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候……"},formatRecordsPerPage:function(pageNumber){return pageNumber+" 条记录每页"},formatShowingRows:function(pageFrom,pageTo,totalRows){return"第 "+pageFrom+" 到 "+pageTo+" 条,共 "+totalRows+" 条记录。"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatColumns:function(){return"列"},formatExport:function(){return"导出数据"},formatClearFilters:function(){return"清空过滤"}};$.extend($.fn.bootstrapTable.defaults,$.fn.bootstrapTable.locales["zh-CN"])})(jQuery); \ No newline at end of file +/** + * 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.17.1 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,n){return t(n={exports:{}},n.exports),n.exports}var e=function(t){return t&&t.Math==Math&&t},o=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,a={f:f&&!c.call({1:2},1)?function(t){var n=f(this,t);return!!n&&n.enumerable}:c},l=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,g=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,m=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},h=function(t){return g(m(t))},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,n){if(!d(t))return t;var r,e;if(n&&"function"==typeof(r=t.toString)&&!d(e=r.call(t)))return e;if("function"==typeof(r=t.valueOf)&&!d(e=r.call(t)))return e;if(!n&&"function"==typeof(r=t.toString)&&!d(e=r.call(t)))return e;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,n){return b.call(t,n)},S=o.document,O=d(S)&&d(S.createElement),j=!u&&!i((function(){return 7!=Object.defineProperty((t="div",O?S.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),P=Object.getOwnPropertyDescriptor,T={f:u?P:function(t,n){if(t=h(t),n=v(n,!0),j)try{return P(t,n)}catch(t){}if(w(t,n))return l(!a.f.call(t,n),t[n])}},x=function(t){if(!d(t))throw TypeError(String(t)+" is not an object");return t},E=Object.defineProperty,A={f:u?E:function(t,n,r){if(x(t),n=v(n,!0),x(r),j)try{return E(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},C=u?function(t,n,r){return A.f(t,n,l(1,r))}:function(t,n,r){return t[n]=r,t},M=function(t,n){try{C(o,t,n)}catch(r){o[t]=n}return n},_=o["__core-js_shared__"]||M("__core-js_shared__",{}),F=Function.toString;"function"!=typeof _.inspectSource&&(_.inspectSource=function(t){return F.call(t)});var N,R,k,I,L=_.inspectSource,z=o.WeakMap,D="function"==typeof z&&/native code/.test(L(z)),q=r((function(t){(t.exports=function(t,n){return _[t]||(_[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+G).toString(36)},H=q("keys"),J={},K=o.WeakMap;if(D){var Q=new K,U=Q.get,V=Q.has,Y=Q.set;N=function(t,n){return Y.call(Q,t,n),n},R=function(t){return U.call(Q,t)||{}},k=function(t){return V.call(Q,t)}}else{var X=H[I="state"]||(H[I]=W(I));J[X]=!0,N=function(t,n){return C(t,X,n),n},R=function(t){return w(t,X)?t[X]:{}},k=function(t){return w(t,X)}}var Z,$,tt={set:N,get:R,has:k,enforce:function(t){return k(t)?R(t):N(t,{})},getterFor:function(t){return function(n){var r;if(!d(n)||(r=R(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},nt=r((function(t){var n=tt.get,r=tt.enforce,e=String(String).split("String");(t.exports=function(t,n,i,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,a=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof n||w(i,"name")||C(i,"name",n),r(i).source=e.join("string"==typeof n?n:"")),t!==o?(c?!a&&t[n]&&(f=!0):delete t[n],f?t[n]=i:C(t,n,i)):f?t[n]=i:M(n,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||L(this)}))})),rt=o,et=function(t){return"function"==typeof t?t:void 0},ot=function(t,n){return arguments.length<2?et(rt[t])||et(o[t]):rt[t]&&rt[t][n]||o[t]&&o[t][n]},it=Math.ceil,ut=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?ut:it)(t)},ft=Math.min,at=function(t){return t>0?ft(ct(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t){return function(n,r,e){var o,i=h(n),u=at(i.length),c=function(t,n){var r=ct(t);return r<0?lt(r+n,0):st(r,n)}(e,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},yt={includes:pt(!0),indexOf:pt(!1)}.indexOf,gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return function(t,n){var r,e=h(t),o=0,i=[];for(r in e)!w(J,r)&&w(e,r)&&i.push(r);for(;n.length>o;)w(e,r=n[o++])&&(~yt(i,r)||i.push(r));return i}(t,gt)}},ht={f:Object.getOwnPropertySymbols},dt=ot("Reflect","ownKeys")||function(t){var n=mt.f(x(t)),r=ht.f;return r?n.concat(r(t)):n},vt=function(t,n){for(var r=dt(n),e=A.f,o=T.f,i=0;i=74)&&(Z=zt.match(/Chrome\/(\d+)/))&&($=Z[1]);var Gt,Wt=$&&+$,Ht=kt("species"),Jt=kt("isConcatSpreadable"),Kt=Wt>=51||!i((function(){var t=[];return t[Jt]=!1,t.concat()[0]!==t})),Qt=(Gt="concat",Wt>=51||!i((function(){var t=[];return(t.constructor={})[Ht]=function(){return{foo:1}},1!==t[Gt](Boolean).foo}))),Ut=function(t){if(!d(t))return!1;var n=t[Jt];return void 0!==n?!!n:Et(t)};!function(t,n){var r,e,i,u,c,f=t.target,a=t.global,l=t.stat;if(r=a?o:l?o[f]||M(f,{}):(o[f]||{}).prototype)for(e in n){if(u=n[e],i=t.noTargetGet?(c=xt(r,e))&&c.value:r[e],!Tt(a?e:f+(l?".":"#")+e,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;vt(u,i)}(t.sham||i&&i.sham)&&C(u,"sham",!0),nt(r,e,u,t)}}({target:"Array",proto:!0,forced:!Kt||!Qt},{concat:function(t){var n,r,e,o,i,u=At(this),c=Lt(u,0),f=0;for(n=-1,e=arguments.length;n9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ct(c,f++,i)}return c.length=f,c}}),t.fn.bootstrapTable.locales["zh-CN"]={formatLoadingMessage:function(){return"正在努力地加载数据中,请稍候"},formatRecordsPerPage:function(t){return"每页显示 ".concat(t," 条记录")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"显示第 ".concat(t," 到第 ").concat(n," 条记录,总共 ").concat(r," 条记录(从 ").concat(e," 总记录中过滤)"):"显示第 ".concat(t," 到第 ").concat(n," 条记录,总共 ").concat(r," 条记录")},formatSRPaginationPreText:function(){return"上一页"},formatSRPaginationPageText:function(t){return"第".concat(t,"页")},formatSRPaginationNextText:function(){return"下一页"},formatDetailPagination:function(t){return"总共 ".concat(t," 条记录")},formatClearSearch:function(){return"清空过滤"},formatSearch:function(){return"搜索"},formatNoMatches:function(){return"没有找到匹配的记录"},formatPaginationSwitch:function(){return"隐藏/显示分页"},formatPaginationSwitchDown:function(){return"显示分页"},formatPaginationSwitchUp:function(){return"隐藏分页"},formatRefresh:function(){return"刷新"},formatToggle:function(){return"切换"},formatToggleOn:function(){return"显示卡片视图"},formatToggleOff:function(){return"隐藏卡片视图"},formatColumns:function(){return"列"},formatColumnsToggleAll:function(){return"切换所有"},formatFullscreen:function(){return"全屏"},formatAllRows:function(){return"所有"},formatAutoRefresh:function(){return"自动刷新"},formatExport:function(){return"导出数据"},formatJumpTo:function(){return"跳转"},formatAdvancedSearch:function(){return"高级搜索"},formatAdvancedCloseButton:function(){return"关闭"},formatFilterControlSwitch:function(){return"隐藏/显示过滤控制"},formatFilterControlSwitchHide:function(){return"隐藏过滤控制"},formatFilterControlSwitchShow:function(){return"显示过滤控制"}},t.extend(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["zh-CN"])})); \ No newline at end of file From b1c60695e6b59a32c5ac2351b4f198127163aa64 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 27 Jul 2020 09:15:51 +0800 Subject: [PATCH 04/20] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=86=BB=E7=BB=93=E5=88=97=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../columns/bootstrap-table-fixed-columns.js | 1805 ++++++++++++++--- .../bootstrap-table-fixed-columns.min.js | 10 + .../main/resources/static/ruoyi/css/ry-ui.css | 64 +- .../main/resources/static/ruoyi/js/ry-ui.js | 6 +- .../templates/demo/table/fixedColumns.html | 3 +- .../src/main/resources/templates/include.html | 16 +- 6 files changed, 1563 insertions(+), 341 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.min.js diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js index 6861d5ff..f35b53cc 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js @@ -1,321 +1,1544 @@ -/** - * 基于bootstrap-table-fixed-columns修改 - * 支持左右列冻结、支持固定高度 - * Copyright (c) 2019 ruoyi - */ -(function ($) { - 'use strict'; +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = global || self, factory(global.jQuery)); +}(this, (function ($) { 'use strict'; - $.extend($.fn.bootstrapTable.defaults, { - fixedColumns: false, - fixedNumber: 1, - rightFixedColumns: false, - rightFixedNumber: 1 - }); + $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $; - var BootstrapTable = $.fn.bootstrapTable.Constructor, - _initHeader = BootstrapTable.prototype.initHeader, - _initBody = BootstrapTable.prototype.initBody, - _resetView = BootstrapTable.prototype.resetView; + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - BootstrapTable.prototype.initFixedColumns = function () { - this.timeoutHeaderColumns_ = 0; - this.timeoutBodyColumns_ = 0; - if (this.options.fixedColumns) { - this.$fixedHeader = $([ - '
    ', - '', - '', - '
    ', - '
    '].join('')); - - this.$fixedHeader.find('table').attr('class', this.$el.attr('class')); - this.$fixedHeaderColumns = this.$fixedHeader.find('thead'); - this.$tableHeader.before(this.$fixedHeader); + function createCommonjsModule(fn, module) { + return module = { exports: {} }, fn(module, module.exports), module.exports; + } - this.$fixedBody = $([ - '
    ', - '', - '', - '
    ', - '
    '].join('')); + var check = function (it) { + return it && it.Math == Math && it; + }; - this.$fixedBody.find('table').attr('class', this.$el.attr('class')); - this.$fixedBodyColumns = this.$fixedBody.find('tbody'); - this.$tableBody.before(this.$fixedBody); - } - if (this.options.rightFixedColumns) { - this.$rightfixedBody = $([ - '
    ', - '', - '', - '', - '
    ', - '
    '].join('')); - this.$rightfixedBody.find('table').attr('class', this.$el.attr('class')); - this.$rightfixedHeaderColumns = this.$rightfixedBody.find('thead'); - this.$rightfixedBodyColumns = this.$rightfixedBody.find('tbody'); - this.$tableBody.before(this.$rightfixedBody); - if (this.options.fixedColumns) { - $('.right-fixed-table-columns').attr('style','right:0px;'); - } - } - }; + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global_1 = + // eslint-disable-next-line no-undef + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + check(typeof self == 'object' && self) || + check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func + Function('return this')(); - BootstrapTable.prototype.initHeader = function () { - _initHeader.apply(this, Array.prototype.slice.apply(arguments)); + var fails = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; - if (!this.options.fixedColumns && !this.options.rightFixedColumns){ - return; - } - this.initFixedColumns(); + // Thank's IE8 for his funny defineProperty + var descriptors = !fails(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; + }); - var $ltr = this.$header.find('tr:eq(0)').clone(true), - $rtr = this.$header.find('tr:eq(0)').clone(), - $lths = $ltr.clone(true).find('th'), - $rths = $rtr.clone().find('th'); + var nativePropertyIsEnumerable = {}.propertyIsEnumerable; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - $ltr.html(''); - $rtr.html(''); - //右边列冻结 - if (this.options.rightFixedColumns) { - for (var i = 0; i < this.options.rightFixedNumber; i++) { - $rtr.append($rths.eq($rths.length - this.options.rightFixedNumber + i).clone()); - } - this.$rightfixedHeaderColumns.html('').append($rtr); - } + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); - //左边列冻结 - if (this.options.fixedColumns) { - for (var i = 0; i < this.options.fixedNumber; i++) { - $ltr.append($lths.eq(i).clone(true)); - } - this.$fixedHeaderColumns.html('').append($ltr); - this.$selectAll = $ltr.find('[name="btSelectAll"]'); - this.$selectAll.on('click', function () { - var checked = $(this).prop('checked'); - $(".left-fixed-body-columns input[name=btSelectItem]").filter(':enabled').prop('checked', checked); - $('.fixed-table-body input[name=btSelectItem]').closest('tr').removeClass('selected'); - }); - } - }; + // `Object.prototype.propertyIsEnumerable` method implementation + // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable + var f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; + } : nativePropertyIsEnumerable; - BootstrapTable.prototype.initBody = function () { - _initBody.apply(this, Array.prototype.slice.apply(arguments)); + var objectPropertyIsEnumerable = { + f: f + }; - if (!this.options.fixedColumns && !this.options.rightFixedColumns) { - return; - } + var createPropertyDescriptor = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; - var that = this; - if (this.options.fixedColumns) { - this.$fixedBodyColumns.html(''); - this.$body.find('> tr[data-index]').each(function () { - var $tr = $(this).clone(true), - $tds = $tr.clone(true).find('td'); + var toString = {}.toString; - $tr.html(''); - for (var i = 0; i < that.options.fixedNumber; i++) { - $tr.append($tds.eq(i).clone(true)); - } - that.$fixedBodyColumns.append($tr); - }); - } - if (this.options.rightFixedColumns) { - this.$rightfixedBodyColumns.html(''); - this.$body.find('> tr[data-index]').each(function () { - var $tr = $(this).clone(), - $tds = $tr.clone().find('td'); + var classofRaw = function (it) { + return toString.call(it).slice(8, -1); + }; - $tr.html(''); - for (var i = 0; i < that.options.rightFixedNumber; i++) { - var indexTd = $tds.length - that.options.rightFixedNumber + i; - var oldTd = $tds.eq(indexTd); - var fixTd = oldTd.clone(); - var buttons = fixTd.find('button'); - //事件转移:冻结列里面的事件转移到实际按钮的事件 - buttons.each(function (key, item) { - $(item).click(function () { - that.$body.find("tr[data-index=" + $tr.attr('data-index') + "] td:eq(" + indexTd + ") button:eq(" + key + ")").click(); - }); - }); - $tr.append(fixTd); - } - that.$rightfixedBodyColumns.append($tr); - }); - } - }; + var split = ''.split; - BootstrapTable.prototype.resetView = function () { - _resetView.apply(this, Array.prototype.slice.apply(arguments)); + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins + return !Object('z').propertyIsEnumerable(0); + }) ? function (it) { + return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); + } : Object; - if (!this.options.fixedColumns && !this.options.rightFixedColumns) { - return; - } + // `RequireObjectCoercible` abstract operation + // https://tc39.github.io/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; + }; - clearTimeout(this.timeoutHeaderColumns_); - this.timeoutHeaderColumns_ = setTimeout($.proxy(this.fitHeaderColumns, this), this.$el.is(':hidden') ? 100 : 0); + // toObject with fallback for non-array-like ES3 strings - clearTimeout(this.timeoutBodyColumns_); - this.timeoutBodyColumns_ = setTimeout($.proxy(this.fitBodyColumns, this), this.$el.is(':hidden') ? 100 : 0); - }; - BootstrapTable.prototype.fitHeaderColumns = function () { - var that = this, - visibleFields = this.getVisibleFields(), - headerWidth = 0; - if (that.options.fixedColumns) { - this.$body.find('tr:first-child:not(.no-records-found) > *').each(function (i) { - var $this = $(this), - index = i; - if (i >= that.options.fixedNumber) { - return false; - } + var toIndexedObject = function (it) { + return indexedObject(requireObjectCoercible(it)); + }; - if (that.options.detailView && !that.options.cardView) { - index = i - 1; - } - that.$fixedHeader.find('thead th[data-field="' + visibleFields[index] + '"]') - .find('.fht-cell').width($this.innerWidth()); - headerWidth += $this.outerWidth(); - }); - this.$fixedHeader.width(headerWidth + 2).show(); - } - if (that.options.rightFixedColumns) { - headerWidth = 0; - var totalLength = $("#" + table.options.id).find('th').length; - this.$body.find('tr:first-child:not(.no-records-found) > *').each(function (i) { - var $this = $(this), - index = totalLength - i - 1; + var isObject = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; - if (i >= that.options.rightFixedNumber) { - return false; - } - headerWidth += $("#" + table.options.id).find("tr:first-child>th").eq(index).width(); - }); - this.$rightfixedBody.width(headerWidth - 1).show(); - } - }; + // `ToPrimitive` abstract operation + // https://tc39.github.io/ecma262/#sec-toprimitive + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + var toPrimitive = function (input, PREFERRED_STRING) { + if (!isObject(input)) return input; + var fn, val; + if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; + if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + throw TypeError("Can't convert object to primitive value"); + }; - BootstrapTable.prototype.fitBodyColumns = function () { - var that = this, - top = -(parseInt(this.$el.css('margin-top'))), - height = this.$tableBody.height(); + var hasOwnProperty = {}.hasOwnProperty; - if (that.options.fixedColumns) { - if (!this.$body.find('> tr[data-index]').length) { - this.$fixedBody.hide(); - return; - } - - if (!this.options.height) { - top = this.$fixedHeader.height()- 1; - height = height - top; - } + var has = function (it, key) { + return hasOwnProperty.call(it, key); + }; - this.$fixedBody.css({ - width: this.$fixedHeader.width(), - height: height, - top: top + 1 - }).show(); - - var bsHeight = $("#" + table.options.id).find("tr").eq(1).height(); - var fixedHeight = $("#" + table.options.id).parent().prev().find("tr").eq(1).height(); - var resizeHeight = bsHeight > fixedHeight ? bsHeight: fixedHeight; - this.$body.find('> tr').each(function (i) { - that.$fixedBody.find('tr:eq(' + i + ')').height(i == 0 ? resizeHeight - 1 : resizeHeight); - $("#" + table.options.id).find('tbody>tr:eq(' + i + ')').height(resizeHeight); - var thattds = this; - that.$fixedBody.find('tr:eq(' + i + ')').find('td').each(function (j) { - $(this).width($($(thattds).find('td')[j]).width() + 1); - }); - }); - - $("#" + table.options.id).on("check.bs.table uncheck.bs.table", function (e, rows, $element) { - var index= $element.data('index'); - $(this).find('.bs-checkbox').find('input[data-index="' + index + '"]').prop("checked", true); - var selectFixedItem = $('.left-fixed-body-columns input[name=btSelectItem]'); - var checkAll = selectFixedItem.filter(':enabled').length && - selectFixedItem.filter(':enabled').length === - selectFixedItem.filter(':enabled').filter(':checked').length; - $(".left-fixed-table-columns input[name=btSelectAll]").prop('checked', checkAll); - $('.fixed-table-body input[name=btSelectItem]').closest('tr').removeClass('selected'); - }); - - $("#" + table.options.id).off('click', '.fixed-table-body').on('click', '.th-inner', function (event) { - $.each(that.$fixedHeader.find('th'), function (i, th) { - $(th).find('.sortable').removeClass('desc asc').addClass('both'); - }); - }); + var document$1 = global_1.document; + // typeof document.createElement is 'object' in old IE + var EXISTS = isObject(document$1) && isObject(document$1.createElement); - // events - this.$fixedHeader.off('click', '.th-inner').on('click', '.th-inner', function (event) { - var target = $(this); - var $this = event.type === "keypress" ? $(event.currentTarget) : $(event.currentTarget).parent(), $this_ = that.$header.find('th').eq($this.index()); - - var sortOrder = ""; - if (table.options.sortName === $this.data('field')) { - sortOrder = table.options.sortOrder === 'asc' ? 'desc' : 'asc'; - } else { - sortOrder = $this.data('order') === 'asc' ? 'desc' : 'asc'; - } - table.options.sortOrder = sortOrder; - var sortName = $this.data('sortName') ? $this.data('sortName') : $this.data('field'); - if (target.parent().data().sortable) { - $.each(that.$fixedHeader.find('th'), function (i, th) { - $(th).find('.sortable').removeClass('desc asc').addClass(($(th).data('field') === sortName || $(th).data('sortName') === sortName) ? sortOrder : 'both'); - }); - } - }); - - this.$tableBody.on('scroll', function () { - that.$fixedBody.find('table').css('top', -$(this).scrollTop()); - }); - this.$body.find('> tr[data-index]').off('hover').hover(function () { - var index = $(this).data('index'); - that.$fixedBody.find('tr[data-index="' + index + '"]').addClass('hover'); - }, function () { - var index = $(this).data('index'); - that.$fixedBody.find('tr[data-index="' + index + '"]').removeClass('hover'); - }); - this.$fixedBody.find('tr[data-index]').off('hover').hover(function () { - var index = $(this).data('index'); - that.$body.find('tr[data-index="' + index + '"]').addClass('hover'); - }, function () { - var index = $(this).data('index'); - that.$body.find('> tr[data-index="' + index + '"]').removeClass('hover'); - }); - } - if (that.options.rightFixedColumns) { - if (!this.$body.find('> tr[data-index]').length) { - this.$rightfixedBody.hide(); - return; - } + var documentCreateElement = function (it) { + return EXISTS ? document$1.createElement(it) : {}; + }; - this.$body.find('> tr').each(function (i) { - that.$rightfixedBody.find('tbody tr:eq(' + i + ')').height($(this).height()); - }); + // Thank's IE8 for his funny defineProperty + var ie8DomDefine = !descriptors && !fails(function () { + return Object.defineProperty(documentCreateElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); - //// events - this.$tableBody.on('scroll', function () { - that.$rightfixedBody.find('table').css('top', -$(this).scrollTop()); - }); - this.$body.find('> tr[data-index]').off('hover').hover(function () { - var index = $(this).data('index'); - that.$rightfixedBody.find('tr[data-index="' + index + '"]').addClass('hover'); - }, function () { - var index = $(this).data('index'); - that.$rightfixedBody.find('tr[data-index="' + index + '"]').removeClass('hover'); - }); - this.$rightfixedBody.find('tr[data-index]').off('hover').hover(function () { - var index = $(this).data('index'); - that.$body.find('tr[data-index="' + index + '"]').addClass('hover'); - }, function () { - var index = $(this).data('index'); - that.$body.find('> tr[data-index="' + index + '"]').removeClass('hover'); - }); - } - }; + var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -})(jQuery); \ No newline at end of file + // `Object.getOwnPropertyDescriptor` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor + var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject(O); + P = toPrimitive(P, true); + if (ie8DomDefine) try { + return nativeGetOwnPropertyDescriptor(O, P); + } catch (error) { /* empty */ } + if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); + }; + + var objectGetOwnPropertyDescriptor = { + f: f$1 + }; + + var anObject = function (it) { + if (!isObject(it)) { + throw TypeError(String(it) + ' is not an object'); + } return it; + }; + + var nativeDefineProperty = Object.defineProperty; + + // `Object.defineProperty` method + // https://tc39.github.io/ecma262/#sec-object.defineproperty + var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (ie8DomDefine) try { + return nativeDefineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var objectDefineProperty = { + f: f$2 + }; + + var createNonEnumerableProperty = descriptors ? function (object, key, value) { + return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var setGlobal = function (key, value) { + try { + createNonEnumerableProperty(global_1, key, value); + } catch (error) { + global_1[key] = value; + } return value; + }; + + var SHARED = '__core-js_shared__'; + var store = global_1[SHARED] || setGlobal(SHARED, {}); + + var sharedStore = store; + + var functionToString = Function.toString; + + // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper + if (typeof sharedStore.inspectSource != 'function') { + sharedStore.inspectSource = function (it) { + return functionToString.call(it); + }; + } + + var inspectSource = sharedStore.inspectSource; + + var WeakMap = global_1.WeakMap; + + var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); + + var shared = createCommonjsModule(function (module) { + (module.exports = function (key, value) { + return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.6.0', + mode: 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' + }); + }); + + var id = 0; + var postfix = Math.random(); + + var uid = function (key) { + return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); + }; + + var keys = shared('keys'); + + var sharedKey = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys = {}; + + var WeakMap$1 = global_1.WeakMap; + var set, get, has$1; + + var enforce = function (it) { + return has$1(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) { + throw TypeError('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (nativeWeakMap) { + var store$1 = new WeakMap$1(); + var wmget = store$1.get; + var wmhas = store$1.has; + var wmset = store$1.set; + set = function (it, metadata) { + wmset.call(store$1, it, metadata); + return metadata; + }; + get = function (it) { + return wmget.call(store$1, it) || {}; + }; + has$1 = function (it) { + return wmhas.call(store$1, it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys[STATE] = true; + set = function (it, metadata) { + createNonEnumerableProperty(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return has(it, STATE) ? it[STATE] : {}; + }; + has$1 = function (it) { + return has(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has$1, + enforce: enforce, + getterFor: getterFor + }; + + var redefine = createCommonjsModule(function (module) { + var getInternalState = internalState.get; + var enforceInternalState = internalState.enforce; + var TEMPLATE = String(String).split('String'); + + (module.exports = function (O, key, value, options) { + var unsafe = options ? !!options.unsafe : false; + var simple = options ? !!options.enumerable : false; + var noTargetGet = options ? !!options.noTargetGet : false; + if (typeof value == 'function') { + if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); + enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); + } + if (O === global_1) { + if (simple) O[key] = value; + else setGlobal(key, value); + return; + } else if (!unsafe) { + delete O[key]; + } else if (!noTargetGet && O[key]) { + simple = true; + } + if (simple) O[key] = value; + else createNonEnumerableProperty(O, key, value); + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative + })(Function.prototype, 'toString', function toString() { + return typeof this == 'function' && getInternalState(this).source || inspectSource(this); + }); + }); + + var path = global_1; + + var aFunction = function (variable) { + return typeof variable == 'function' ? variable : undefined; + }; + + var getBuiltIn = function (namespace, method) { + return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) + : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; + }; + + var ceil = Math.ceil; + var floor = Math.floor; + + // `ToInteger` abstract operation + // https://tc39.github.io/ecma262/#sec-tointeger + var toInteger = function (argument) { + return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); + }; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.github.io/ecma262/#sec-tolength + var toLength = function (argument) { + return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var max = Math.max; + var min$1 = Math.min; + + // Helper for a popular repeating case of the spec: + // Let integer be ? ToInteger(index). + // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). + var toAbsoluteIndex = function (index, length) { + var integer = toInteger(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; + }; + + var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.github.io/ecma262/#sec-array.prototype.includes + includes: createMethod(true), + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var indexOf = arrayIncludes.indexOf; + + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~indexOf(result, key) || result.push(key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); + + // `Object.getOwnPropertyNames` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertynames + var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return objectKeysInternal(O, hiddenKeys$1); + }; + + var objectGetOwnPropertyNames = { + f: f$3 + }; + + var f$4 = Object.getOwnPropertySymbols; + + var objectGetOwnPropertySymbols = { + f: f$4 + }; + + // all object keys, includes non-enumerable and symbols + var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = objectGetOwnPropertyNames.f(anObject(it)); + var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; + return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; + }; + + var copyConstructorProperties = function (target, source) { + var keys = ownKeys(source); + var defineProperty = objectDefineProperty.f; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + }; + + var replacement = /#|\.prototype\./; + + var isForced = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : typeof detection == 'function' ? fails(detection) + : !!detection; + }; + + var normalize = isForced.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced.data = {}; + var NATIVE = isForced.NATIVE = 'N'; + var POLYFILL = isForced.POLYFILL = 'P'; + + var isForced_1 = isForced; + + var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + + + + + + + /* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.noTargetGet - prevent calling a getter on target + */ + var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global_1; + } else if (STATIC) { + target = global_1[TARGET] || setGlobal(TARGET, {}); + } else { + target = (global_1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.noTargetGet) { + descriptor = getOwnPropertyDescriptor$1(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty === typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + // extend global + redefine(target, key, sourceProperty, options); + } + }; + + // `IsArray` abstract operation + // https://tc39.github.io/ecma262/#sec-isarray + var isArray = Array.isArray || function isArray(arg) { + return classofRaw(arg) == 'Array'; + }; + + // `ToObject` abstract operation + // https://tc39.github.io/ecma262/#sec-toobject + var toObject = function (argument) { + return Object(requireObjectCoercible(argument)); + }; + + var createProperty = function (object, key, value) { + var propertyKey = toPrimitive(key); + if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { + // Chrome 38 Symbol has incorrect toString conversion + // eslint-disable-next-line no-undef + return !String(Symbol()); + }); + + var useSymbolAsUid = nativeSymbol + // eslint-disable-next-line no-undef + && !Symbol.sham + // eslint-disable-next-line no-undef + && typeof Symbol() == 'symbol'; + + var WellKnownSymbolsStore = shared('wks'); + var Symbol$1 = global_1.Symbol; + var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid; + + var wellKnownSymbol = function (name) { + if (!has(WellKnownSymbolsStore, name)) { + if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; + else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var SPECIES = wellKnownSymbol('species'); + + // `ArraySpeciesCreate` abstract operation + // https://tc39.github.io/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate = function (originalArray, length) { + var C; + if (isArray(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; + else if (isObject(C)) { + C = C[SPECIES]; + if (C === null) C = undefined; + } + } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); + }; + + var userAgent = getBuiltIn('navigator', 'userAgent') || ''; + + var process = global_1.process; + var versions = process && process.versions; + var v8 = versions && versions.v8; + var match, version; + + if (v8) { + match = v8.split('.'); + version = match[0] + match[1]; + } else if (userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = match[1]; + } + } + + var v8Version = version && +version; + + var SPECIES$1 = wellKnownSymbol('species'); + + var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return v8Version >= 51 || !fails(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$1] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; + var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; + + // `Array.prototype.concat` method + // https://tc39.github.io/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + _export({ target: 'Array', proto: true, forced: FORCED }, { + concat: function concat(arg) { // eslint-disable-line no-unused-vars + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = toLength(E.length); + if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + var aFunction$1 = function (it) { + if (typeof it != 'function') { + throw TypeError(String(it) + ' is not a function'); + } return it; + }; + + // optional / simple context binding + var bindContext = function (fn, that, length) { + aFunction$1(fn); + if (that === undefined) return fn; + switch (length) { + case 0: return function () { + return fn.call(that); + }; + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; + }; + + var push = [].push; + + // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation + var createMethod$1 = function (TYPE) { + var IS_MAP = TYPE == 1; + var IS_FILTER = TYPE == 2; + var IS_SOME = TYPE == 3; + var IS_EVERY = TYPE == 4; + var IS_FIND_INDEX = TYPE == 6; + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject($this); + var self = indexedObject(O); + var boundFunction = bindContext(callbackfn, that, 3); + var length = toLength(self.length); + var index = 0; + var create = specificCreate || arraySpeciesCreate; + var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; + var value, result; + for (;length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: return true; // some + case 5: return value; // find + case 6: return index; // findIndex + case 2: push.call(target, value); // filter + } else if (IS_EVERY) return false; // every + } + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; + }; + + var arrayIteration = { + // `Array.prototype.forEach` method + // https://tc39.github.io/ecma262/#sec-array.prototype.foreach + forEach: createMethod$1(0), + // `Array.prototype.map` method + // https://tc39.github.io/ecma262/#sec-array.prototype.map + map: createMethod$1(1), + // `Array.prototype.filter` method + // https://tc39.github.io/ecma262/#sec-array.prototype.filter + filter: createMethod$1(2), + // `Array.prototype.some` method + // https://tc39.github.io/ecma262/#sec-array.prototype.some + some: createMethod$1(3), + // `Array.prototype.every` method + // https://tc39.github.io/ecma262/#sec-array.prototype.every + every: createMethod$1(4), + // `Array.prototype.find` method + // https://tc39.github.io/ecma262/#sec-array.prototype.find + find: createMethod$1(5), + // `Array.prototype.findIndex` method + // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod$1(6) + }; + + // `Object.keys` method + // https://tc39.github.io/ecma262/#sec-object.keys + var objectKeys = Object.keys || function keys(O) { + return objectKeysInternal(O, enumBugKeys); + }; + + // `Object.defineProperties` method + // https://tc39.github.io/ecma262/#sec-object.defineproperties + var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = objectKeys(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]); + return O; + }; + + var html = getBuiltIn('document', 'documentElement'); + + var GT = '>'; + var LT = '<'; + var PROTOTYPE = 'prototype'; + var SCRIPT = 'script'; + var IE_PROTO = sharedKey('IE_PROTO'); + + var EmptyConstructor = function () { /* empty */ }; + + var scriptTag = function (content) { + return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; + }; + + // Create object with fake `null` prototype: use ActiveX Object with cleared prototype + var NullProtoObjectViaActiveX = function (activeXDocument) { + activeXDocument.write(scriptTag('')); + activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + activeXDocument = null; // avoid memory leak + return temp; + }; + + // Create object with fake `null` prototype: use iframe Object with cleared prototype + var NullProtoObjectViaIFrame = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = documentCreateElement('iframe'); + var JS = 'java' + SCRIPT + ':'; + var iframeDocument; + iframe.style.display = 'none'; + html.appendChild(iframe); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(scriptTag('document.F=Object')); + iframeDocument.close(); + return iframeDocument.F; + }; + + // Check for document.domain and active x support + // No need to use active x approach when document.domain is not set + // see https://github.com/es-shims/es5-shim/issues/150 + // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 + // avoid IE GC bug + var activeXDocument; + var NullProtoObject = function () { + try { + /* global ActiveXObject */ + activeXDocument = document.domain && new ActiveXObject('htmlfile'); + } catch (error) { /* ignore */ } + NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); + var length = enumBugKeys.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; + return NullProtoObject(); + }; + + hiddenKeys[IE_PROTO] = true; + + // `Object.create` method + // https://tc39.github.io/ecma262/#sec-object.create + var objectCreate = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + EmptyConstructor[PROTOTYPE] = anObject(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = NullProtoObject(); + return Properties === undefined ? result : objectDefineProperties(result, Properties); + }; + + var UNSCOPABLES = wellKnownSymbol('unscopables'); + var ArrayPrototype = Array.prototype; + + // Array.prototype[@@unscopables] + // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables + if (ArrayPrototype[UNSCOPABLES] == undefined) { + objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, { + configurable: true, + value: objectCreate(null) + }); + } + + // add a key to Array.prototype[@@unscopables] + var addToUnscopables = function (key) { + ArrayPrototype[UNSCOPABLES][key] = true; + }; + + var $find = arrayIteration.find; + + + var FIND = 'find'; + var SKIPS_HOLES = true; + + // Shouldn't skip holes + if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); + + // `Array.prototype.find` method + // https://tc39.github.io/ecma262/#sec-array.prototype.find + _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables(FIND); + + var sloppyArrayMethod = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !method || !fails(function () { + // eslint-disable-next-line no-useless-call,no-throw-literal + method.call(null, argument || function () { throw 1; }, 1); + }); + }; + + var $indexOf = arrayIncludes.indexOf; + + + var nativeIndexOf = [].indexOf; + + var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0; + var SLOPPY_METHOD = sloppyArrayMethod('indexOf'); + + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, { + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { + return NEGATIVE_ZERO + // convert -0 to +0 + ? nativeIndexOf.apply(this, arguments) || 0 + : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + var nativeReverse = [].reverse; + var test = [1, 2]; + + // `Array.prototype.reverse` method + // https://tc39.github.io/ecma262/#sec-array.prototype.reverse + // fix for Safari 12.0 bug + // https://bugs.webkit.org/show_bug.cgi?id=188794 + _export({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, { + reverse: function reverse() { + // eslint-disable-next-line no-self-assign + if (isArray(this)) this.length = this.length; + return nativeReverse.call(this); + } + }); + + // a string of all valid unicode whitespaces + // eslint-disable-next-line max-len + var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; + + var whitespace = '[' + whitespaces + ']'; + var ltrim = RegExp('^' + whitespace + whitespace + '*'); + var rtrim = RegExp(whitespace + whitespace + '*$'); + + // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation + var createMethod$2 = function (TYPE) { + return function ($this) { + var string = String(requireObjectCoercible($this)); + if (TYPE & 1) string = string.replace(ltrim, ''); + if (TYPE & 2) string = string.replace(rtrim, ''); + return string; + }; + }; + + var stringTrim = { + // `String.prototype.{ trimLeft, trimStart }` methods + // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart + start: createMethod$2(1), + // `String.prototype.{ trimRight, trimEnd }` methods + // https://tc39.github.io/ecma262/#sec-string.prototype.trimend + end: createMethod$2(2), + // `String.prototype.trim` method + // https://tc39.github.io/ecma262/#sec-string.prototype.trim + trim: createMethod$2(3) + }; + + var trim = stringTrim.trim; + + + var nativeParseInt = global_1.parseInt; + var hex = /^[+-]?0[Xx]/; + var FORCED$1 = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22; + + // `parseInt` method + // https://tc39.github.io/ecma262/#sec-parseint-string-radix + var _parseInt = FORCED$1 ? function parseInt(string, radix) { + var S = trim(String(string)); + return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10)); + } : nativeParseInt; + + // `parseInt` method + // https://tc39.github.io/ecma262/#sec-parseint-string-radix + _export({ global: true, forced: parseInt != _parseInt }, { + parseInt: _parseInt + }); + + function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); + } + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); + } + + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); + } + + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; + } + + function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); + } + + function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = _getPrototypeOf(object); + if (object === null) break; + } + + return object; + } + + function _get(target, property, receiver) { + if (typeof Reflect !== "undefined" && Reflect.get) { + _get = Reflect.get; + } else { + _get = function _get(target, property, receiver) { + var base = _superPropBase(target, property); + + if (!base) return; + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) { + return desc.get.call(receiver); + } + + return desc.value; + }; + } + + return _get(target, property, receiver || target); + } + + /** + * @author zhixin wen + */ + + var Utils = $.fn.bootstrapTable.utils; // Reasonable defaults + + var PIXEL_STEP = 10; + var LINE_HEIGHT = 40; + var PAGE_HEIGHT = 800; + + function normalizeWheel(event) { + var sX = 0; // spinX + + var sY = 0; // spinY + + var pX = 0; // pixelX + + var pY = 0; // pixelY + // Legacy + + if ('detail' in event) { + sY = event.detail; + } + + if ('wheelDelta' in event) { + sY = -event.wheelDelta / 120; + } + + if ('wheelDeltaY' in event) { + sY = -event.wheelDeltaY / 120; + } + + if ('wheelDeltaX' in event) { + sX = -event.wheelDeltaX / 120; + } // side scrolling on FF with DOMMouseScroll + + + if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) { + sX = sY; + sY = 0; + } + + pX = sX * PIXEL_STEP; + pY = sY * PIXEL_STEP; + + if ('deltaY' in event) { + pY = event.deltaY; + } + + if ('deltaX' in event) { + pX = event.deltaX; + } + + if ((pX || pY) && event.deltaMode) { + if (event.deltaMode === 1) { + // delta in LINE units + pX *= LINE_HEIGHT; + pY *= LINE_HEIGHT; + } else { + // delta in PAGE units + pX *= PAGE_HEIGHT; + pY *= PAGE_HEIGHT; + } + } // Fall-back if spin cannot be determined + + + if (pX && !sX) { + sX = pX < 1 ? -1 : 1; + } + + if (pY && !sY) { + sY = pY < 1 ? -1 : 1; + } + + return { + spinX: sX, + spinY: sY, + pixelX: pX, + pixelY: pY + }; + } + + $.extend($.fn.bootstrapTable.defaults, { + fixedColumns: false, + fixedNumber: 0, + fixedRightNumber: 0 + }); + + $.BootstrapTable = + /*#__PURE__*/ + function (_$$BootstrapTable) { + _inherits(_class, _$$BootstrapTable); + + function _class() { + _classCallCheck(this, _class); + + return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments)); + } + + _createClass(_class, [{ + key: "fixedColumnsSupported", + value: function fixedColumnsSupported() { + return this.options.fixedColumns && !this.options.detailView && !this.options.cardView; + } + }, { + key: "initContainer", + value: function initContainer() { + _get(_getPrototypeOf(_class.prototype), "initContainer", this).call(this); + + if (!this.fixedColumnsSupported()) { + return; + } + + if (this.options.fixedNumber) { + this.$tableContainer.append('
    '); + this.$fixedColumns = this.$tableContainer.find('.fixed-columns'); + } + + if (this.options.fixedRightNumber) { + this.$tableContainer.append('
    '); + this.$fixedColumnsRight = this.$tableContainer.find('.fixed-columns-right'); + } + } + }, { + key: "initBody", + value: function initBody() { + var _get2; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args)); + + if (!this.fixedColumnsSupported()) { + return; + } + + if (this.options.showHeader && this.options.height) { + return; + } + + this.initFixedColumnsBody(); + this.initFixedColumnsEvents(); + } + }, { + key: "trigger", + value: function trigger() { + var _get3; + + for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { + args[_key2] = arguments[_key2]; + } + + (_get3 = _get(_getPrototypeOf(_class.prototype), "trigger", this)).call.apply(_get3, [this].concat(args)); + + if (!this.fixedColumnsSupported()) { + return; + } + + if (args[0] === 'post-header') { + this.initFixedColumnsHeader(); + } else if (args[0] === 'scroll-body') { + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedBody.scrollTop(this.$tableBody.scrollTop()); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop()); + } + } + } + }, { + key: "updateSelected", + value: function updateSelected() { + var _this = this; + + _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this); + + if (!this.fixedColumnsSupported()) { + return; + } + + this.$tableBody.find('tr').each(function (i, el) { + var $el = $(el); + var index = $el.data('index'); + var classes = $el.attr('class'); + var inputSelector = "[name=\"".concat(_this.options.selectItemName, "\"]"); + var $input = $el.find(inputSelector); + + if (_typeof(index) === undefined) { + return; + } + + var updateFixedBody = function updateFixedBody($fixedHeader, $fixedBody) { + var $tr = $fixedBody.find("tr[data-index=\"".concat(index, "\"]")); + $tr.attr('class', classes); + + if ($input.length) { + $tr.find(inputSelector).prop('checked', $input.prop('checked')); + } + + if (_this.$selectAll.length) { + $fixedHeader.add($fixedBody).find('[name="btSelectAll"]').prop('checked', _this.$selectAll.prop('checked')); + } + }; + + if (_this.$fixedBody && _this.options.fixedNumber) { + updateFixedBody(_this.$fixedHeader, _this.$fixedBody); + } + + if (_this.$fixedBodyRight && _this.options.fixedRightNumber) { + updateFixedBody(_this.$fixedHeaderRight, _this.$fixedBodyRight); + } + }); + } + }, { + key: "hideLoading", + value: function hideLoading() { + _get(_getPrototypeOf(_class.prototype), "hideLoading", this).call(this); + + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedColumns.find('.fixed-table-loading').hide(); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + this.$fixedColumnsRight.find('.fixed-table-loading').hide(); + } + } + }, { + key: "initFixedColumnsHeader", + value: function initFixedColumnsHeader() { + var _this2 = this; + + if (this.options.height) { + this.needFixedColumns = this.$tableHeader.outerWidth(true) < this.$tableHeader.find('table').outerWidth(true); + } else { + this.needFixedColumns = this.$tableBody.outerWidth(true) < this.$tableBody.find('table').outerWidth(true); + } + + var initFixedHeader = function initFixedHeader($fixedColumns, isRight) { + $fixedColumns.find('.fixed-table-header').remove(); + $fixedColumns.append(_this2.$tableHeader.clone(true)); + $fixedColumns.css({ + width: _this2.getFixedColumnsWidth(isRight) + }); + return $fixedColumns.find('.fixed-table-header'); + }; + + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedHeader = initFixedHeader(this.$fixedColumns); + this.$fixedHeader.css('margin-right', ''); + } else if (this.$fixedColumns) { + this.$fixedColumns.html('').css('width', ''); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + this.$fixedHeaderRight = initFixedHeader(this.$fixedColumnsRight, true); + this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find('table').width()); + } else if (this.$fixedColumnsRight) { + this.$fixedColumnsRight.html('').css('width', ''); + } + + this.initFixedColumnsBody(); + this.initFixedColumnsEvents(); + } + }, { + key: "initFixedColumnsBody", + value: function initFixedColumnsBody() { + var _this3 = this; + + var initFixedBody = function initFixedBody($fixedColumns, $fixedHeader) { + $fixedColumns.find('.fixed-table-body').remove(); + $fixedColumns.append(_this3.$tableBody.clone(true)); + var $fixedBody = $fixedColumns.find('.fixed-table-body'); + + var tableBody = _this3.$tableBody.get(0); + + var scrollHeight = tableBody.scrollWidth > tableBody.clientWidth ? Utils.getScrollBarWidth() : 0; + var height = _this3.$tableContainer.outerHeight(true) - scrollHeight - 1; + $fixedColumns.css({ + height: height + }); + $fixedBody.css({ + height: height - $fixedHeader.height() + }); + return $fixedBody; + }; + + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedBody = initFixedBody(this.$fixedColumns, this.$fixedHeader); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + this.$fixedBodyRight = initFixedBody(this.$fixedColumnsRight, this.$fixedHeaderRight); + this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find('table').width()); + this.$fixedBodyRight.css('overflow-y', this.options.height ? 'auto' : 'hidden'); + } + } + }, { + key: "getFixedColumnsWidth", + value: function getFixedColumnsWidth(isRight) { + var visibleFields = this.getVisibleFields(); + var width = 0; + var fixedNumber = this.options.fixedNumber; + var marginRight = 0; + + if (isRight) { + visibleFields = visibleFields.reverse(); + fixedNumber = this.options.fixedRightNumber; + marginRight = parseInt(this.$tableHeader.css('margin-right'), 10); + } + + for (var i = 0; i < fixedNumber; i++) { + width += this.$header.find("th[data-field=\"".concat(visibleFields[i], "\"]")).outerWidth(true); + } + + return width + marginRight + 1; + } + }, { + key: "initFixedColumnsEvents", + value: function initFixedColumnsEvents() { + var _this4 = this; + + var toggleHover = function toggleHover(e, toggle) { + var tr = "tr[data-index=\"".concat($(e.currentTarget).data('index'), "\"]"); + + var $trs = _this4.$tableBody.find(tr); + + if (_this4.$fixedBody) { + $trs = $trs.add(_this4.$fixedBody.find(tr)); + } + + if (_this4.$fixedBodyRight) { + $trs = $trs.add(_this4.$fixedBodyRight.find(tr)); + } + + $trs.css('background-color', toggle ? $(e.currentTarget).css('background-color') : ''); + }; + + this.$tableBody.find('tr').hover(function (e) { + toggleHover(e, true); + }, function (e) { + toggleHover(e, false); + }); + var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + var mousewheel = isFirefox ? 'DOMMouseScroll' : 'mousewheel'; + + var updateScroll = function updateScroll(e, fixedBody) { + var normalized = normalizeWheel(e); + var deltaY = Math.ceil(normalized.pixelY); + var top = _this4.$tableBody.scrollTop() + deltaY; + + if (deltaY < 0 && top > 0 || deltaY > 0 && top < fixedBody.scrollHeight - fixedBody.clientHeight) { + e.preventDefault(); + } + + _this4.$tableBody.scrollTop(top); + + if (_this4.$fixedBody) { + _this4.$fixedBody.scrollTop(top); + } + + if (_this4.$fixedBodyRight) { + _this4.$fixedBodyRight.scrollTop(top); + } + }; + + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedBody.find('tr').hover(function (e) { + toggleHover(e, true); + }, function (e) { + toggleHover(e, false); + }); + this.$fixedBody[0].addEventListener(mousewheel, function (e) { + updateScroll(e, _this4.$fixedBody[0]); + }); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + this.$fixedBodyRight.find('tr').hover(function (e) { + toggleHover(e, true); + }, function (e) { + toggleHover(e, false); + }); + this.$fixedBodyRight.off('scroll').on('scroll', function () { + var top = _this4.$fixedBodyRight.scrollTop(); + + _this4.$tableBody.scrollTop(top); + + if (_this4.$fixedBody) { + _this4.$fixedBody.scrollTop(top); + } + }); + } + + if (this.options.filterControl) { + $(this.$fixedColumns).off('keyup change').on('keyup change', function (e) { + var $target = $(e.target); + var value = $target.val(); + var field = $target.parents('th').data('field'); + + var $coreTh = _this4.$header.find("th[data-field=\"".concat(field, "\"]")); + + if ($target.is('input')) { + $coreTh.find('input').val(value); + } else if ($target.is('select')) { + var $select = $coreTh.find('select'); + $select.find('option[selected]').removeAttr('selected'); + $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true); + } + + _this4.triggerSearch(); + }); + } + } + }, { + key: "renderStickyHeader", + value: function renderStickyHeader() { + if (!this.options.stickyHeader) { + return; + } + + this.$stickyContainer = this.$container.find('.sticky-header-container'); + + _get(_getPrototypeOf(_class.prototype), "renderStickyHeader", this).call(this); + + if (this.needFixedColumns && this.options.fixedNumber) { + this.$fixedColumns.css('z-index', 101).find('.sticky-header-container').css('right', '').width(this.$fixedColumns.outerWidth()); + } + + if (this.needFixedColumns && this.options.fixedRightNumber) { + var $stickyHeaderContainerRight = this.$fixedColumnsRight.find('.sticky-header-container'); + this.$fixedColumnsRight.css('z-index', 101); + $stickyHeaderContainerRight.css('left', '').scrollLeft($stickyHeaderContainerRight.find('.table').outerWidth()).width(this.$fixedColumnsRight.outerWidth()); + } + } + }, { + key: "matchPositionX", + value: function matchPositionX() { + if (!this.options.stickyHeader) { + return; + } + + this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft()); + } + }]); + + return _class; + }($.BootstrapTable); + +}))); diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.min.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.min.js new file mode 100644 index 00000000..9dcb1f28 --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.min.js @@ -0,0 +1,10 @@ +/** + * 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.17.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("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var i=function(t){return t&&t.Math==Math&&t},r=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},f=!o((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a={f:s&&!u.call({1:2},1)?function(t){var e=s(this,t);return!!e&&e.enumerable}:u},c=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,d=function(t){return l.call(t).slice(8,-1)},h="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?h.call(t,""):Object(t)}:Object,y=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return p(y(t))},x=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!x(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!x(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!x(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!x(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,v=function(t,e){return b.call(t,e)},$=r.document,w=x($)&&x($.createElement),C=function(t){return w?$.createElement(t):{}},O=!f&&!o((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,B={f:f?S:function(t,e){if(t=g(t),e=m(e,!0),O)try{return S(t,e)}catch(t){}if(v(t,e))return c(!a.f.call(t,e),t[e])}},R=function(t){if(!x(t))throw TypeError(String(t)+" is not an object");return t},j=Object.defineProperty,k={f:f?j:function(t,e,n){if(R(t),e=m(e,!0),R(n),O)try{return j(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=f?function(t,e,n){return k.f(t,e,c(1,n))}:function(t,e,n){return t[e]=n,t},F=function(t,e){try{T(r,t,e)}catch(n){r[t]=e}return e},E=r["__core-js_shared__"]||F("__core-js_shared__",{}),N=Function.toString;"function"!=typeof E.inspectSource&&(E.inspectSource=function(t){return N.call(t)});var P,A,H,_=E.inspectSource,M=r.WeakMap,W="function"==typeof M&&/native code/.test(_(M)),I=n((function(t){(t.exports=function(t,e){return E[t]||(E[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),L=0,D=Math.random(),X=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++L+D).toString(36)},Y=I("keys"),q=function(t){return Y[t]||(Y[t]=X(t))},z={},V=r.WeakMap;if(W){var G=new V,K=G.get,Q=G.has,Z=G.set;P=function(t,e){return Z.call(G,t,e),e},A=function(t){return K.call(G,t)||{}},H=function(t){return Q.call(G,t)}}else{var J=q("state");z[J]=!0,P=function(t,e){return T(t,J,e),e},A=function(t){return v(t,J)?t[J]:{}},H=function(t){return v(t,J)}}var U,tt,et={set:P,get:A,has:H,enforce:function(t){return H(t)?A(t):P(t,{})},getterFor:function(t){return function(e){var n;if(!x(e)||(n=A(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,i=String(String).split("String");(t.exports=function(t,e,o,f){var u=!!f&&!!f.unsafe,s=!!f&&!!f.enumerable,a=!!f&&!!f.noTargetGet;"function"==typeof o&&("string"!=typeof e||v(o,"name")||T(o,"name",e),n(o).source=i.join("string"==typeof e?e:"")),t!==r?(u?!a&&t[e]&&(s=!0):delete t[e],s?t[e]=o:T(t,e,o)):s?t[e]=o:F(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||_(this)}))})),it=r,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(it[t])||rt(r[t]):it[t]&&it[t][e]||r[t]&&r[t][e]},ft=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:ft)(t)},at=Math.min,ct=function(t){return t>0?at(st(t),9007199254740991):0},lt=Math.max,dt=Math.min,ht=function(t){return function(e,n,i){var r,o=g(e),f=ct(o.length),u=function(t,e){var n=st(t);return n<0?lt(n+e,0):dt(n,e)}(i,f);if(t&&n!=n){for(;f>u;)if((r=o[u++])!=r)return!0}else for(;f>u;u++)if((t||u in o)&&o[u]===n)return t||u||0;return!t&&-1}},pt={includes:ht(!0),indexOf:ht(!1)},yt=pt.indexOf,gt=function(t,e){var n,i=g(t),r=0,o=[];for(n in i)!v(z,n)&&v(i,n)&&o.push(n);for(;e.length>r;)v(i,n=e[r++])&&(~yt(o,n)||o.push(n));return o},xt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mt=xt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return gt(t,mt)}},vt={f:Object.getOwnPropertySymbols},$t=ot("Reflect","ownKeys")||function(t){var e=bt.f(R(t)),n=vt.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=$t(e),i=k.f,r=B.f,o=0;o=74)&&(U=Xt.match(/Chrome\/(\d+)/))&&(tt=U[1]);var Vt,Gt=tt&&+tt,Kt=It("species"),Qt=It("isConcatSpreadable"),Zt=Gt>=51||!o((function(){var t=[];return t[Qt]=!1,t.concat()[0]!==t})),Jt=(Vt="concat",Gt>=51||!o((function(){var t=[];return(t.constructor={})[Kt]=function(){return{foo:1}},1!==t[Vt](Boolean).foo}))),Ut=function(t){if(!x(t))return!1;var e=t[Qt];return void 0!==e?!!e:Et(t)};Ft({target:"Array",proto:!0,forced:!Zt||!Jt},{concat:function(t){var e,n,i,r,o,f=Nt(this),u=Dt(f,0),s=0;for(e=-1,i=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Pt(u,s++,o)}return u.length=s,u}});var te,ee=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},ne=[].push,ie=function(t){var e=1==t,n=2==t,i=3==t,r=4==t,o=6==t,f=5==t||o;return function(u,s,a,c){for(var l,d,h=Nt(u),y=p(h),g=ee(s,a,3),x=ct(y.length),m=0,b=c||Dt,v=e?b(u,x):n?b(u,0):void 0;x>m;m++)if((f||m in y)&&(d=g(l=y[m],m,h),t))if(e)v[m]=d;else if(d)switch(t){case 3:return!0;case 5:return l;case 6:return m;case 2:ne.call(v,l)}else if(r)return!1;return o?-1:i||r?r:v}},re={forEach:ie(0),map:ie(1),filter:ie(2),some:ie(3),every:ie(4),find:ie(5),findIndex:ie(6)},oe=Object.keys||function(t){return gt(t,xt)},fe=f?Object.defineProperties:function(t,e){R(t);for(var n,i=oe(e),r=i.length,o=0;r>o;)k.f(t,n=i[o++],e[n]);return t},ue=ot("document","documentElement"),se=q("IE_PROTO"),ae=function(){},ce=function(t){return" - - - + + + @@ -182,7 +182,7 @@
    - +
    @@ -193,5 +193,5 @@
    - +
    From 18d80cc78ea9d7b8edfc38a09897e53865f74ded Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 27 Jul 2020 09:17:30 +0800 Subject: [PATCH 05/20] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E8=A1=8C=E7=BC=96=E8=BE=91&=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E9=80=82=E5=BA=94=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editable/bootstrap-table-editable.js | 2558 ++++++++++++++++- .../editable/bootstrap-table-editable.min.js | 10 + .../mobile/bootstrap-table-mobile.js | 1301 ++++++++- .../toolbar/bootstrap-table-toolbar.js | 211 -- .../toolbar/bootstrap-table-toolbar.min.js | 7 - 5 files changed, 3671 insertions(+), 416 deletions(-) create mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.min.js delete mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js delete mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.min.js diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.js index 978845b9..2dfd31e2 100644 --- a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.js +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.js @@ -1,146 +1,2462 @@ -/** - * @author zhixin wen - * extensions: https://github.com/vitalets/x-editable - */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) : + typeof define === 'function' && define.amd ? define(['jquery'], factory) : + (global = global || self, factory(global.jQuery)); +}(this, (function ($) { 'use strict'; -(function($) { + $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $; - 'use strict'; + var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - $.extend($.fn.bootstrapTable.defaults, { - editable: true, - onEditableInit: function() { - return false; - }, - onEditableSave: function(field, row, oldValue, $el) { - return false; - }, - onEditableShown: function(field, row, $el, editable) { - return false; - }, - onEditableHidden: function(field, row, $el, reason) { - return false; - } - }); + function createCommonjsModule(fn, module) { + return module = { exports: {} }, fn(module, module.exports), module.exports; + } - $.extend($.fn.bootstrapTable.Constructor.EVENTS, { - 'editable-init.bs.table': 'onEditableInit', - 'editable-save.bs.table': 'onEditableSave', - 'editable-shown.bs.table': 'onEditableShown', - 'editable-hidden.bs.table': 'onEditableHidden' - }); + var check = function (it) { + return it && it.Math == Math && it; + }; - var BootstrapTable = $.fn.bootstrapTable.Constructor, - _initTable = BootstrapTable.prototype.initTable, - _initBody = BootstrapTable.prototype.initBody; + // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 + var global_1 = + // eslint-disable-next-line no-undef + check(typeof globalThis == 'object' && globalThis) || + check(typeof window == 'object' && window) || + check(typeof self == 'object' && self) || + check(typeof commonjsGlobal == 'object' && commonjsGlobal) || + // eslint-disable-next-line no-new-func + Function('return this')(); - BootstrapTable.prototype.initTable = function() { - var that = this; - _initTable.apply(this, Array.prototype.slice.apply(arguments)); + var fails = function (exec) { + try { + return !!exec(); + } catch (error) { + return true; + } + }; - if (!this.options.editable) { - return; - } + // Thank's IE8 for his funny defineProperty + var descriptors = !fails(function () { + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; + }); - $.each(this.columns, function(i, column) { - if (!column.editable) { - return; - } + var nativePropertyIsEnumerable = {}.propertyIsEnumerable; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var editableOptions = {}, - editableDataMarkup = [], - editableDataPrefix = 'editable-'; + // Nashorn ~ JDK8 bug + var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1); - var processDataOptions = function(key, value) { - // Replace camel case with dashes. - var dashKey = key.replace(/([A-Z])/g, function($1) { - return "-" + $1.toLowerCase(); - }); - if (dashKey.slice(0, editableDataPrefix.length) == editableDataPrefix) { - var dataKey = dashKey.replace(editableDataPrefix, 'data-'); - editableOptions[dataKey] = value; - } - }; + // `Object.prototype.propertyIsEnumerable` method implementation + // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable + var f = NASHORN_BUG ? function propertyIsEnumerable(V) { + var descriptor = getOwnPropertyDescriptor(this, V); + return !!descriptor && descriptor.enumerable; + } : nativePropertyIsEnumerable; - $.each(that.options, processDataOptions); + var objectPropertyIsEnumerable = { + f: f + }; - column.formatter = column.formatter || function(value, row, index) { - return value; - }; - column._formatter = column._formatter ? column._formatter : column.formatter; - column.formatter = function(value, row, index) { - var result = column._formatter ? column._formatter(value, row, index) : value; + var createPropertyDescriptor = function (bitmap, value) { + return { + enumerable: !(bitmap & 1), + configurable: !(bitmap & 2), + writable: !(bitmap & 4), + value: value + }; + }; - $.each(column, processDataOptions); + var toString = {}.toString; - $.each(editableOptions, function(key, value) { - editableDataMarkup.push(' ' + key + '="' + value + '"'); - }); + var classofRaw = function (it) { + return toString.call(it).slice(8, -1); + }; - var _dont_edit_formatter = false; - if (column.editable.hasOwnProperty('noeditFormatter')) { - _dont_edit_formatter = column.editable.noeditFormatter(value, row, index); - } + var split = ''.split; - if (_dont_edit_formatter === false) { - return ['' + '' - ].join(''); - } else { - return _dont_edit_formatter; - } + // fallback for non-array-like ES3 and non-enumerable old V8 strings + var indexedObject = fails(function () { + // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 + // eslint-disable-next-line no-prototype-builtins + return !Object('z').propertyIsEnumerable(0); + }) ? function (it) { + return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); + } : Object; - }; - }); - }; + // `RequireObjectCoercible` abstract operation + // https://tc39.github.io/ecma262/#sec-requireobjectcoercible + var requireObjectCoercible = function (it) { + if (it == undefined) throw TypeError("Can't call method on " + it); + return it; + }; - BootstrapTable.prototype.initBody = function() { - var that = this; - _initBody.apply(this, Array.prototype.slice.apply(arguments)); + // toObject with fallback for non-array-like ES3 strings - if (!this.options.editable) { - return; - } - $.each(this.columns, function(i, column) { - if (!column.editable) { - return; - } - that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable) - .off('save').on('save', function(e, params) { - var data = that.getData(), - index = $(this).parents('tr[data-index]').data('index'), - row = data[index], - oldValue = row[column.field]; + var toIndexedObject = function (it) { + return indexedObject(requireObjectCoercible(it)); + }; - $(this).data('value', params.submitValue); - row[column.field] = params.submitValue; - that.trigger('editable-save', column.field, row, oldValue, $(this)); - that.resetFooter(); - }); - that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable) - .off('shown').on('shown', function(e, editable) { - var data = that.getData(), - index = $(this).parents('tr[data-index]').data('index'), - row = data[index]; + var isObject = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; + }; - that.trigger('editable-shown', column.field, row, $(this), editable); - }); - that.$body.find('a[data-name="' + column.field + '"]').editable(column.editable) - .off('hidden').on('hidden', function(e, reason) { - var data = that.getData(), - index = $(this).parents('tr[data-index]').data('index'), - row = data[index]; + // `ToPrimitive` abstract operation + // https://tc39.github.io/ecma262/#sec-toprimitive + // instead of the ES6 spec version, we didn't implement @@toPrimitive case + // and the second argument - flag - preferred type is a string + var toPrimitive = function (input, PREFERRED_STRING) { + if (!isObject(input)) return input; + var fn, val; + if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; + if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; + throw TypeError("Can't convert object to primitive value"); + }; - that.trigger('editable-hidden', column.field, row, $(this), reason); - }); - }); - this.trigger('editable-init'); - }; + var hasOwnProperty = {}.hasOwnProperty; -})(jQuery); \ No newline at end of file + var has = function (it, key) { + return hasOwnProperty.call(it, key); + }; + + var document$1 = global_1.document; + // typeof document.createElement is 'object' in old IE + var EXISTS = isObject(document$1) && isObject(document$1.createElement); + + var documentCreateElement = function (it) { + return EXISTS ? document$1.createElement(it) : {}; + }; + + // Thank's IE8 for his funny defineProperty + var ie8DomDefine = !descriptors && !fails(function () { + return Object.defineProperty(documentCreateElement('div'), 'a', { + get: function () { return 7; } + }).a != 7; + }); + + var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + + // `Object.getOwnPropertyDescriptor` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor + var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { + O = toIndexedObject(O); + P = toPrimitive(P, true); + if (ie8DomDefine) try { + return nativeGetOwnPropertyDescriptor(O, P); + } catch (error) { /* empty */ } + if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); + }; + + var objectGetOwnPropertyDescriptor = { + f: f$1 + }; + + var anObject = function (it) { + if (!isObject(it)) { + throw TypeError(String(it) + ' is not an object'); + } return it; + }; + + var nativeDefineProperty = Object.defineProperty; + + // `Object.defineProperty` method + // https://tc39.github.io/ecma262/#sec-object.defineproperty + var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) { + anObject(O); + P = toPrimitive(P, true); + anObject(Attributes); + if (ie8DomDefine) try { + return nativeDefineProperty(O, P, Attributes); + } catch (error) { /* empty */ } + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); + if ('value' in Attributes) O[P] = Attributes.value; + return O; + }; + + var objectDefineProperty = { + f: f$2 + }; + + var createNonEnumerableProperty = descriptors ? function (object, key, value) { + return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); + } : function (object, key, value) { + object[key] = value; + return object; + }; + + var setGlobal = function (key, value) { + try { + createNonEnumerableProperty(global_1, key, value); + } catch (error) { + global_1[key] = value; + } return value; + }; + + var SHARED = '__core-js_shared__'; + var store = global_1[SHARED] || setGlobal(SHARED, {}); + + var sharedStore = store; + + var functionToString = Function.toString; + + // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper + if (typeof sharedStore.inspectSource != 'function') { + sharedStore.inspectSource = function (it) { + return functionToString.call(it); + }; + } + + var inspectSource = sharedStore.inspectSource; + + var WeakMap = global_1.WeakMap; + + var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap)); + + var shared = createCommonjsModule(function (module) { + (module.exports = function (key, value) { + return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); + })('versions', []).push({ + version: '3.6.0', + mode: 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' + }); + }); + + var id = 0; + var postfix = Math.random(); + + var uid = function (key) { + return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); + }; + + var keys = shared('keys'); + + var sharedKey = function (key) { + return keys[key] || (keys[key] = uid(key)); + }; + + var hiddenKeys = {}; + + var WeakMap$1 = global_1.WeakMap; + var set, get, has$1; + + var enforce = function (it) { + return has$1(it) ? get(it) : set(it, {}); + }; + + var getterFor = function (TYPE) { + return function (it) { + var state; + if (!isObject(it) || (state = get(it)).type !== TYPE) { + throw TypeError('Incompatible receiver, ' + TYPE + ' required'); + } return state; + }; + }; + + if (nativeWeakMap) { + var store$1 = new WeakMap$1(); + var wmget = store$1.get; + var wmhas = store$1.has; + var wmset = store$1.set; + set = function (it, metadata) { + wmset.call(store$1, it, metadata); + return metadata; + }; + get = function (it) { + return wmget.call(store$1, it) || {}; + }; + has$1 = function (it) { + return wmhas.call(store$1, it); + }; + } else { + var STATE = sharedKey('state'); + hiddenKeys[STATE] = true; + set = function (it, metadata) { + createNonEnumerableProperty(it, STATE, metadata); + return metadata; + }; + get = function (it) { + return has(it, STATE) ? it[STATE] : {}; + }; + has$1 = function (it) { + return has(it, STATE); + }; + } + + var internalState = { + set: set, + get: get, + has: has$1, + enforce: enforce, + getterFor: getterFor + }; + + var redefine = createCommonjsModule(function (module) { + var getInternalState = internalState.get; + var enforceInternalState = internalState.enforce; + var TEMPLATE = String(String).split('String'); + + (module.exports = function (O, key, value, options) { + var unsafe = options ? !!options.unsafe : false; + var simple = options ? !!options.enumerable : false; + var noTargetGet = options ? !!options.noTargetGet : false; + if (typeof value == 'function') { + if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key); + enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : ''); + } + if (O === global_1) { + if (simple) O[key] = value; + else setGlobal(key, value); + return; + } else if (!unsafe) { + delete O[key]; + } else if (!noTargetGet && O[key]) { + simple = true; + } + if (simple) O[key] = value; + else createNonEnumerableProperty(O, key, value); + // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative + })(Function.prototype, 'toString', function toString() { + return typeof this == 'function' && getInternalState(this).source || inspectSource(this); + }); + }); + + var path = global_1; + + var aFunction = function (variable) { + return typeof variable == 'function' ? variable : undefined; + }; + + var getBuiltIn = function (namespace, method) { + return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace]) + : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method]; + }; + + var ceil = Math.ceil; + var floor = Math.floor; + + // `ToInteger` abstract operation + // https://tc39.github.io/ecma262/#sec-tointeger + var toInteger = function (argument) { + return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); + }; + + var min = Math.min; + + // `ToLength` abstract operation + // https://tc39.github.io/ecma262/#sec-tolength + var toLength = function (argument) { + return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 + }; + + var max = Math.max; + var min$1 = Math.min; + + // Helper for a popular repeating case of the spec: + // Let integer be ? ToInteger(index). + // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). + var toAbsoluteIndex = function (index, length) { + var integer = toInteger(index); + return integer < 0 ? max(integer + length, 0) : min$1(integer, length); + }; + + // `Array.prototype.{ indexOf, includes }` methods implementation + var createMethod = function (IS_INCLUDES) { + return function ($this, el, fromIndex) { + var O = toIndexedObject($this); + var length = toLength(O.length); + var index = toAbsoluteIndex(fromIndex, length); + var value; + // Array#includes uses SameValueZero equality algorithm + // eslint-disable-next-line no-self-compare + if (IS_INCLUDES && el != el) while (length > index) { + value = O[index++]; + // eslint-disable-next-line no-self-compare + if (value != value) return true; + // Array#indexOf ignores holes, Array#includes - not + } else for (;length > index; index++) { + if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; + } return !IS_INCLUDES && -1; + }; + }; + + var arrayIncludes = { + // `Array.prototype.includes` method + // https://tc39.github.io/ecma262/#sec-array.prototype.includes + includes: createMethod(true), + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + indexOf: createMethod(false) + }; + + var indexOf = arrayIncludes.indexOf; + + + var objectKeysInternal = function (object, names) { + var O = toIndexedObject(object); + var i = 0; + var result = []; + var key; + for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key); + // Don't enum bug & hidden keys + while (names.length > i) if (has(O, key = names[i++])) { + ~indexOf(result, key) || result.push(key); + } + return result; + }; + + // IE8- don't enum bug keys + var enumBugKeys = [ + 'constructor', + 'hasOwnProperty', + 'isPrototypeOf', + 'propertyIsEnumerable', + 'toLocaleString', + 'toString', + 'valueOf' + ]; + + var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype'); + + // `Object.getOwnPropertyNames` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertynames + var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { + return objectKeysInternal(O, hiddenKeys$1); + }; + + var objectGetOwnPropertyNames = { + f: f$3 + }; + + var f$4 = Object.getOwnPropertySymbols; + + var objectGetOwnPropertySymbols = { + f: f$4 + }; + + // all object keys, includes non-enumerable and symbols + var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { + var keys = objectGetOwnPropertyNames.f(anObject(it)); + var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; + return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; + }; + + var copyConstructorProperties = function (target, source) { + var keys = ownKeys(source); + var defineProperty = objectDefineProperty.f; + var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); + } + }; + + var replacement = /#|\.prototype\./; + + var isForced = function (feature, detection) { + var value = data[normalize(feature)]; + return value == POLYFILL ? true + : value == NATIVE ? false + : typeof detection == 'function' ? fails(detection) + : !!detection; + }; + + var normalize = isForced.normalize = function (string) { + return String(string).replace(replacement, '.').toLowerCase(); + }; + + var data = isForced.data = {}; + var NATIVE = isForced.NATIVE = 'N'; + var POLYFILL = isForced.POLYFILL = 'P'; + + var isForced_1 = isForced; + + var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + + + + + + + /* + options.target - name of the target object + options.global - target is the global object + options.stat - export as static methods of target + options.proto - export as prototype methods of target + options.real - real prototype method for the `pure` version + options.forced - export even if the native feature is available + options.bind - bind methods to the target, required for the `pure` version + options.wrap - wrap constructors to preventing global pollution, required for the `pure` version + options.unsafe - use the simple assignment of property instead of delete + defineProperty + options.sham - add a flag to not completely full polyfills + options.enumerable - export as enumerable property + options.noTargetGet - prevent calling a getter on target + */ + var _export = function (options, source) { + var TARGET = options.target; + var GLOBAL = options.global; + var STATIC = options.stat; + var FORCED, target, key, targetProperty, sourceProperty, descriptor; + if (GLOBAL) { + target = global_1; + } else if (STATIC) { + target = global_1[TARGET] || setGlobal(TARGET, {}); + } else { + target = (global_1[TARGET] || {}).prototype; + } + if (target) for (key in source) { + sourceProperty = source[key]; + if (options.noTargetGet) { + descriptor = getOwnPropertyDescriptor$1(target, key); + targetProperty = descriptor && descriptor.value; + } else targetProperty = target[key]; + FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); + // contained in target + if (!FORCED && targetProperty !== undefined) { + if (typeof sourceProperty === typeof targetProperty) continue; + copyConstructorProperties(sourceProperty, targetProperty); + } + // add a flag to not completely full polyfills + if (options.sham || (targetProperty && targetProperty.sham)) { + createNonEnumerableProperty(sourceProperty, 'sham', true); + } + // extend global + redefine(target, key, sourceProperty, options); + } + }; + + var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { + // Chrome 38 Symbol has incorrect toString conversion + // eslint-disable-next-line no-undef + return !String(Symbol()); + }); + + var useSymbolAsUid = nativeSymbol + // eslint-disable-next-line no-undef + && !Symbol.sham + // eslint-disable-next-line no-undef + && typeof Symbol() == 'symbol'; + + // `IsArray` abstract operation + // https://tc39.github.io/ecma262/#sec-isarray + var isArray = Array.isArray || function isArray(arg) { + return classofRaw(arg) == 'Array'; + }; + + // `ToObject` abstract operation + // https://tc39.github.io/ecma262/#sec-toobject + var toObject = function (argument) { + return Object(requireObjectCoercible(argument)); + }; + + // `Object.keys` method + // https://tc39.github.io/ecma262/#sec-object.keys + var objectKeys = Object.keys || function keys(O) { + return objectKeysInternal(O, enumBugKeys); + }; + + // `Object.defineProperties` method + // https://tc39.github.io/ecma262/#sec-object.defineproperties + var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) { + anObject(O); + var keys = objectKeys(Properties); + var length = keys.length; + var index = 0; + var key; + while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]); + return O; + }; + + var html = getBuiltIn('document', 'documentElement'); + + var GT = '>'; + var LT = '<'; + var PROTOTYPE = 'prototype'; + var SCRIPT = 'script'; + var IE_PROTO = sharedKey('IE_PROTO'); + + var EmptyConstructor = function () { /* empty */ }; + + var scriptTag = function (content) { + return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; + }; + + // Create object with fake `null` prototype: use ActiveX Object with cleared prototype + var NullProtoObjectViaActiveX = function (activeXDocument) { + activeXDocument.write(scriptTag('')); + activeXDocument.close(); + var temp = activeXDocument.parentWindow.Object; + activeXDocument = null; // avoid memory leak + return temp; + }; + + // Create object with fake `null` prototype: use iframe Object with cleared prototype + var NullProtoObjectViaIFrame = function () { + // Thrash, waste and sodomy: IE GC bug + var iframe = documentCreateElement('iframe'); + var JS = 'java' + SCRIPT + ':'; + var iframeDocument; + iframe.style.display = 'none'; + html.appendChild(iframe); + // https://github.com/zloirock/core-js/issues/475 + iframe.src = String(JS); + iframeDocument = iframe.contentWindow.document; + iframeDocument.open(); + iframeDocument.write(scriptTag('document.F=Object')); + iframeDocument.close(); + return iframeDocument.F; + }; + + // Check for document.domain and active x support + // No need to use active x approach when document.domain is not set + // see https://github.com/es-shims/es5-shim/issues/150 + // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 + // avoid IE GC bug + var activeXDocument; + var NullProtoObject = function () { + try { + /* global ActiveXObject */ + activeXDocument = document.domain && new ActiveXObject('htmlfile'); + } catch (error) { /* ignore */ } + NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); + var length = enumBugKeys.length; + while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; + return NullProtoObject(); + }; + + hiddenKeys[IE_PROTO] = true; + + // `Object.create` method + // https://tc39.github.io/ecma262/#sec-object.create + var objectCreate = Object.create || function create(O, Properties) { + var result; + if (O !== null) { + EmptyConstructor[PROTOTYPE] = anObject(O); + result = new EmptyConstructor(); + EmptyConstructor[PROTOTYPE] = null; + // add "__proto__" for Object.getPrototypeOf polyfill + result[IE_PROTO] = O; + } else result = NullProtoObject(); + return Properties === undefined ? result : objectDefineProperties(result, Properties); + }; + + var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f; + + var toString$1 = {}.toString; + + var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames + ? Object.getOwnPropertyNames(window) : []; + + var getWindowNames = function (it) { + try { + return nativeGetOwnPropertyNames(it); + } catch (error) { + return windowNames.slice(); + } + }; + + // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window + var f$5 = function getOwnPropertyNames(it) { + return windowNames && toString$1.call(it) == '[object Window]' + ? getWindowNames(it) + : nativeGetOwnPropertyNames(toIndexedObject(it)); + }; + + var objectGetOwnPropertyNamesExternal = { + f: f$5 + }; + + var WellKnownSymbolsStore = shared('wks'); + var Symbol$1 = global_1.Symbol; + var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid; + + var wellKnownSymbol = function (name) { + if (!has(WellKnownSymbolsStore, name)) { + if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name]; + else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); + } return WellKnownSymbolsStore[name]; + }; + + var f$6 = wellKnownSymbol; + + var wrappedWellKnownSymbol = { + f: f$6 + }; + + var defineProperty = objectDefineProperty.f; + + var defineWellKnownSymbol = function (NAME) { + var Symbol = path.Symbol || (path.Symbol = {}); + if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, { + value: wrappedWellKnownSymbol.f(NAME) + }); + }; + + var defineProperty$1 = objectDefineProperty.f; + + + + var TO_STRING_TAG = wellKnownSymbol('toStringTag'); + + var setToStringTag = function (it, TAG, STATIC) { + if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) { + defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG }); + } + }; + + var aFunction$1 = function (it) { + if (typeof it != 'function') { + throw TypeError(String(it) + ' is not a function'); + } return it; + }; + + // optional / simple context binding + var bindContext = function (fn, that, length) { + aFunction$1(fn); + if (that === undefined) return fn; + switch (length) { + case 0: return function () { + return fn.call(that); + }; + case 1: return function (a) { + return fn.call(that, a); + }; + case 2: return function (a, b) { + return fn.call(that, a, b); + }; + case 3: return function (a, b, c) { + return fn.call(that, a, b, c); + }; + } + return function (/* ...args */) { + return fn.apply(that, arguments); + }; + }; + + var SPECIES = wellKnownSymbol('species'); + + // `ArraySpeciesCreate` abstract operation + // https://tc39.github.io/ecma262/#sec-arrayspeciescreate + var arraySpeciesCreate = function (originalArray, length) { + var C; + if (isArray(originalArray)) { + C = originalArray.constructor; + // cross-realm fallback + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; + else if (isObject(C)) { + C = C[SPECIES]; + if (C === null) C = undefined; + } + } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); + }; + + var push = [].push; + + // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation + var createMethod$1 = function (TYPE) { + var IS_MAP = TYPE == 1; + var IS_FILTER = TYPE == 2; + var IS_SOME = TYPE == 3; + var IS_EVERY = TYPE == 4; + var IS_FIND_INDEX = TYPE == 6; + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; + return function ($this, callbackfn, that, specificCreate) { + var O = toObject($this); + var self = indexedObject(O); + var boundFunction = bindContext(callbackfn, that, 3); + var length = toLength(self.length); + var index = 0; + var create = specificCreate || arraySpeciesCreate; + var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; + var value, result; + for (;length > index; index++) if (NO_HOLES || index in self) { + value = self[index]; + result = boundFunction(value, index, O); + if (TYPE) { + if (IS_MAP) target[index] = result; // map + else if (result) switch (TYPE) { + case 3: return true; // some + case 5: return value; // find + case 6: return index; // findIndex + case 2: push.call(target, value); // filter + } else if (IS_EVERY) return false; // every + } + } + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; + }; + }; + + var arrayIteration = { + // `Array.prototype.forEach` method + // https://tc39.github.io/ecma262/#sec-array.prototype.foreach + forEach: createMethod$1(0), + // `Array.prototype.map` method + // https://tc39.github.io/ecma262/#sec-array.prototype.map + map: createMethod$1(1), + // `Array.prototype.filter` method + // https://tc39.github.io/ecma262/#sec-array.prototype.filter + filter: createMethod$1(2), + // `Array.prototype.some` method + // https://tc39.github.io/ecma262/#sec-array.prototype.some + some: createMethod$1(3), + // `Array.prototype.every` method + // https://tc39.github.io/ecma262/#sec-array.prototype.every + every: createMethod$1(4), + // `Array.prototype.find` method + // https://tc39.github.io/ecma262/#sec-array.prototype.find + find: createMethod$1(5), + // `Array.prototype.findIndex` method + // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex + findIndex: createMethod$1(6) + }; + + var $forEach = arrayIteration.forEach; + + var HIDDEN = sharedKey('hidden'); + var SYMBOL = 'Symbol'; + var PROTOTYPE$1 = 'prototype'; + var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); + var setInternalState = internalState.set; + var getInternalState = internalState.getterFor(SYMBOL); + var ObjectPrototype = Object[PROTOTYPE$1]; + var $Symbol = global_1.Symbol; + var $stringify = getBuiltIn('JSON', 'stringify'); + var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; + var nativeDefineProperty$1 = objectDefineProperty.f; + var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f; + var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f; + var AllSymbols = shared('symbols'); + var ObjectPrototypeSymbols = shared('op-symbols'); + var StringToSymbolRegistry = shared('string-to-symbol-registry'); + var SymbolToStringRegistry = shared('symbol-to-string-registry'); + var WellKnownSymbolsStore$1 = shared('wks'); + var QObject = global_1.QObject; + // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 + var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild; + + // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 + var setSymbolDescriptor = descriptors && fails(function () { + return objectCreate(nativeDefineProperty$1({}, 'a', { + get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; } + })).a != 7; + }) ? function (O, P, Attributes) { + var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P); + if (ObjectPrototypeDescriptor) delete ObjectPrototype[P]; + nativeDefineProperty$1(O, P, Attributes); + if (ObjectPrototypeDescriptor && O !== ObjectPrototype) { + nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor); + } + } : nativeDefineProperty$1; + + var wrap = function (tag, description) { + var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]); + setInternalState(symbol, { + type: SYMBOL, + tag: tag, + description: description + }); + if (!descriptors) symbol.description = description; + return symbol; + }; + + var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) { + return typeof it == 'symbol'; + } : function (it) { + return Object(it) instanceof $Symbol; + }; + + var $defineProperty = function defineProperty(O, P, Attributes) { + if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes); + anObject(O); + var key = toPrimitive(P, true); + anObject(Attributes); + if (has(AllSymbols, key)) { + if (!Attributes.enumerable) { + if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {})); + O[HIDDEN][key] = true; + } else { + if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; + Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) }); + } return setSymbolDescriptor(O, key, Attributes); + } return nativeDefineProperty$1(O, key, Attributes); + }; + + var $defineProperties = function defineProperties(O, Properties) { + anObject(O); + var properties = toIndexedObject(Properties); + var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); + $forEach(keys, function (key) { + if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]); + }); + return O; + }; + + var $create = function create(O, Properties) { + return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties); + }; + + var $propertyIsEnumerable = function propertyIsEnumerable(V) { + var P = toPrimitive(V, true); + var enumerable = nativePropertyIsEnumerable$1.call(this, P); + if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false; + return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; + }; + + var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { + var it = toIndexedObject(O); + var key = toPrimitive(P, true); + if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return; + var descriptor = nativeGetOwnPropertyDescriptor$1(it, key); + if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) { + descriptor.enumerable = true; + } + return descriptor; + }; + + var $getOwnPropertyNames = function getOwnPropertyNames(O) { + var names = nativeGetOwnPropertyNames$1(toIndexedObject(O)); + var result = []; + $forEach(names, function (key) { + if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key); + }); + return result; + }; + + var $getOwnPropertySymbols = function getOwnPropertySymbols(O) { + var IS_OBJECT_PROTOTYPE = O === ObjectPrototype; + var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O)); + var result = []; + $forEach(names, function (key) { + if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) { + result.push(AllSymbols[key]); + } + }); + return result; + }; + + // `Symbol` constructor + // https://tc39.github.io/ecma262/#sec-symbol-constructor + if (!nativeSymbol) { + $Symbol = function Symbol() { + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor'); + var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]); + var tag = uid(description); + var setter = function (value) { + if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value); + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; + setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value)); + }; + if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter }); + return wrap(tag, description); + }; + + redefine($Symbol[PROTOTYPE$1], 'toString', function toString() { + return getInternalState(this).tag; + }); + + objectPropertyIsEnumerable.f = $propertyIsEnumerable; + objectDefineProperty.f = $defineProperty; + objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor; + objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames; + objectGetOwnPropertySymbols.f = $getOwnPropertySymbols; + + if (descriptors) { + // https://github.com/tc39/proposal-Symbol-description + nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', { + configurable: true, + get: function description() { + return getInternalState(this).description; + } + }); + { + redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); + } + } + } + + if (!useSymbolAsUid) { + wrappedWellKnownSymbol.f = function (name) { + return wrap(wellKnownSymbol(name), name); + }; + } + + _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, { + Symbol: $Symbol + }); + + $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) { + defineWellKnownSymbol(name); + }); + + _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, { + // `Symbol.for` method + // https://tc39.github.io/ecma262/#sec-symbol.for + 'for': function (key) { + var string = String(key); + if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; + var symbol = $Symbol(string); + StringToSymbolRegistry[string] = symbol; + SymbolToStringRegistry[symbol] = string; + return symbol; + }, + // `Symbol.keyFor` method + // https://tc39.github.io/ecma262/#sec-symbol.keyfor + keyFor: function keyFor(sym) { + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol'); + if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; + }, + useSetter: function () { USE_SETTER = true; }, + useSimple: function () { USE_SETTER = false; } + }); + + _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, { + // `Object.create` method + // https://tc39.github.io/ecma262/#sec-object.create + create: $create, + // `Object.defineProperty` method + // https://tc39.github.io/ecma262/#sec-object.defineproperty + defineProperty: $defineProperty, + // `Object.defineProperties` method + // https://tc39.github.io/ecma262/#sec-object.defineproperties + defineProperties: $defineProperties, + // `Object.getOwnPropertyDescriptor` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors + getOwnPropertyDescriptor: $getOwnPropertyDescriptor + }); + + _export({ target: 'Object', stat: true, forced: !nativeSymbol }, { + // `Object.getOwnPropertyNames` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertynames + getOwnPropertyNames: $getOwnPropertyNames, + // `Object.getOwnPropertySymbols` method + // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols + getOwnPropertySymbols: $getOwnPropertySymbols + }); + + // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives + // https://bugs.chromium.org/p/v8/issues/detail?id=3443 + _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, { + getOwnPropertySymbols: function getOwnPropertySymbols(it) { + return objectGetOwnPropertySymbols.f(toObject(it)); + } + }); + + // `JSON.stringify` method behavior with symbols + // https://tc39.github.io/ecma262/#sec-json.stringify + if ($stringify) { + var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () { + var symbol = $Symbol(); + // MS Edge converts symbol values to JSON as {} + return $stringify([symbol]) != '[null]' + // WebKit converts symbol values to JSON as null + || $stringify({ a: symbol }) != '{}' + // V8 throws on boxed symbols + || $stringify(Object(symbol)) != '{}'; + }); + + _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, { + // eslint-disable-next-line no-unused-vars + stringify: function stringify(it, replacer, space) { + var args = [it]; + var index = 1; + var $replacer; + while (arguments.length > index) args.push(arguments[index++]); + $replacer = replacer; + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined + if (!isArray(replacer)) replacer = function (key, value) { + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); + if (!isSymbol(value)) return value; + }; + args[1] = replacer; + return $stringify.apply(null, args); + } + }); + } + + // `Symbol.prototype[@@toPrimitive]` method + // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive + if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) { + createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf); + } + // `Symbol.prototype[@@toStringTag]` property + // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag + setToStringTag($Symbol, SYMBOL); + + hiddenKeys[HIDDEN] = true; + + var defineProperty$2 = objectDefineProperty.f; + + + var NativeSymbol = global_1.Symbol; + + if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) || + // Safari 12 bug + NativeSymbol().description !== undefined + )) { + var EmptyStringDescriptionStore = {}; + // wrap Symbol constructor for correct work with undefined description + var SymbolWrapper = function Symbol() { + var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]); + var result = this instanceof SymbolWrapper + ? new NativeSymbol(description) + // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' + : description === undefined ? NativeSymbol() : NativeSymbol(description); + if (description === '') EmptyStringDescriptionStore[result] = true; + return result; + }; + copyConstructorProperties(SymbolWrapper, NativeSymbol); + var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype; + symbolPrototype.constructor = SymbolWrapper; + + var symbolToString = symbolPrototype.toString; + var native = String(NativeSymbol('test')) == 'Symbol(test)'; + var regexp = /^Symbol\((.*)\)[^)]+$/; + defineProperty$2(symbolPrototype, 'description', { + configurable: true, + get: function description() { + var symbol = isObject(this) ? this.valueOf() : this; + var string = symbolToString.call(symbol); + if (has(EmptyStringDescriptionStore, symbol)) return ''; + var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1'); + return desc === '' ? undefined : desc; + } + }); + + _export({ global: true, forced: true }, { + Symbol: SymbolWrapper + }); + } + + // `Symbol.iterator` well-known symbol + // https://tc39.github.io/ecma262/#sec-symbol.iterator + defineWellKnownSymbol('iterator'); + + var createProperty = function (object, key, value) { + var propertyKey = toPrimitive(key); + if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); + else object[propertyKey] = value; + }; + + var userAgent = getBuiltIn('navigator', 'userAgent') || ''; + + var process = global_1.process; + var versions = process && process.versions; + var v8 = versions && versions.v8; + var match, version; + + if (v8) { + match = v8.split('.'); + version = match[0] + match[1]; + } else if (userAgent) { + match = userAgent.match(/Edge\/(\d+)/); + if (!match || match[1] >= 74) { + match = userAgent.match(/Chrome\/(\d+)/); + if (match) version = match[1]; + } + } + + var v8Version = version && +version; + + var SPECIES$1 = wellKnownSymbol('species'); + + var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/677 + return v8Version >= 51 || !fails(function () { + var array = []; + var constructor = array.constructor = {}; + constructor[SPECIES$1] = function () { + return { foo: 1 }; + }; + return array[METHOD_NAME](Boolean).foo !== 1; + }); + }; + + var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); + var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; + var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; + + // We can't use this feature detection in V8 since it causes + // deoptimization and serious performance degradation + // https://github.com/zloirock/core-js/issues/679 + var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () { + var array = []; + array[IS_CONCAT_SPREADABLE] = false; + return array.concat()[0] !== array; + }); + + var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); + + var isConcatSpreadable = function (O) { + if (!isObject(O)) return false; + var spreadable = O[IS_CONCAT_SPREADABLE]; + return spreadable !== undefined ? !!spreadable : isArray(O); + }; + + var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; + + // `Array.prototype.concat` method + // https://tc39.github.io/ecma262/#sec-array.prototype.concat + // with adding support of @@isConcatSpreadable and @@species + _export({ target: 'Array', proto: true, forced: FORCED }, { + concat: function concat(arg) { // eslint-disable-line no-unused-vars + var O = toObject(this); + var A = arraySpeciesCreate(O, 0); + var n = 0; + var i, k, length, len, E; + for (i = -1, length = arguments.length; i < length; i++) { + E = i === -1 ? O : arguments[i]; + if (isConcatSpreadable(E)) { + len = toLength(E.length); + if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); + } else { + if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); + createProperty(A, n++, E); + } + } + A.length = n; + return A; + } + }); + + var UNSCOPABLES = wellKnownSymbol('unscopables'); + var ArrayPrototype = Array.prototype; + + // Array.prototype[@@unscopables] + // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables + if (ArrayPrototype[UNSCOPABLES] == undefined) { + objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, { + configurable: true, + value: objectCreate(null) + }); + } + + // add a key to Array.prototype[@@unscopables] + var addToUnscopables = function (key) { + ArrayPrototype[UNSCOPABLES][key] = true; + }; + + var $find = arrayIteration.find; + + + var FIND = 'find'; + var SKIPS_HOLES = true; + + // Shouldn't skip holes + if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); + + // `Array.prototype.find` method + // https://tc39.github.io/ecma262/#sec-array.prototype.find + _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { + find: function find(callbackfn /* , that = undefined */) { + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables(FIND); + + var sloppyArrayMethod = function (METHOD_NAME, argument) { + var method = [][METHOD_NAME]; + return !method || !fails(function () { + // eslint-disable-next-line no-useless-call,no-throw-literal + method.call(null, argument || function () { throw 1; }, 1); + }); + }; + + var $indexOf = arrayIncludes.indexOf; + + + var nativeIndexOf = [].indexOf; + + var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0; + var SLOPPY_METHOD = sloppyArrayMethod('indexOf'); + + // `Array.prototype.indexOf` method + // https://tc39.github.io/ecma262/#sec-array.prototype.indexof + _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, { + indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { + return NEGATIVE_ZERO + // convert -0 to +0 + ? nativeIndexOf.apply(this, arguments) || 0 + : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined); + } + }); + + var correctPrototypeGetter = !fails(function () { + function F() { /* empty */ } + F.prototype.constructor = null; + return Object.getPrototypeOf(new F()) !== F.prototype; + }); + + var IE_PROTO$1 = sharedKey('IE_PROTO'); + var ObjectPrototype$1 = Object.prototype; + + // `Object.getPrototypeOf` method + // https://tc39.github.io/ecma262/#sec-object.getprototypeof + var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) { + O = toObject(O); + if (has(O, IE_PROTO$1)) return O[IE_PROTO$1]; + if (typeof O.constructor == 'function' && O instanceof O.constructor) { + return O.constructor.prototype; + } return O instanceof Object ? ObjectPrototype$1 : null; + }; + + var ITERATOR = wellKnownSymbol('iterator'); + var BUGGY_SAFARI_ITERATORS = false; + + var returnThis = function () { return this; }; + + // `%IteratorPrototype%` object + // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object + var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; + + if ([].keys) { + arrayIterator = [].keys(); + // Safari 8 has buggy iterators w/o `next` + if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; + else { + PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator)); + if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; + } + } + + if (IteratorPrototype == undefined) IteratorPrototype = {}; + + // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() + if ( !has(IteratorPrototype, ITERATOR)) { + createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis); + } + + var iteratorsCore = { + IteratorPrototype: IteratorPrototype, + BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS + }; + + var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; + + var createIteratorConstructor = function (IteratorConstructor, NAME, next) { + var TO_STRING_TAG = NAME + ' Iterator'; + IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) }); + setToStringTag(IteratorConstructor, TO_STRING_TAG, false); + return IteratorConstructor; + }; + + var aPossiblePrototype = function (it) { + if (!isObject(it) && it !== null) { + throw TypeError("Can't set " + String(it) + ' as a prototype'); + } return it; + }; + + // `Object.setPrototypeOf` method + // https://tc39.github.io/ecma262/#sec-object.setprototypeof + // Works with __proto__ only. Old v8 can't work with null proto objects. + /* eslint-disable no-proto */ + var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { + var CORRECT_SETTER = false; + var test = {}; + var setter; + try { + setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set; + setter.call(test, []); + CORRECT_SETTER = test instanceof Array; + } catch (error) { /* empty */ } + return function setPrototypeOf(O, proto) { + anObject(O); + aPossiblePrototype(proto); + if (CORRECT_SETTER) setter.call(O, proto); + else O.__proto__ = proto; + return O; + }; + }() : undefined); + + var IteratorPrototype$2 = iteratorsCore.IteratorPrototype; + var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS; + var ITERATOR$1 = wellKnownSymbol('iterator'); + var KEYS = 'keys'; + var VALUES = 'values'; + var ENTRIES = 'entries'; + + var returnThis$1 = function () { return this; }; + + var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { + createIteratorConstructor(IteratorConstructor, NAME, next); + + var getIterationMethod = function (KIND) { + if (KIND === DEFAULT && defaultIterator) return defaultIterator; + if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND]; + switch (KIND) { + case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; + case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; + case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; + } return function () { return new IteratorConstructor(this); }; + }; + + var TO_STRING_TAG = NAME + ' Iterator'; + var INCORRECT_VALUES_NAME = false; + var IterablePrototype = Iterable.prototype; + var nativeIterator = IterablePrototype[ITERATOR$1] + || IterablePrototype['@@iterator'] + || DEFAULT && IterablePrototype[DEFAULT]; + var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT); + var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; + var CurrentIteratorPrototype, methods, KEY; + + // fix native + if (anyNativeIterator) { + CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable())); + if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) { + if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) { + if (objectSetPrototypeOf) { + objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2); + } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') { + createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1); + } + } + // Set @@toStringTag to native iterators + setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); + } + } + + // fix Array#{values, @@iterator}.name in V8 / FF + if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { + INCORRECT_VALUES_NAME = true; + defaultIterator = function values() { return nativeIterator.call(this); }; + } + + // define iterator + if ( IterablePrototype[ITERATOR$1] !== defaultIterator) { + createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator); + } + + // export additional methods + if (DEFAULT) { + methods = { + values: getIterationMethod(VALUES), + keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), + entries: getIterationMethod(ENTRIES) + }; + if (FORCED) for (KEY in methods) { + if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { + redefine(IterablePrototype, KEY, methods[KEY]); + } + } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods); + } + + return methods; + }; + + var ARRAY_ITERATOR = 'Array Iterator'; + var setInternalState$1 = internalState.set; + var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR); + + // `Array.prototype.entries` method + // https://tc39.github.io/ecma262/#sec-array.prototype.entries + // `Array.prototype.keys` method + // https://tc39.github.io/ecma262/#sec-array.prototype.keys + // `Array.prototype.values` method + // https://tc39.github.io/ecma262/#sec-array.prototype.values + // `Array.prototype[@@iterator]` method + // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator + // `CreateArrayIterator` internal method + // https://tc39.github.io/ecma262/#sec-createarrayiterator + var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) { + setInternalState$1(this, { + type: ARRAY_ITERATOR, + target: toIndexedObject(iterated), // target + index: 0, // next index + kind: kind // kind + }); + // `%ArrayIteratorPrototype%.next` method + // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next + }, function () { + var state = getInternalState$1(this); + var target = state.target; + var kind = state.kind; + var index = state.index++; + if (!target || index >= target.length) { + state.target = undefined; + return { value: undefined, done: true }; + } + if (kind == 'keys') return { value: index, done: false }; + if (kind == 'values') return { value: target[index], done: false }; + return { value: [index, target[index]], done: false }; + }, 'values'); + + // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables + addToUnscopables('keys'); + addToUnscopables('values'); + addToUnscopables('entries'); + + var nativeJoin = [].join; + + var ES3_STRINGS = indexedObject != Object; + var SLOPPY_METHOD$1 = sloppyArrayMethod('join', ','); + + // `Array.prototype.join` method + // https://tc39.github.io/ecma262/#sec-array.prototype.join + _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD$1 }, { + join: function join(separator) { + return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator); + } + }); + + var propertyIsEnumerable = objectPropertyIsEnumerable.f; + + // `Object.{ entries, values }` methods implementation + var createMethod$2 = function (TO_ENTRIES) { + return function (it) { + var O = toIndexedObject(it); + var keys = objectKeys(O); + var length = keys.length; + var i = 0; + var result = []; + var key; + while (length > i) { + key = keys[i++]; + if (!descriptors || propertyIsEnumerable.call(O, key)) { + result.push(TO_ENTRIES ? [key, O[key]] : O[key]); + } + } + return result; + }; + }; + + var objectToArray = { + // `Object.entries` method + // https://tc39.github.io/ecma262/#sec-object.entries + entries: createMethod$2(true), + // `Object.values` method + // https://tc39.github.io/ecma262/#sec-object.values + values: createMethod$2(false) + }; + + var $entries = objectToArray.entries; + + // `Object.entries` method + // https://tc39.github.io/ecma262/#sec-object.entries + _export({ target: 'Object', stat: true }, { + entries: function entries(O) { + return $entries(O); + } + }); + + var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag'); + var test = {}; + + test[TO_STRING_TAG$1] = 'z'; + + var toStringTagSupport = String(test) === '[object z]'; + + var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag'); + // ES3 wrong here + var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; + + // fallback for IE11 Script Access Denied error + var tryGet = function (it, key) { + try { + return it[key]; + } catch (error) { /* empty */ } + }; + + // getting tag from ES6+ `Object.prototype.toString` + var classof = toStringTagSupport ? classofRaw : function (it) { + var O, tag, result; + return it === undefined ? 'Undefined' : it === null ? 'Null' + // @@toStringTag case + : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag + // builtinTag case + : CORRECT_ARGUMENTS ? classofRaw(O) + // ES3 arguments fallback + : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result; + }; + + // `Object.prototype.toString` method implementation + // https://tc39.github.io/ecma262/#sec-object.prototype.tostring + var objectToString = toStringTagSupport ? {}.toString : function toString() { + return '[object ' + classof(this) + ']'; + }; + + // `Object.prototype.toString` method + // https://tc39.github.io/ecma262/#sec-object.prototype.tostring + if (!toStringTagSupport) { + redefine(Object.prototype, 'toString', objectToString, { unsafe: true }); + } + + // `RegExp.prototype.flags` getter implementation + // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags + var regexpFlags = function () { + var that = anObject(this); + var result = ''; + if (that.global) result += 'g'; + if (that.ignoreCase) result += 'i'; + if (that.multiline) result += 'm'; + if (that.dotAll) result += 's'; + if (that.unicode) result += 'u'; + if (that.sticky) result += 'y'; + return result; + }; + + // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError, + // so we use an intermediate function. + function RE(s, f) { + return RegExp(s, f); + } + + var UNSUPPORTED_Y = fails(function () { + // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError + var re = RE('a', 'y'); + re.lastIndex = 2; + return re.exec('abcd') != null; + }); + + var BROKEN_CARET = fails(function () { + // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 + var re = RE('^r', 'gy'); + re.lastIndex = 2; + return re.exec('str') != null; + }); + + var regexpStickyHelpers = { + UNSUPPORTED_Y: UNSUPPORTED_Y, + BROKEN_CARET: BROKEN_CARET + }; + + var nativeExec = RegExp.prototype.exec; + // This always refers to the native implementation, because the + // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, + // which loads this file before patching the method. + var nativeReplace = String.prototype.replace; + + var patchedExec = nativeExec; + + var UPDATES_LAST_INDEX_WRONG = (function () { + var re1 = /a/; + var re2 = /b*/g; + nativeExec.call(re1, 'a'); + nativeExec.call(re2, 'a'); + return re1.lastIndex !== 0 || re2.lastIndex !== 0; + })(); + + var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET; + + // nonparticipating capturing group, copied from es5-shim's String#split patch. + var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; + + var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1; + + if (PATCH) { + patchedExec = function exec(str) { + var re = this; + var lastIndex, reCopy, match, i; + var sticky = UNSUPPORTED_Y$1 && re.sticky; + var flags = regexpFlags.call(re); + var source = re.source; + var charsAdded = 0; + var strCopy = str; + + if (sticky) { + flags = flags.replace('y', ''); + if (flags.indexOf('g') === -1) { + flags += 'g'; + } + + strCopy = String(str).slice(re.lastIndex); + // Support anchored sticky behavior. + if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) { + source = '(?: ' + source + ')'; + strCopy = ' ' + strCopy; + charsAdded++; + } + // ^(? + rx + ) is needed, in combination with some str slicing, to + // simulate the 'y' flag. + reCopy = new RegExp('^(?:' + source + ')', flags); + } + + if (NPCG_INCLUDED) { + reCopy = new RegExp('^' + source + '$(?!\\s)', flags); + } + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; + + match = nativeExec.call(sticky ? reCopy : re, strCopy); + + if (sticky) { + if (match) { + match.input = match.input.slice(charsAdded); + match[0] = match[0].slice(charsAdded); + match.index = re.lastIndex; + re.lastIndex += match[0].length; + } else re.lastIndex = 0; + } else if (UPDATES_LAST_INDEX_WRONG && match) { + re.lastIndex = re.global ? match.index + match[0].length : lastIndex; + } + if (NPCG_INCLUDED && match && match.length > 1) { + // Fix browsers whose `exec` methods don't consistently return `undefined` + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ + nativeReplace.call(match[0], reCopy, function () { + for (i = 1; i < arguments.length - 2; i++) { + if (arguments[i] === undefined) match[i] = undefined; + } + }); + } + + return match; + }; + } + + var regexpExec = patchedExec; + + _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, { + exec: regexpExec + }); + + // `String.prototype.{ codePointAt, at }` methods implementation + var createMethod$3 = function (CONVERT_TO_STRING) { + return function ($this, pos) { + var S = String(requireObjectCoercible($this)); + var position = toInteger(pos); + var size = S.length; + var first, second; + if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; + first = S.charCodeAt(position); + return first < 0xD800 || first > 0xDBFF || position + 1 === size + || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF + ? CONVERT_TO_STRING ? S.charAt(position) : first + : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; + }; + }; + + var stringMultibyte = { + // `String.prototype.codePointAt` method + // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat + codeAt: createMethod$3(false), + // `String.prototype.at` method + // https://github.com/mathiasbynens/String.prototype.at + charAt: createMethod$3(true) + }; + + var charAt = stringMultibyte.charAt; + + + + var STRING_ITERATOR = 'String Iterator'; + var setInternalState$2 = internalState.set; + var getInternalState$2 = internalState.getterFor(STRING_ITERATOR); + + // `String.prototype[@@iterator]` method + // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator + defineIterator(String, 'String', function (iterated) { + setInternalState$2(this, { + type: STRING_ITERATOR, + string: String(iterated), + index: 0 + }); + // `%StringIteratorPrototype%.next` method + // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next + }, function next() { + var state = getInternalState$2(this); + var string = state.string; + var index = state.index; + var point; + if (index >= string.length) return { value: undefined, done: true }; + point = charAt(string, index); + state.index += point.length; + return { value: point, done: false }; + }); + + var SPECIES$2 = wellKnownSymbol('species'); + + var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { + // #replace needs built-in support for named groups. + // #match works fine because it just return the exec results, even if it has + // a "grops" property. + var re = /./; + re.exec = function () { + var result = []; + result.groups = { a: '7' }; + return result; + }; + return ''.replace(re, '$') !== '7'; + }); + + // IE <= 11 replaces $0 with the whole match, as if it was $& + // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 + var REPLACE_KEEPS_$0 = (function () { + return 'a'.replace(/./, '$0') === '$0'; + })(); + + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec + // Weex JS has frozen built-in prototypes, so use try / catch wrapper + var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { + var re = /(?:)/; + var originalExec = re.exec; + re.exec = function () { return originalExec.apply(this, arguments); }; + var result = 'ab'.split(re); + return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; + }); + + var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { + var SYMBOL = wellKnownSymbol(KEY); + + var DELEGATES_TO_SYMBOL = !fails(function () { + // String methods call symbol-named RegEp methods + var O = {}; + O[SYMBOL] = function () { return 7; }; + return ''[KEY](O) != 7; + }); + + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { + // Symbol-named RegExp methods call .exec + var execCalled = false; + var re = /a/; + + if (KEY === 'split') { + // We can't use real regex here since it causes deoptimization + // and serious performance degradation in V8 + // https://github.com/zloirock/core-js/issues/306 + re = {}; + // RegExp[@@split] doesn't call the regex's exec method, but first creates + // a new one. We need to return the patched regex when creating the new one. + re.constructor = {}; + re.constructor[SPECIES$2] = function () { return re; }; + re.flags = ''; + re[SYMBOL] = /./[SYMBOL]; + } + + re.exec = function () { execCalled = true; return null; }; + + re[SYMBOL](''); + return !execCalled; + }); + + if ( + !DELEGATES_TO_SYMBOL || + !DELEGATES_TO_EXEC || + (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) || + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) + ) { + var nativeRegExpMethod = /./[SYMBOL]; + var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { + if (regexp.exec === regexpExec) { + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { + // The native String method already delegates to @@method (this + // polyfilled function), leasing to infinite recursion. + // We avoid it by directly calling the native @@method method. + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; + } + return { done: true, value: nativeMethod.call(str, regexp, arg2) }; + } + return { done: false }; + }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 }); + var stringMethod = methods[0]; + var regexMethod = methods[1]; + + redefine(String.prototype, KEY, stringMethod); + redefine(RegExp.prototype, SYMBOL, length == 2 + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) + // 21.2.5.11 RegExp.prototype[@@split](string, limit) + ? function (string, arg) { return regexMethod.call(string, this, arg); } + // 21.2.5.6 RegExp.prototype[@@match](string) + // 21.2.5.9 RegExp.prototype[@@search](string) + : function (string) { return regexMethod.call(string, this); } + ); + } + + if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true); + }; + + var charAt$1 = stringMultibyte.charAt; + + // `AdvanceStringIndex` abstract operation + // https://tc39.github.io/ecma262/#sec-advancestringindex + var advanceStringIndex = function (S, index, unicode) { + return index + (unicode ? charAt$1(S, index).length : 1); + }; + + // `RegExpExec` abstract operation + // https://tc39.github.io/ecma262/#sec-regexpexec + var regexpExecAbstract = function (R, S) { + var exec = R.exec; + if (typeof exec === 'function') { + var result = exec.call(R, S); + if (typeof result !== 'object') { + throw TypeError('RegExp exec method returned something other than an Object or null'); + } + return result; + } + + if (classofRaw(R) !== 'RegExp') { + throw TypeError('RegExp#exec called on incompatible receiver'); + } + + return regexpExec.call(R, S); + }; + + var max$1 = Math.max; + var min$2 = Math.min; + var floor$1 = Math.floor; + var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g; + var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g; + + var maybeToString = function (it) { + return it === undefined ? it : String(it); + }; + + // @@replace logic + fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) { + return [ + // `String.prototype.replace` method + // https://tc39.github.io/ecma262/#sec-string.prototype.replace + function replace(searchValue, replaceValue) { + var O = requireObjectCoercible(this); + var replacer = searchValue == undefined ? undefined : searchValue[REPLACE]; + return replacer !== undefined + ? replacer.call(searchValue, O, replaceValue) + : nativeReplace.call(String(O), searchValue, replaceValue); + }, + // `RegExp.prototype[@@replace]` method + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace + function (regexp, replaceValue) { + if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) { + var res = maybeCallNative(nativeReplace, regexp, this, replaceValue); + if (res.done) return res.value; + } + + var rx = anObject(regexp); + var S = String(this); + + var functionalReplace = typeof replaceValue === 'function'; + if (!functionalReplace) replaceValue = String(replaceValue); + + var global = rx.global; + if (global) { + var fullUnicode = rx.unicode; + rx.lastIndex = 0; + } + var results = []; + while (true) { + var result = regexpExecAbstract(rx, S); + if (result === null) break; + + results.push(result); + if (!global) break; + + var matchStr = String(result[0]); + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); + } + + var accumulatedResult = ''; + var nextSourcePosition = 0; + for (var i = 0; i < results.length; i++) { + result = results[i]; + + var matched = String(result[0]); + var position = max$1(min$2(toInteger(result.index), S.length), 0); + var captures = []; + // NOTE: This is equivalent to + // captures = result.slice(1).map(maybeToString) + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); + var namedCaptures = result.groups; + if (functionalReplace) { + var replacerArgs = [matched].concat(captures, position, S); + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); + var replacement = String(replaceValue.apply(undefined, replacerArgs)); + } else { + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); + } + if (position >= nextSourcePosition) { + accumulatedResult += S.slice(nextSourcePosition, position) + replacement; + nextSourcePosition = position + matched.length; + } + } + return accumulatedResult + S.slice(nextSourcePosition); + } + ]; + + // https://tc39.github.io/ecma262/#sec-getsubstitution + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { + var tailPos = position + matched.length; + var m = captures.length; + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; + if (namedCaptures !== undefined) { + namedCaptures = toObject(namedCaptures); + symbols = SUBSTITUTION_SYMBOLS; + } + return nativeReplace.call(replacement, symbols, function (match, ch) { + var capture; + switch (ch.charAt(0)) { + case '$': return '$'; + case '&': return matched; + case '`': return str.slice(0, position); + case "'": return str.slice(tailPos); + case '<': + capture = namedCaptures[ch.slice(1, -1)]; + break; + default: // \d\d? + var n = +ch; + if (n === 0) return match; + if (n > m) { + var f = floor$1(n / 10); + if (f === 0) return match; + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); + return match; + } + capture = captures[n - 1]; + } + return capture === undefined ? '' : capture; + }); + } + }); + + // iterable DOM collections + // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods + var domIterables = { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0 + }; + + var ITERATOR$2 = wellKnownSymbol('iterator'); + var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag'); + var ArrayValues = es_array_iterator.values; + + for (var COLLECTION_NAME in domIterables) { + var Collection = global_1[COLLECTION_NAME]; + var CollectionPrototype = Collection && Collection.prototype; + if (CollectionPrototype) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try { + createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues); + } catch (error) { + CollectionPrototype[ITERATOR$2] = ArrayValues; + } + if (!CollectionPrototype[TO_STRING_TAG$3]) { + createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME); + } + if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) { + // some Chrome versions have non-configurable methods on DOMTokenList + if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try { + createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]); + } catch (error) { + CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME]; + } + } + } + } + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); + } + + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); + } + + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; + } + + function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); + } + + function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = _getPrototypeOf(object); + if (object === null) break; + } + + return object; + } + + function _get(target, property, receiver) { + if (typeof Reflect !== "undefined" && Reflect.get) { + _get = Reflect.get; + } else { + _get = function _get(target, property, receiver) { + var base = _superPropBase(target, property); + + if (!base) return; + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) { + return desc.get.call(receiver); + } + + return desc.value; + }; + } + + return _get(target, property, receiver || target); + } + + function _slicedToArray(arr, i) { + return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); + } + + function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; + } + + function _iterableToArrayLimit(arr, i) { + if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { + return; + } + + var _arr = []; + var _n = true; + var _d = false; + var _e = undefined; + + try { + for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; + } + + function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance"); + } + + /** + * @author zhixin wen + * extensions: https://github.com/vitalets/x-editable + */ + + var Utils = $.fn.bootstrapTable.utils; + $.extend($.fn.bootstrapTable.defaults, { + editable: true, + onEditableInit: function onEditableInit() { + return false; + }, + onEditableSave: function onEditableSave(field, row, rowIndex, oldValue, $el) { + return false; + }, + onEditableShown: function onEditableShown(field, row, $el, editable) { + return false; + }, + onEditableHidden: function onEditableHidden(field, row, $el, reason) { + return false; + } + }); + $.extend($.fn.bootstrapTable.columnDefaults, { + alwaysUseFormatter: false + }); + $.extend($.fn.bootstrapTable.Constructor.EVENTS, { + 'editable-init.bs.table': 'onEditableInit', + 'editable-save.bs.table': 'onEditableSave', + 'editable-shown.bs.table': 'onEditableShown', + 'editable-hidden.bs.table': 'onEditableHidden' + }); + + $.BootstrapTable = + /*#__PURE__*/ + function (_$$BootstrapTable) { + _inherits(_class, _$$BootstrapTable); + + function _class() { + _classCallCheck(this, _class); + + return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments)); + } + + _createClass(_class, [{ + key: "initTable", + value: function initTable() { + var _this = this; + + _get(_getPrototypeOf(_class.prototype), "initTable", this).call(this); + + if (!this.options.editable) { + return; + } + + this.editedCells = []; + $.each(this.columns, function (i, column) { + if (!column.editable) { + return; + } + + var editableOptions = {}; + var editableDataMarkup = []; + var editableDataPrefix = 'editable-'; + + var processDataOptions = function processDataOptions(key, value) { + // Replace camel case with dashes. + var dashKey = key.replace(/([A-Z])/g, function ($1) { + return "-".concat($1.toLowerCase()); + }); + + if (dashKey.indexOf(editableDataPrefix) === 0) { + editableOptions[dashKey.replace(editableDataPrefix, 'data-')] = value; + } + }; + + $.each(_this.options, processDataOptions); + + column.formatter = column.formatter || function (value) { + return value; + }; + + column._formatter = column._formatter ? column._formatter : column.formatter; + + column.formatter = function (value, row, index) { + var result = Utils.calculateObjectValue(column, column._formatter, [value, row, index], value); + result = typeof result === 'undefined' || result === null ? _this.options.undefinedText : result; + + if (_this.options.uniqueId !== undefined && !column.alwaysUseFormatter) { + var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false); + + if ($.inArray(column.field + uniqueId, _this.editedCells) !== -1) { + result = value; + } + } + + $.each(column, processDataOptions); + $.each(editableOptions, function (key, value) { + editableDataMarkup.push(" ".concat(key, "=\"").concat(value, "\"")); + }); + var noEditFormatter = false; + var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row], {}); + + if (editableOpts.hasOwnProperty('noEditFormatter')) { + noEditFormatter = editableOpts.noEditFormatter(value, row, index); + } + + if (noEditFormatter === false) { + return ""); + } + + return noEditFormatter; + }; + }); + } + }, { + key: "initBody", + value: function initBody(fixedScroll) { + var _this2 = this; + + _get(_getPrototypeOf(_class.prototype), "initBody", this).call(this, fixedScroll); + + if (!this.options.editable) { + return; + } + + $.each(this.columns, function (i, column) { + if (!column.editable) { + return; + } + + var data = _this2.getData({ + escape: true + }); + + var $field = _this2.$body.find("a[data-name=\"".concat(column.field, "\"]")); + + $field.each(function (i, element) { + var $element = $(element); + var $tr = $element.closest('tr'); + var index = $tr.data('index'); + var row = data[index]; + var editableOpts = Utils.calculateObjectValue(column, column.editable, [index, row, $element], {}); + $element.editable(editableOpts); + }); + $field.off('save').on('save', function (_ref, _ref2) { + var currentTarget = _ref.currentTarget; + var submitValue = _ref2.submitValue; + var $this = $(currentTarget); + + var data = _this2.getData(); + + var rowIndex = $this.parents('tr[data-index]').data('index'); + var row = data[rowIndex]; + var oldValue = row[column.field]; + + if (_this2.options.uniqueId !== undefined && !column.alwaysUseFormatter) { + var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false); + + if ($.inArray(column.field + uniqueId, _this2.editedCells) === -1) { + _this2.editedCells.push(column.field + uniqueId); + } + } + + submitValue = Utils.escapeHTML(submitValue); + $this.data('value', submitValue); + row[column.field] = submitValue; + + _this2.trigger('editable-save', column.field, row, rowIndex, oldValue, $this); + + _this2.initBody(); + }); + $field.off('shown').on('shown', function (_ref3, editable) { + var currentTarget = _ref3.currentTarget; + var $this = $(currentTarget); + + var data = _this2.getData(); + + var rowIndex = $this.parents('tr[data-index]').data('index'); + var row = data[rowIndex]; + + _this2.trigger('editable-shown', column.field, row, $this, editable); + }); + $field.off('hidden').on('hidden', function (_ref4, reason) { + var currentTarget = _ref4.currentTarget; + var $this = $(currentTarget); + + var data = _this2.getData(); + + var rowIndex = $this.parents('tr[data-index]').data('index'); + var row = data[rowIndex]; + + _this2.trigger('editable-hidden', column.field, row, $this, reason); + }); + }); + this.trigger('editable-init'); + } + }, { + key: "getData", + value: function getData(params) { + var data = _get(_getPrototypeOf(_class.prototype), "getData", this).call(this, params); + + if (params && params.escape) { + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = data[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var row = _step.value; + + for (var _i = 0, _Object$entries = Object.entries(row); _i < _Object$entries.length; _i++) { + var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), + key = _Object$entries$_i[0], + value = _Object$entries$_i[1]; + + row[key] = Utils.unescapeHTML(value); + } + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return != null) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } + + return data; + } + }]); + + return _class; + }($.BootstrapTable); + +}))); diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.min.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.min.js new file mode 100644 index 00000000..a393d477 --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/editable/bootstrap-table-editable.min.js @@ -0,0 +1,10 @@ +/** + * 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.17.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("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},d="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?d.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return y(v(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},O=o.document,w=h(O)&&h(O.createElement),x=function(t){return w?O.createElement(t):{}},j=!a&&!i((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,T={f:a?E:function(t,e){if(t=g(t),e=b(e,!0),j)try{return E(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},P=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,_={f:a?A:function(t,e,n){if(P(t),e=b(e,!0),P(n),j)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},I=a?function(t,e,n){return _.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},L=function(t,e){try{I(o,t,e)}catch(n){o[t]=e}return e},R=o["__core-js_shared__"]||L("__core-js_shared__",{}),k=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return k.call(t)});var C,M,F,D=R.inspectSource,N=o.WeakMap,$="function"==typeof N&&/native code/.test(D(N)),V=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),G=0,B=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+B).toString(36)},q=V("keys"),H=function(t){return q[t]||(q[t]=U(t))},z={},K=o.WeakMap;if($){var W=new K,Y=W.get,J=W.has,Q=W.set;C=function(t,e){return Q.call(W,t,e),e},M=function(t){return Y.call(W,t)||{}},F=function(t){return J.call(W,t)}}else{var X=H("state");z[X]=!0,C=function(t,e){return I(t,X,e),e},M=function(t){return S(t,X)?t[X]:{}},F=function(t){return S(t,X)}}var Z,tt={set:C,get:M,has:F,enforce:function(t){return F(t)?M(t):C(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||I(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:I(t,e,i)):c?t[e]=i:L(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,at=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(ut(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t){return function(e,n,r){var o,i=g(e),a=ft(i.length),u=function(t,e){var n=ut(t);return n<0?lt(n+e,0):st(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},dt={includes:pt(!0),indexOf:pt(!1)},yt=dt.indexOf,vt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!S(z,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=gt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return vt(t,ht)}},mt={f:Object.getOwnPropertySymbols},St=ot("Reflect","ownKeys")||function(t){var e=bt.f(P(t)),n=mt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=St(e),r=_.f,o=T.f,i=0;ii;)_.f(t,n=r[i++],e[n]);return t},Dt=ot("document","documentElement"),Nt=H("IE_PROTO"),$t=function(){},Vt=function(t){return""; // String html = "ipt>alert(\"XSS\")ipt>"; // String html = "<123"; + // String html = "123>"; System.out.println(EscapeUtil.clean(html)); System.out.println(EscapeUtil.escape(html)); System.out.println(EscapeUtil.unescape(html)); diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java index ff749628..cd8cd4ff 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/html/HTMLFilter.java @@ -35,7 +35,7 @@ public final class HTMLFilter private static final Pattern P_VALID_ENTITIES = Pattern.compile("&([^&;]*)(?=(;|&|$))"); private static final Pattern P_VALID_QUOTES = Pattern.compile("(>|^)([^<]+?)(<|$)", Pattern.DOTALL); private static final Pattern P_END_ARROW = Pattern.compile("^>"); - // private static final Pattern P_BODY_TO_END = Pattern.compile("<([^>]*?)(?=<|$)"); + private static final Pattern P_BODY_TO_END = Pattern.compile("<([^>]*?)(?=<|$)"); private static final Pattern P_XML_CONTENT = Pattern.compile("(^|>)([^<]*?)(?=>)"); private static final Pattern P_STRAY_LEFT_ARROW = Pattern.compile("<([^>]*?)(?=<|$)"); private static final Pattern P_STRAY_RIGHT_ARROW = Pattern.compile("(^|>)([^<]*?)(?=>)"); @@ -131,7 +131,7 @@ public final class HTMLFilter vAllowedEntities = new String[] { "amp", "gt", "lt", "quot" }; stripComment = true; encodeQuotes = true; - alwaysMakeTags = true; + alwaysMakeTags = false; } /** @@ -246,7 +246,7 @@ public final class HTMLFilter // s = regexReplace(P_END_ARROW, "", s); // 不追加结束标签 - // s = regexReplace(P_BODY_TO_END, "<$1>", s); + s = regexReplace(P_BODY_TO_END, "<$1>", s); s = regexReplace(P_XML_CONTENT, "$1<$2", s); } diff --git a/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html b/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html index 54e065a0..f2a15197 100644 --- a/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html +++ b/ruoyi-generator/src/main/resources/templates/tool/gen/importTable.html @@ -59,7 +59,6 @@ { field: 'tableName', title: '表名称', - width: '20%', sortable: true, formatter: function(value, row, index) { return $.table.tooltip(value); @@ -68,7 +67,6 @@ { field: 'tableComment', title: '表描述', - width: '20%', sortable: true, formatter: function(value, row, index) { return $.table.tooltip(value); @@ -77,13 +75,11 @@ { field: 'createTime', title: '创建时间', - width: '20%', sortable: true }, { field: 'updateTime', title: '更新时间', - width: '20%', sortable: true }] }; From aa62d63920d7cde06e300d1499327605e8f6e1fa Mon Sep 17 00:00:00 2001 From: Hacker <721806280@qq.com> Date: Wed, 29 Jul 2020 17:53:09 +0800 Subject: [PATCH 11/20] update ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java. --- .../common/utils/spring/SpringUtils.java | 34 +++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java index e0311595..c5ec46cb 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java @@ -1,5 +1,6 @@ package com.ruoyi.common.utils.spring; +import com.ruoyi.common.utils.StringUtils; import org.springframework.aop.framework.AopContext; import org.springframework.beans.BeansException; import org.springframework.beans.factory.NoSuchBeanDefinitionException; @@ -13,17 +14,25 @@ import org.springframework.stereotype.Component; * @author ruoyi */ @Component -public final class SpringUtils implements BeanFactoryPostProcessor +public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware { /** Spring应用上下文环境 */ private static ConfigurableListableBeanFactory beanFactory; + private static ApplicationContext applicationContext; + @Override - public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException + public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringUtils.beanFactory = beanFactory; } + @Override + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + { + SpringUtils.applicationContext = applicationContext; + } + /** * 获取对象 * @@ -111,4 +120,25 @@ public final class SpringUtils implements BeanFactoryPostProcessor { return (T) AopContext.currentProxy(); } + + /** + * 获取当前的环境配置,无配置返回null + * + * @return 当前的环境配置 + */ + public static String[] getActiveProfiles() + { + return applicationContext.getEnvironment().getActiveProfiles(); + } + + /** + * 获取当前的环境配置,当有多个环境配置时,只获取第一个 + * + * @return 当前的环境配置 + */ + public static String getActiveProfile() + { + final String[] activeProfiles = getActiveProfiles(); + return StringUtils.isNotEmpty(activeProfiles) ? activeProfiles[0] : null; + } } From acbf27bc26b475ce389b367e202f8032eb14281a Mon Sep 17 00:00:00 2001 From: Awen <39176130+yu1183688986@users.noreply.github.com> Date: Wed, 29 Jul 2020 19:16:56 +0800 Subject: [PATCH 12/20] =?UTF-8?q?=E7=BB=99=E8=A1=A8=E6=A0=BC=E5=88=97?= =?UTF-8?q?=E8=B6=85=E5=87=BA=E6=8C=87=E5=AE=9A=E9=95=BF=E5=BA=A6=E6=B5=AE?= =?UTF-8?q?=E5=8A=A8=E6=8F=90=E7=A4=BA=E7=9A=84input=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=AE=BD=E5=BA=A6=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E9=BC=A0=E6=A0=87=E6=82=AC=E6=B5=AE=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=A0=BC=E9=83=A8=E5=88=86=E4=BD=8D=E7=BD=AE=E6=89=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 1fe2b81d..3b99d787 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -294,7 +294,7 @@ var table = { _value = _value.replace(/\'/g,"'"); _value = _value.replace(/\"/g,"""); var actions = []; - actions.push($.common.sprintf('', _value)); + actions.push($.common.sprintf('', _value)); actions.push($.common.sprintf('%s', _target, _value, _text)); return actions.join(''); } else { From 98ee5e97721df420bff31b1acf0210ede23121cb Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 29 Jul 2020 19:21:40 +0800 Subject: [PATCH 13/20] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/controller/DemoTableController.java | 9 +++ .../bootstrap-table-auto-refresh.min.js | 10 +++ .../templates/demo/table/refresh.html | 79 +++++++++++++++++++ .../src/main/resources/templates/include.html | 5 ++ .../src/main/resources/templates/index.html | 1 + 5 files changed, 104 insertions(+) create mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js create mode 100644 ruoyi-admin/src/main/resources/templates/demo/table/refresh.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java index 511e75cb..8093ae12 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java @@ -232,6 +232,15 @@ public class DemoTableController extends BaseController return prefix + "/subdata"; } + /** + * 表格自动刷新 + */ + @GetMapping("/refresh") + public String refresh() + { + return prefix + "/refresh"; + } + /** * 表格其他操作 */ diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js new file mode 100644 index 00000000..fa9432a2 --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.min.js @@ -0,0 +1,10 @@ +/** + * 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.17.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("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),c={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,a={f:f&&!c.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:c},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,p=function(t){return l.call(t).slice(8,-1)},h="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?h.call(t,""):Object(t)}:Object,d=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return y(d(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},g=function(t,e){if(!v(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!v(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!v(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},O=o.document,j=v(O)&&v(O.createElement),S=function(t){return j?O.createElement(t):{}},R=!u&&!i((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,P={f:u?T:function(t,e){if(t=b(t),e=g(e,!0),R)try{return T(t,e)}catch(t){}if(w(t,e))return s(!a.f.call(t,e),t[e])}},x=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,E={f:u?A:function(t,e,n){if(x(t),e=g(e,!0),x(n),R)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_=u?function(t,e,n){return E.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},I=function(t,e){try{_(o,t,e)}catch(n){o[t]=e}return e},k=o["__core-js_shared__"]||I("__core-js_shared__",{}),M=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return M.call(t)});var F,C,B,L=k.inspectSource,N=o.WeakMap,q="function"==typeof N&&/native code/.test(L(N)),z=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),D=0,W=Math.random(),$=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+W).toString(36)},G=z("keys"),K=function(t){return G[t]||(G[t]=$(t))},Q={},V=o.WeakMap;if(q){var X=new V,Y=X.get,H=X.has,J=X.set;F=function(t,e){return J.call(X,t,e),e},C=function(t){return Y.call(X,t)||{}},B=function(t){return H.call(X,t)}}else{var U=K("state");Q[U]=!0,F=function(t,e){return _(t,U,e),e},C=function(t){return w(t,U)?t[U]:{}},B=function(t){return w(t,U)}}var Z,tt,et={set:F,get:C,has:B,enforce:function(t){return B(t)?C(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!v(e)||(n=C(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,a=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||_(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!a&&t[e]&&(f=!0):delete t[e],f?t[e]=i:_(t,e,i)):f?t[e]=i:I(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,ft=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},at=Math.min,st=function(t){return t>0?at(ft(t),9007199254740991):0},lt=Math.max,pt=Math.min,ht=function(t){return function(e,n,r){var o,i=b(e),u=st(i.length),c=function(t,e){var n=ft(t);return n<0?lt(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},yt={includes:ht(!0),indexOf:ht(!1)}.indexOf,dt=function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!w(Q,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=bt.concat("length","prototype"),gt={f:Object.getOwnPropertyNames||function(t){return dt(t,vt)}},mt={f:Object.getOwnPropertySymbols},wt=it("Reflect","ownKeys")||function(t){var e=gt.f(x(t)),n=mt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=wt(e),r=E.f,o=P.f,i=0;i=74)&&(Z=Wt.match(/Chrome\/(\d+)/))&&(tt=Z[1]);var Qt,Vt=tt&&+tt,Xt=qt("species"),Yt=qt("isConcatSpreadable"),Ht=Vt>=51||!i((function(){var t=[];return t[Yt]=!1,t.concat()[0]!==t})),Jt=(Qt="concat",Vt>=51||!i((function(){var t=[];return(t.constructor={})[Xt]=function(){return{foo:1}},1!==t[Qt](Boolean).foo}))),Ut=function(t){if(!v(t))return!1;var e=t[Yt];return void 0!==e?!!e:It(t)};_t({target:"Array",proto:!0,forced:!Ht||!Jt},{concat:function(t){var e,n,r,o,i,u=kt(this),c=Dt(u,0),f=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(c,f++,i)}return c.length=f,c}});var Zt,te=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},ee=[].push,ne=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,f,a,s){for(var l,p,h=kt(c),d=y(h),b=te(f,a,3),v=st(d.length),g=0,m=s||Dt,w=e?m(c,v):n?m(c,0):void 0;v>g;g++)if((u||g in d)&&(p=b(l=d[g],g,h),t))if(e)w[g]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:ee.call(w,l)}else if(o)return!1;return i?-1:r||o?o:w}},re={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6)},oe=Object.keys||function(t){return dt(t,bt)},ie=u?Object.defineProperties:function(t,e){x(t);for(var n,r=oe(e),o=r.length,i=0;o>i;)E.f(t,n=r[i++],e[n]);return t},ue=it("document","documentElement"),ce=K("IE_PROTO"),fe=function(){},ae=function(t){return" + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/include.html b/ruoyi-admin/src/main/resources/templates/include.html index 9348b625..01f8d2bc 100644 --- a/ruoyi-admin/src/main/resources/templates/include.html +++ b/ruoyi-admin/src/main/resources/templates/include.html @@ -195,3 +195,8 @@
    + + +
    + +
    diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index b9f5e82a..b6863814 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -116,6 +116,7 @@
  • 表格拖拽操作
  • 表格行内编辑
  • 主子表提交
  • +
  • 表格自动刷新
  • 表格其他操作
  • From 2651383ab248d5871887dec1f3f2b494b63f5e80 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 29 Jul 2020 19:27:56 +0800 Subject: [PATCH 14/20] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E9=85=8D=E7=BD=AE=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demo/controller/DemoTableController.java | 9 ++ .../print/bootstrap-table-print.min.js | 10 +++ .../resources/templates/demo/table/print.html | 83 +++++++++++++++++++ .../src/main/resources/templates/include.html | 5 ++ .../src/main/resources/templates/index.html | 1 + 5 files changed, 108 insertions(+) create mode 100644 ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/print/bootstrap-table-print.min.js create mode 100644 ruoyi-admin/src/main/resources/templates/demo/table/print.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java index 8093ae12..3ca31e82 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/demo/controller/DemoTableController.java @@ -241,6 +241,15 @@ public class DemoTableController extends BaseController return prefix + "/refresh"; } + /** + * 表格打印配置 + */ + @GetMapping("/print") + public String print() + { + return prefix + "/print"; + } + /** * 表格其他操作 */ diff --git a/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/print/bootstrap-table-print.min.js b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/print/bootstrap-table-print.min.js new file mode 100644 index 00000000..a4948889 --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/print/bootstrap-table-print.min.js @@ -0,0 +1,10 @@ +/** + * 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.17.1 + * @homepage https://bootstrap-table.com + * @author wenzhixin (http://wenzhixin.net.cn/) + * @license MIT + */ + +!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,r){return t(r={exports:{}},r.exports),r.exports}var e=function(t){return t&&t.Math==Math&&t},o=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r&&r)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},c=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f={f:u&&!a.call({1:2},1)?function(t){var r=u(this,t);return!!r&&r.enumerable}:a},l=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(h(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,r){if(!g(t))return t;var n,e;if(r&&"function"==typeof(n=t.toString)&&!g(e=n.call(t)))return e;if("function"==typeof(n=t.valueOf)&&!g(e=n.call(t)))return e;if(!r&&"function"==typeof(n=t.toString)&&!g(e=n.call(t)))return e;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,r){return m.call(t,r)},O=o.document,S=g(O)&&g(O.createElement),j=function(t){return S?O.createElement(t):{}},T=!c&&!i((function(){return 7!=Object.defineProperty(j("div"),"a",{get:function(){return 7}}).a})),P=Object.getOwnPropertyDescriptor,A={f:c?P:function(t,r){if(t=v(t),r=b(r,!0),T)try{return P(t,r)}catch(t){}if(w(t,r))return l(!f.f.call(t,r),t[r])}},x=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},_=Object.defineProperty,L={f:c?_:function(t,r,n){if(x(t),r=b(r,!0),x(n),T)try{return _(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},C=c?function(t,r,n){return L.f(t,r,l(1,n))}:function(t,r,n){return t[r]=n,t},E=function(t,r){try{C(o,t,r)}catch(n){o[t]=r}return r},I=o["__core-js_shared__"]||E("__core-js_shared__",{}),k=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(t){return k.call(t)});var F,M,N,R=I.inspectSource,D=o.WeakMap,G="function"==typeof D&&/native code/.test(R(D)),V=n((function(t){(t.exports=function(t,r){return I[t]||(I[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),B=0,z=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+z).toString(36)},q=V("keys"),W=function(t){return q[t]||(q[t]=U(t))},$={},H=o.WeakMap;if(G){var Y=new H,J=Y.get,Q=Y.has,K=Y.set;F=function(t,r){return K.call(Y,t,r),r},M=function(t){return J.call(Y,t)||{}},N=function(t){return Q.call(Y,t)}}else{var X=W("state");$[X]=!0,F=function(t,r){return C(t,X,r),r},M=function(t){return w(t,X)?t[X]:{}},N=function(t){return w(t,X)}}var Z,tt={set:F,get:M,has:N,enforce:function(t){return N(t)?M(t):F(t,{})},getterFor:function(t){return function(r){var n;if(!g(r)||(n=M(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},rt=n((function(t){var r=tt.get,n=tt.enforce,e=String(String).split("String");(t.exports=function(t,r,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof r||w(i,"name")||C(i,"name",r),n(i).source=e.join("string"==typeof r?r:"")),t!==o?(a?!f&&t[r]&&(u=!0):delete t[r],u?t[r]=i:C(t,r,i)):u?t[r]=i:E(r,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&r(this).source||R(this)}))})),nt=o,et=function(t){return"function"==typeof t?t:void 0},ot=function(t,r){return arguments.length<2?et(nt[t])||et(o[t]):nt[t]&&nt[t][r]||o[t]&&o[t][r]},it=Math.ceil,ct=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ct:it)(t)},ut=Math.min,ft=function(t){return t>0?ut(at(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t,r){var n=at(t);return n<0?lt(n+r,0):st(n,r)},yt=function(t){return function(r,n,e){var o,i=v(r),c=ft(i.length),a=pt(e,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},dt={includes:yt(!0),indexOf:yt(!1)},ht=dt.indexOf,vt=function(t,r){var n,e=v(t),o=0,i=[];for(n in e)!w($,n)&&w(e,n)&&i.push(n);for(;r.length>o;)w(e,n=r[o++])&&(~ht(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=gt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return vt(t,bt)}},wt={f:Object.getOwnPropertySymbols},Ot=ot("Reflect","ownKeys")||function(t){var r=mt.f(x(t)),n=wt.f;return n?r.concat(n(t)):r},St=function(t,r){for(var n=Ot(r),e=L.f,o=A.f,i=0;ii;)L.f(t,n=e[i++],r[n]);return t},Dt=ot("document","documentElement"),Gt=W("IE_PROTO"),Vt=function(){},Bt=function(t){return" + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/include.html b/ruoyi-admin/src/main/resources/templates/include.html index 01f8d2bc..ede6763f 100644 --- a/ruoyi-admin/src/main/resources/templates/include.html +++ b/ruoyi-admin/src/main/resources/templates/include.html @@ -200,3 +200,8 @@
    + + +
    + +
    diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index b6863814..ab4c13ad 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -117,6 +117,7 @@
  • 表格行内编辑
  • 主子表提交
  • 表格自动刷新
  • +
  • 表格打印配置
  • 表格其他操作
  • From 43ce484f36583584722779fa0bd7faa7a0ca592c Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 30 Jul 2020 10:36:10 +0800 Subject: [PATCH 15/20] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=9A=84=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/common/utils/spring/SpringUtils.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java index c5ec46cb..97ff2198 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java @@ -1,20 +1,23 @@ package com.ruoyi.common.utils.spring; -import com.ruoyi.common.utils.StringUtils; import org.springframework.aop.framework.AopContext; import org.springframework.beans.BeansException; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; +import com.ruoyi.common.utils.StringUtils; + /** * spring工具类 方便在非spring管理环境中获取bean * * @author ruoyi */ @Component -public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware +public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationContextAware { /** Spring应用上下文环境 */ private static ConfigurableListableBeanFactory beanFactory; @@ -22,13 +25,13 @@ public final class SpringUtils implements BeanFactoryPostProcessor, ApplicationC private static ApplicationContext applicationContext; @Override - public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException + public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException { SpringUtils.beanFactory = beanFactory; } @Override - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException + public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { SpringUtils.applicationContext = applicationContext; } From 2eb5752cc1f951a22386fd04ae4dd9e891b86c79 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 30 Jul 2020 10:54:17 +0800 Subject: [PATCH 16/20] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89context-path=EF=BC=8C=E9=A6=96=E9=A1=B5favicon.ico?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/index.html | 2 +- .../main/java/com/ruoyi/common/utils/spring/SpringUtils.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/index.html b/ruoyi-admin/src/main/resources/templates/index.html index ab4c13ad..0fdd5154 100644 --- a/ruoyi-admin/src/main/resources/templates/index.html +++ b/ruoyi-admin/src/main/resources/templates/index.html @@ -7,7 +7,7 @@ 若依系统首页 - + diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java index 97ff2198..99293ee4 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/spring/SpringUtils.java @@ -8,7 +8,6 @@ import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; - import com.ruoyi.common.utils.StringUtils; /** From 6d5b261c7d3f0a7bf688833f2baf2019bb5a4b4d Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 31 Jul 2020 16:16:11 +0800 Subject: [PATCH 17/20] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=97=A0=E6=B3=95=E8=AE=BE=E7=BD=AE=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js | 2 +- .../main/resources/templates/system/user/profile/avatar.html | 2 +- .../src/main/java/com/ruoyi/generator/util/VelocityUtils.java | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 3b99d787..0863e8e8 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -11,7 +11,7 @@ var table = { // 设置实例配置 set: function(id) { if($.common.getLength(table.config) > 1) { - var tableId = $.common.isEmpty(id) ? $(event.currentTarget).parents(".bootstrap-table").find(".table").attr("id") : id; + var tableId = $.common.isEmpty(id) ? $(event.currentTarget).parents(".bootstrap-table").find("table.table").attr("id") : id; if ($.common.isNotEmpty(tableId)) { table.options = table.get(tableId); } diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/avatar.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/avatar.html index 4034ba49..a1f9e732 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/avatar.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/avatar.html @@ -15,7 +15,6 @@ .cropped { width: 200px; - height: 345px; border: 1px #ddd solid; box-shadow: 0px 0px 12px #ddd; } @@ -236,6 +235,7 @@ function submitHandler() { $(window).resize(function() { $('.imageBox').height($(window).height() - 80); + $('.cropped').height($(window).height() - 40); }).resize(); if (!HTMLCanvasElement.prototype.toBlob) { diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java index 9f435158..79876811 100644 --- a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java @@ -292,7 +292,6 @@ public class VelocityUtils public static String getPermissionPrefix(String moduleName, String businessName) { return StringUtils.format("{}:{}", moduleName, businessName); - } /** From 3d2d88287afb2fd05946999ddd1128269c112459 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 3 Aug 2020 09:56:57 +0800 Subject: [PATCH 18/20] =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B650?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/system/user/add.html | 2 +- .../src/main/resources/templates/system/user/edit.html | 2 +- .../main/resources/templates/system/user/profile/profile.html | 2 +- .../com/ruoyi/framework/shiro/service/SysLoginService.java | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index c8124ca5..346a0ee6 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -47,7 +47,7 @@
    - +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index c9b61d5b..6004a8c2 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -48,7 +48,7 @@
    - +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index 4c762ad8..853d4a75 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -77,7 +77,7 @@
    - +
    diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java index 92ebe89d..788c0d57 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java @@ -71,6 +71,7 @@ public class SysLoginService // 查询用户信息 SysUser user = userService.selectUserByLoginName(username); + /** if (user == null && maybeMobilePhoneNumber(username)) { user = userService.selectUserByPhoneNumber(username); @@ -80,6 +81,7 @@ public class SysLoginService { user = userService.selectUserByEmail(username); } + */ if (user == null) { @@ -106,6 +108,7 @@ public class SysLoginService return user; } + /** private boolean maybeEmail(String username) { if (!username.matches(UserConstants.EMAIL_PATTERN)) @@ -123,6 +126,7 @@ public class SysLoginService } return true; } + */ /** * 记录登录信息 From 8bf5140a72f7ede6be24c4e5828bdfdff78d2a68 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 3 Aug 2020 11:40:51 +0800 Subject: [PATCH 19/20] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/static/ruoyi/js/common.js | 26 +++++++++++++++++++ .../main/resources/static/ruoyi/js/ry-ui.js | 20 ++++++++++++++ .../resources/templates/system/user/add.html | 6 +++-- .../resources/templates/system/user/edit.html | 2 +- .../system/user/profile/profile.html | 4 ++- .../system/user/profile/resetPwd.html | 4 ++- sql/{ry_20200708.sql => ry_20200803.sql} | 1 + 7 files changed, 58 insertions(+), 5 deletions(-) rename sql/{ry_20200708.sql => ry_20200803.sql} (99%) diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js index 43e8c780..affc223d 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/common.js @@ -347,6 +347,32 @@ function calSumWidth(elements) { return width; } +/** 密码规则范围验证 */ +function checkpwd(chrtype, password) { + if (chrtype == 1) { + if(!$.common.numValid(password)){ + $.modal.alertWarning("密码只能为0-9数字"); + return false; + } + } else if (chrtype == 2) { + if(!$.common.enValid(password)){ + $.modal.alertWarning("密码只能为a-z和A-Z字母"); + return false; + } + } else if (chrtype == 3) { + if(!$.common.enNumValid(password)){ + $.modal.alertWarning("密码必须包含字母以及数字"); + return false; + } + } else if (chrtype == 4) { + if(!$.common.charValid(password)){ + $.modal.alertWarning("密码必须包含字母、数字、以及特殊符号-、_"); + return false; + } + } + return true; +} + // 日志打印封装处理 var log = { log: function(msg) { diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 0863e8e8..64bb93ff 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -1582,6 +1582,26 @@ var table = { isMobile: function () { return navigator.userAgent.match(/(Android|iPhone|SymbianOS|Windows Phone|iPad|iPod)/i); }, + // 数字正则表达式,只能为0-9数字 + numValid : function(text){ + var patten = new RegExp(/^[0-9]+$/); + return patten.test(text); + }, + // 英文正则表达式,只能为a-z和A-Z字母 + enValid : function(text){ + var patten = new RegExp(/^[a-zA-Z]+$/); + return patten.test(text); + }, + // 英文、数字正则表达式,必须包含(字母,数字) + enNumValid : function(text){ + var patten = new RegExp(/^(?=.*[a-zA-Z]+)(?=.*[0-9]+)[a-zA-Z0-9]+$/); + return patten.test(text); + }, + // 英文、数字、特殊字符正则表达式,必须包含(字母,数字,特殊字符-_) + charValid : function(text){ + var patten = new RegExp(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[-_])[A-Za-z\d-_]{6,}$/); + return patten.test(text); + }, } }); })(jQuery); diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index 346a0ee6..2b219b03 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -221,7 +221,9 @@ }); function submitHandler() { - if ($.validate.form()) { + var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var password = $("#password").val(); + if ($.validate.form() && checkpwd(chrtype, password)) { var data = $("#form-user-add").serializeArray(); var status = $("input[id='status']").is(':checked') == true ? 0 : 1; var roleIds = $.form.selectCheckeds("role"); @@ -233,7 +235,7 @@ } } - /*用户管理-新增-选择部门树*/ + /* 用户管理-新增-选择部门树 */ function selectDeptTree() { var treeId = $("#treeId").val(); var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val(); diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index 6004a8c2..d01144db 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -200,7 +200,7 @@ } } - /*用户管理-修改-选择部门树*/ + /* 用户管理-修改-选择部门树 */ function selectDeptTree() { var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val(); var url = ctx + "system/dept/selectDeptTree/" + deptId; diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index 853d4a75..bc840d1e 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -283,7 +283,9 @@ }); function submitChangPassword () { - if ($.validate.form("form-user-resetPwd")) { + var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var password = $("#newPassword").val(); + if ($.validate.form("form-user-resetPwd") && checkpwd(chrtype, password)) { $.operate.saveModal(ctx + "system/user/profile/resetPwd", $('#form-user-resetPwd').serialize()); } } diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html index 7b2b0da6..92b0b3eb 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html @@ -82,7 +82,9 @@ }); function submitHandler() { - if ($.validate.form()) { + var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var password = $("#newPassword").val(); + if ($.validate.form() && checkpwd(chrtype, password)) { $.operate.save(ctx + "system/user/profile/resetPwd", $('#form-user-resetPwd').serialize()); } } diff --git a/sql/ry_20200708.sql b/sql/ry_20200803.sql similarity index 99% rename from sql/ry_20200708.sql rename to sql/ry_20200803.sql index 61ff1cdf..1ca2f894 100644 --- a/sql/ry_20200708.sql +++ b/sql/ry_20200803.sql @@ -535,6 +535,7 @@ insert into sys_config values(1, '主框架页-默认皮肤样式名称', 's insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '初始化密码 123456'); insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '深黑主题theme-dark,浅色主题theme-light,深蓝主题theme-blue'); insert into sys_config values(4, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '是否开启注册用户功能'); +insert into sys_config values(5, '用户管理-密码字符范围', 'sys.account.chrtype', '0', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '默认任意字符范围,0任意(密码可以输入任意字符),1数字(密码只能为0-9数字),2英文字母(密码只能为a-z和A-Z字母),3字母和数字(密码必须包含字母,数字),4字母数组和特殊字符(密码包含字母,数字,特殊字符-_)'); -- ---------------------------- From 43788e059055d15dcd9afab991b456c1ea1dc6bd Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 3 Aug 2020 12:06:47 +0800 Subject: [PATCH 20/20] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-admin/src/main/resources/templates/system/user/add.html | 2 +- .../main/resources/templates/system/user/profile/profile.html | 2 +- .../main/resources/templates/system/user/profile/resetPwd.html | 2 +- sql/ry_20200803.sql | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index 2b219b03..6e3ac0c4 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -221,7 +221,7 @@ }); function submitHandler() { - var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var chrtype = [[${#strings.defaultString(@config.getKey('sys.account.chrtype'), 0)}]]; var password = $("#password").val(); if ($.validate.form() && checkpwd(chrtype, password)) { var data = $("#form-user-add").serializeArray(); diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index bc840d1e..598aea2b 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -283,7 +283,7 @@ }); function submitChangPassword () { - var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var chrtype = [[${#strings.defaultString(@config.getKey('sys.account.chrtype'), 0)}]]; var password = $("#newPassword").val(); if ($.validate.form("form-user-resetPwd") && checkpwd(chrtype, password)) { $.operate.saveModal(ctx + "system/user/profile/resetPwd", $('#form-user-resetPwd').serialize()); diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html index 92b0b3eb..b1fb5e05 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/resetPwd.html @@ -82,7 +82,7 @@ }); function submitHandler() { - var chrtype = [[${@config.getKey('sys.account.chrtype')}]]; + var chrtype = [[${#strings.defaultString(@config.getKey('sys.account.chrtype'), 0)}]]; var password = $("#newPassword").val(); if ($.validate.form() && checkpwd(chrtype, password)) { $.operate.save(ctx + "system/user/profile/resetPwd", $('#form-user-resetPwd').serialize()); diff --git a/sql/ry_20200803.sql b/sql/ry_20200803.sql index 1ca2f894..d2df7472 100644 --- a/sql/ry_20200803.sql +++ b/sql/ry_20200803.sql @@ -535,7 +535,7 @@ insert into sys_config values(1, '主框架页-默认皮肤样式名称', 's insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '初始化密码 123456'); insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '深黑主题theme-dark,浅色主题theme-light,深蓝主题theme-blue'); insert into sys_config values(4, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '是否开启注册用户功能'); -insert into sys_config values(5, '用户管理-密码字符范围', 'sys.account.chrtype', '0', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '默认任意字符范围,0任意(密码可以输入任意字符),1数字(密码只能为0-9数字),2英文字母(密码只能为a-z和A-Z字母),3字母和数字(密码必须包含字母,数字),4字母数组和特殊字符(密码包含字母,数字,特殊字符-_)'); +insert into sys_config values(5, '用户管理-密码字符范围', 'sys.account.chrtype', '0', 'Y', 'admin', '2018-03-16 11-33-00', 'ry', '2018-03-16 11-33-00', '默认任意字符范围,0任意(密码可以输入任意字符),1数字(密码只能为0-9数字),2英文字母(密码只能为a-z和A-Z字母),3字母和数字(密码必须包含字母,数字),4字母数组和特殊字符(密码必须包含字母,数字,特殊字符-_)'); -- ----------------------------