UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

1 lines 2.52 kB
module.exports=function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}({0:function(e,t,i){e.exports=i(1254)},3:function(e,t){e.exports=function(){throw Error("define cannot be used indirect")}},1228:function(e,t){e.exports=require("./kendo.mobile.pane")},1254:function(e,t,i){var n,o,a;!function(l,define){o=[i(1228)],n=l,a="function"==typeof n?n.apply(t,o):n,!(void 0!==a&&(e.exports=a))}(function(){return function(e,t){var i=window.kendo,n=i.mobile.ui,o=n.Widget,a="<div class='km-expanded-pane-shim' />",l=n.View,s=l.extend({init:function(t,l){var s,r,c=this;o.fn.init.call(c,t,l),t=c.element,e.extend(c,l),c._id(),c.options.$angular?c._overlay():(c._layout(),c._overlay()),c._style(),r=t.children(c._locate("modalview")),c.options.$angular?r.each(function(t,n){i.compileMobileDirective(e(n),l.$angular[0])}):i.mobile.init(r),c.panes=[],c._paramsHistory=[],c.options.$angular?(c.element.children(i.directiveSelector("pane")).each(function(){s=i.compileMobileDirective(e(this),l.$angular[0]),c.panes.push(s)}),c.element.children(i.directiveSelector("header footer")).each(function(){i.compileMobileDirective(e(this),l.$angular[0])})):c.content.children(i.roleSelector("pane")).each(function(){s=i.initWidget(this,{},n.roles),c.panes.push(s)}),c.expandedPaneShim=e(a).appendTo(c.element),c._shimUserEvents=new i.UserEvents(c.expandedPaneShim,{fastTap:!0,tap:function(){c.collapsePanes()}})},_locate:function(e){return this.options.$angular?i.directiveSelector(e):i.roleSelector(e)},options:{name:"SplitView",style:"horizontal"},expandPanes:function(){this.element.addClass("km-expanded-splitview")},collapsePanes:function(){this.element.removeClass("km-expanded-splitview")},_layout:function(){var e=this,t=e.element;e.transition=i.attrValue(t,"transition"),i.mobile.ui.View.prototype._layout.call(this),i.mobile.init(this.header.add(this.footer)),e.element.addClass("km-splitview"),e.content.addClass("km-split-content")},_style:function(){var t,i=this.options.style,n=this.element;i&&(t=i.split(" "),e.each(t,function(){n.addClass("km-split-"+this)}))},showStart:function(){var t=this;t.element.css("display",""),t.inited?this._invokeNgController():(t.inited=!0,e.each(t.panes,function(){this.options.initial?this.navigateToInitial():this.navigate("")}),t.trigger("init",{view:t})),t.trigger("show",{view:t})}});n.plugin(s)}(window.kendo.jQuery),window.kendo},i(3))}});