@progress/kendo-ui
Version:
This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.
1 lines • 2.72 kB
JavaScript
module.exports=function(t){var n={};function o(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}return o.m=t,o.c=n,o.p="",o(0)}({0:function(e,i,t){e.exports=t(1368)},3:function(e,i){e.exports=function(){throw Error("define cannot be used indirect")}},1342:function(e,i){e.exports=require("./kendo.mobile.pane")},1368:function(e,i,t){var n;t(3),t=[t(1342)],void 0===(i="function"==typeof(n=function(){var e={id:"mobile.splitview",name:"SplitView",category:"mobile",description:"The mobile SplitView is a tablet-specific view that consists of two or more mobile Pane widgets.",depends:["mobile.pane"]},a=window.kendo.jQuery,i=void 0,l=window.kendo,s=l.mobile.ui,r=s.Widget,c="<div class='km-expanded-pane-shim'></div>",t,n=s.View.extend({init:function(e,t){var i=this,n,o;r.fn.init.call(i,e,t);e=i.element;a.extend(i,t);i._id();if(!i.options.$angular){i._layout();i._overlay()}else i._overlay();i._style();o=e.children(i._locate("modalview"));if(!i.options.$angular)l.mobile.init(o);else o.each(function(e,i){l.compileMobileDirective(a(i),t.$angular[0])});i.panes=[];i._paramsHistory=[];if(!i.options.$angular)i.content.children(l.roleSelector("pane")).each(function(){n=l.initWidget(this,{},s.roles);i.panes.push(n)});else{i.element.children(l.directiveSelector("pane")).each(function(){n=l.compileMobileDirective(a(this),t.$angular[0]);i.panes.push(n)});i.element.children(l.directiveSelector("header footer")).each(function(){l.compileMobileDirective(a(this),t.$angular[0])})}i.expandedPaneShim=a(c).appendTo(i.element);i._shimUserEvents=new l.UserEvents(i.expandedPaneShim,{fastTap:true,tap:function(){i.collapsePanes()}})},_locate:function(e){return this.options.$angular?l.directiveSelector(e):l.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,i=e.element;e.transition=l.attrValue(i,"transition");l.mobile.ui.View.prototype._layout.call(this);l.mobile.init(this.header.add(this.footer));e.element.addClass("km-splitview");e.content.addClass("km-split-content")},_style:function(){var e=this.options.style,i=this.element,t;if(e){t=e.split(" ");a.each(t,function(){i.addClass("km-split-"+this)})}},showStart:function(){var e=this;e.element.css("display","");if(!e.inited){e.inited=true;a.each(e.panes,function(){if(this.options.initial)this.navigateToInitial();else this.navigate("")});e.trigger("init",{view:e})}else this._invokeNgController();e.trigger("show",{view:e})}});return s.plugin(n),window.kendo})?n.apply(i,t):n)||(e.exports=i)}});