@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.8 kB
JavaScript
module.exports=function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={exports:{},id:i,loaded:!1};return n[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var e={};return t.m=n,t.c=e,t.p="",t(0)}({0:function(n,t,e){n.exports=e(1246)},3:function(n,t){n.exports=function(){throw Error("define cannot be used indirect")}},1006:function(n,t){n.exports=require("./kendo.core")},1246:function(n,t,e){var i,o,a;!function(s,define){o=[e(1006)],i=s,a="function"==typeof i?i.apply(t,o):i,!(void 0!==a&&(n.exports=a))}(function(){return function(n,t){var e=window.kendo,i=e.mobile.ui,o=i.Widget,a=n.map(e.eventMap,function(n){return n}).join(" ").split(" "),s=o.extend({init:function(t,e){var i=this,a=n('<div class="km-loader"><span class="km-loading km-spin"></span><span class="km-loading-left"></span><span class="km-loading-right"></span></div>');o.fn.init.call(i,a,e),i.container=t,i.captureEvents=!1,i._attachCapture(),a.append(i.options.loading).hide().appendTo(t)},options:{name:"Loader",loading:"<h1>Loading...</h1>",timeout:100},show:function(){var n=this;clearTimeout(n._loading),n.options.loading!==!1&&(n.captureEvents=!0,n._loading=setTimeout(function(){n.element.show()},n.options.timeout))},hide:function(){this.captureEvents=!1,clearTimeout(this._loading),this.element.hide()},changeMessage:function(n){this.options.loading=n,this.element.find(">h1").html(n)},transition:function(){this.captureEvents=!0,this.container.css("pointer-events","none")},transitionDone:function(){this.captureEvents=!1,this.container.css("pointer-events","")},_attachCapture:function(){function n(n){e.captureEvents&&n.preventDefault()}var t,e=this;for(e.captureEvents=!1,t=0;t<a.length;t++)e.container[0].addEventListener(a[t],n,!0)}});i.plugin(s)}(window.kendo.jQuery),window.kendo},e(3))}});