UNPKG

@progress/kendo-ui

Version:

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

1 lines 3.32 kB
module.exports=function(i){function e(n){if(t[n])return t[n].exports;var o=t[n]={exports:{},id:n,loaded:!1};return i[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var t={};return e.m=i,e.c=t,e.p="",e(0)}({0:function(i,e,t){i.exports=t(1266)},3:function(i,e){i.exports=function(){throw Error("define cannot be used indirect")}},1058:function(i,e){i.exports=require("./kendo.view")},1266:function(i,e,t){var n,o,r;!function(a,define){o=[t(1058)],n=a,r="function"==typeof n?n.apply(e,o):n,!(void 0!==r&&(i.exports=r))}(function(){return function(i,e){var t=window.kendo,n=t.roleSelector,o=t.ui,r=o.Widget,a=t.ViewEngine,s=t.View,l=i.extend,c="navigate",p="viewShow",u="sameViewRequested",d=t.support.mobileOS,v=d.ios&&!d.appMode&&d.flatVersion>=700,h="#:back",f=".",w={pane:"k-pane",paneWrapper:"k-pane-wrapper",collapsiblePane:"k-collapsible-pane",vertical:"k-vertical"},g=r.extend({init:function(i,e){var n=this;r.fn.init.call(n,i,e),e=n.options,i=n.element,i.addClass(w.pane),n.options.collapsible&&i.addClass(w.collapsiblePane),this.history=[],this.historyCallback=function(i,e,t){var o=n.transition;return n.transition=null,v&&t&&(o="none"),n.viewEngine.showView(i,o,e)},this._historyNavigate=function(i){if(i===h){if(1===n.history.length)return;n.history.pop(),i=n.history[n.history.length-1]}else i instanceof s&&(i=""),n.history.push(i);n.historyCallback(i,t.parseQueryStringParams(i))},this._historyReplace=function(i){var e=t.parseQueryStringParams(i);n.history[n.history.length-1]=i,n.historyCallback(i,e)},n.viewEngine=new a(l({},{container:i,transition:e.transition,modelScope:e.modelScope,rootNeeded:!e.initial,serverNavigation:e.serverNavigation,remoteViewURLPrefix:e.root||"",layout:e.layout,$angular:e.$angular,showStart:function(){n.closeActiveDialogs()},after:function(){},viewShow:function(i){n.trigger(p,i)},loadStart:function(){},loadComplete:function(){},sameViewRequested:function(){n.trigger(u)},viewTypeDetermined:function(i){i.remote&&n.options.serverNavigation||n.trigger(c,{url:i.url})}},this.options.viewEngine)),this._setPortraitWidth(),t.onResize(function(){n._setPortraitWidth()})},closeActiveDialogs:function(){var e=this.element.find(n("actionsheet popover modalview")).filter(":visible");e.each(function(){t.widgetInstance(i(this),o).close()})},navigateToInitial:function(){var i=this.options.initial;return i&&this.navigate(i),i},options:{name:"Pane",portraitWidth:"",transition:"",layout:"",collapsible:!1,initial:null,modelScope:window},events:[c,p,u],append:function(i){return this.viewEngine.append(i)},destroy:function(){var i=this;r.fn.destroy.call(i),i.viewEngine&&i.viewEngine.destroy()},navigate:function(i,e){i instanceof s&&(i=i.id),this.transition=e,this._historyNavigate(i)},replace:function(i,e){i instanceof s&&(i=i.id),this.transition=e,this._historyReplace(i)},view:function(){return this.viewEngine.view()},_setPortraitWidth:function(){var i,e=this.options.portraitWidth;e&&(i=t.mobile.application.element.is(f+w.vertical)?e:"auto",this.element.css("width",i))}});g.wrap=function(i,e){var o,r;return i.is(n("view"))||(i=i.wrap("<div data-"+t.ns+'role="view" data-stretch="true"></div>').parent()),o=i.wrap('<div class="'+w.paneWrapper+' k-widget"><div></div></div>').parent(),r=new g(o,e),r.navigate(""),r},t.Pane=g}(window.kendo.jQuery),window.kendo},t(3))}});