@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 1.97 kB
JavaScript
module.exports=function(e){function n(i){if(o[i])return o[i].exports;var t=o[i]={exports:{},id:i,loaded:!1};return e[i].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}var o={};return n.m=e,n.c=o,n.p="",n(0)}({0:function(e,n,o){e.exports=o(1253)},3:function(e,n){e.exports=function(){throw Error("define cannot be used indirect")}},1038:function(e,n){e.exports=require("./kendo.popup")},1253:function(e,n,o){var i,t,r;!function(s,define){t=[o(1038)],i=s,r="function"==typeof i?i.apply(n,t):i,!(void 0!==r&&(e.exports=r))}(function(){return function(e,n){var o=window.kendo,i=o.mobile.ui,t=o.ui.Popup,r='<div class="km-shim"/>',s="hide",p=i.Widget,a=p.extend({init:function(n,i){var a=this,d=o.mobile.application,c=o.support.mobileOS,u=d?d.os.name:c?c.name:"ios",l="ios"===u||"wp"===u||!!d&&d.os.skin,f="blackberry"===u,h=i.align||(l?"bottom center":f?"center right":"center center"),m=i.position||(l?"bottom center":f?"center right":"center center"),v=i.effect||(l?"slideIn:up":f?"slideIn:left":"fade:in"),w=e(r).handler(a).hide();p.fn.init.call(a,n,i),a.shim=w,n=a.element,i=a.options,i.className&&a.shim.addClass(i.className),i.modal||a.shim.on("down","_hide"),(d?d.element:e(document.body)).append(w),a.popup=new t(a.element,{anchor:w,modal:!0,appendTo:w,origin:h,position:m,animation:{open:{effects:v,duration:i.duration},close:{duration:i.duration}},close:function(e){var n=!1;a._apiCall||(n=a.trigger(s)),n&&e.preventDefault(),a._apiCall=!1},deactivate:function(){w.hide()},open:function(){w.show()}}),o.notify(a)},events:[s],options:{name:"Shim",modal:!1,align:n,position:n,effect:n,duration:200},show:function(){this.popup.open()},hide:function(){this._apiCall=!0,this.popup.close()},destroy:function(){p.fn.destroy.call(this),this.shim.kendoDestroy(),this.popup.destroy(),this.shim.remove()},_hide:function(n){n&&e.contains(this.shim.children().children(".k-popup")[0],n.target)||this.popup.close()}});i.plugin(a)}(window.kendo.jQuery),window.kendo},o(3))}});