mivita/resources/assets/vendor/libs/bootstrap-table/extensions/mobile/mobile.js
2018-10-29 09:39:31 +01:00

1 line
No EOL
2.5 KiB
JavaScript
Executable file

!function(t,i){var n=function(t){var i={};function n(o){if(i[o])return i[o].exports;var e=i[o]={i:o,l:!1,exports:{}};return t[o].call(e.exports,e,e.exports,n),e.l=!0,e.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=335)}({334:function(t,i){!function(t){"use strict";var i=function(i,n){i.options.columnsHidden.length>0&&t.each(i.columns,function(t,o){-1!==i.options.columnsHidden.indexOf(o.field)&&o.visible!==n&&i.toggleColumn(i.fieldsColumnsIndex[o.field],n,!0)})},n=function(t,i,n){t.options.minHeight?i<=t.options.minWidth&&n<=t.options.minHeight?o(t):i>t.options.minWidth&&n>t.options.minHeight&&e(t):i<=t.options.minWidth?o(t):i>t.options.minWidth&&e(t),function(t){(t.options.height||t.options.showFooter)&&setTimeout(function(){t.resetView.call(t)},1)}(t)},o=function(t){s(t,!1),i(t,!1)},e=function(t){s(t,!0),i(t,!0)},s=function(t,i){t.options.cardView=i,t.toggleView()};t.extend(t.fn.bootstrapTable.defaults,{mobileResponsive:!1,minWidth:562,minHeight:void 0,heightThreshold:100,checkOnInit:!0,columnsHidden:[]});var h=t.fn.bootstrapTable.Constructor,r=h.prototype.init;h.prototype.init=function(){if(r.apply(this,Array.prototype.slice.apply(arguments)),this.options.mobileResponsive&&this.options.minWidth){this.options.minWidth<100&&this.options.resizable&&(console.log("The minWidth when the resizable extension is active should be greater or equal than 100"),this.options.minWidth=100);var i,o,e,s=this,h={width:t(window).width(),height:t(window).height()};if(t(window).on("resize orientationchange",(i=function(i){var o=t(this).height(),e=t(this).width();(Math.abs(h.height-o)>s.options.heightThreshold||h.width!=e)&&(n(s,e,o),h={width:e,height:o})},o=200,function(){var t=this,n=arguments;clearTimeout(e),e=setTimeout(function(){e=null,i.apply(t,n)},o)})),this.options.checkOnInit){var u=t(window).height(),l=t(window).width();n(this,l,u),h={width:l,height:u}}}}}(jQuery)},335:function(t,i,n){n(334)}});if("object"==typeof n){var o=["object"==typeof module&&"object"==typeof module.exports?module.exports:null,"undefined"!=typeof window?window:null,t&&t!==window?t:null];for(var e in n)o[0]&&(o[0][e]=n[e]),o[1]&&"__esModule"!==e&&(o[1][e]=n[e]),o[2]&&(o[2][e]=n[e])}}(this);