diff -r 2da3d3340403 -r 2d1d43c3a2c2 www-thermferm/jqwidgets/jqxdockinglayout.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www-thermferm/jqwidgets/jqxdockinglayout.js Sun May 28 14:19:57 2017 +0200 @@ -0,0 +1,7 @@ +/* +jQWidgets v4.5.2 (2017-May) +Copyright (c) 2011-2017 jQWidgets. +License: http://jqwidgets.com/license/ +*/ +!function(a){"use strict";a.jqx.jqxWidget("jqxDockingLayout","jqxLayout",{}),a.extend(a.jqx._jqxDockingLayout.prototype,{defineInstance:function(){var b={events:["float","dock"]};return this.base&&(this.base.dockingLayout=this),this===a.jqx._jqxDockingLayout.prototype?b:(a.extend(!0,this,b),b)},createInstance:function(){var b=this;if(!b.base.host.jqxWindow)throw new Error("jqxDockingLayout: Missing reference to jqxwindow.js.");b._oldIE=a.jqx.browser.msie&&a.jqx.browser.version<9,b._addClasses(),b.base._initiallyHidden!==!0&&(b._createOverlay(),b._createEdgeOverlays())},loadLayout:function(b){if(void 0!==b&&a.isEmptyObject(b)===!1){for(var c=this.base,d=c.element.id,e=c._find(document.body,"."+d+"FloatGroup"),f=0;f
',e._overlay=a(e._overlay);var h=f._find(e._overlay,".jqx-docking-layout-overlay-square-center")[0];e._overlayCenter=a(h.firstChild),e._dropOverlay=document.createElement("div"),e._dropOverlay.className=e.toThemeProperty("jqx-docking-layout-drop-overlay"),e._dropOverlayHelper=a(e._dropOverlay),f._ie7?a("body").append(e._overlay,e._dropOverlay):(f.element.appendChild(e._overlay[0]),f.element.appendChild(e._dropOverlay)),e._overlayWidth=e._overlay[0].offsetWidth,e._overlayHeight=e._overlay[0].offsetHeight,e._overlay[0].style.display="none",e._addOverlayHandlers(),e._squares=[f._find(e._overlay,".jqx-docking-layout-overlay-square-top")[0],f._find(e._overlay,".jqx-docking-layout-overlay-square-left")[0],h,f._find(e._overlay,".jqx-docking-layout-overlay-square-right")[0],f._find(e._overlay,".jqx-docking-layout-overlay-square-bottom")[0]],e._sansCenter=[a(f._find(a(e._squares[0]),".jqx-docking-layout-overlay-inner-square")[0]),a(f._find(a(e._squares[1]),".jqx-docking-layout-overlay-inner-square")[0]),a(f._find(a(e._squares[3]),".jqx-docking-layout-overlay-inner-square")[0]),a(f._find(a(e._squares[4]),".jqx-docking-layout-overlay-inner-square")[0])];var i=!1;f._touchDevice?(e.addHandler(a(document),"touchmove.jqxDockingLayout"+g,function(b){if(e._windowDragged){b.preventDefault();var d=b.originalEvent.touches[0],f=a(document.elementFromPoint(d.pageX,d.pageY));c(f)}}),e.addHandler(a(document),"touchend.jqxDockingLayout"+g,function(){i!==!1&&(d(i),i=!1)})):a.each(e._squares,function(){e.addHandler(this,"mouseenter.jqxDockingLayout"+g,function(){c(a(this))}),e.addHandler(this,"mouseleave.jqxDockingLayout"+g,function(){e._dropOverlay.style.display="none"}),e.addHandler(this,"mouseup.jqxDockingLayout"+g,function(){d(a(this))})})},_addOverlayHandlers:function(){var b=this,c=b._overlayWidth,d=b._overlayHeight;b.base._touchDevice?b.addHandler(a(document),"touchmove.jqxDockingLayout"+b.base.element.id,function(a){var e=a.originalEvent.touches[0];b._x=e.pageX,b._y=e.pageY,b._windowDragged&&!b._oldIE&&(b._checkPosition(c,d),b._windowCreate&&b._draggedWindow.element.jqxWindow("move",e.pageX-50,e.pageY-10))}):b.addHandler(a(document),"mousemove.jqxDockingLayout"+b.base.element.id,function(a){b._x=a.pageX,b._y=a.pageY,b._windowDragged&&!b._oldIE&&(b._checkPosition(c,d),b._windowCreate&&b._draggedWindow.element.jqxWindow("move",a.pageX-50,a.pageY-10))})},_checkPosition:function(a,b){for(var c=this,d=c.base,e=c._x,f=c._y,g=0;g=l&&e<=l+i&&f>=m&&f<=m+j){if(("documentGroup"===h.settings.type&&"documentGroup"===c._draggedWindow.fromGroup.type||"tabbedGroup"===h.settings.type&&("tabbedGroup"===c._draggedWindow.fromGroup.type||"autoHideGroup"===c._draggedWindow.fromGroup.type)||"layoutGroup"===h.settings.type)&&h.settings.allowDrop!==!1)c._overlayCenter.removeClass(d.toThemeProperty("jqx-fill-state-disabled"));else if(c._overlayCenter.addClass(d.toThemeProperty("jqx-fill-state-disabled")),"floatGroup"===h.settings.parent.type)return;for(var n=0;n
',i='
';return f="left"===b||"top"===b?h+i:i+h,e=document.createElement("div"),e.className=d.toThemeProperty("jqx-widget-content jqx-docking-layout-overlay-square jqx-docking-layout-overlay-square-edge"),e.innerHTML='
'+f+"
",d._ie7?document.body.appendChild(e):d.element.appendChild(e),c._edgeOverlays.push(e),a(e)}var c=this,d=c.base;c._edgeOverlays=[],c._leftOverlay=b("left"),c._rightOverlay=b("right"),c._topOverlay=b("top"),c._bottomOverlay=b("bottom"),c._addEdgeOverlaysHandlers()},_addEdgeOverlaysHandlers:function(){function b(b,c,d,e){f._dropOverlay.style.display="block",f._dropOverlay.style.width=b,f._dropOverlay.style.height=c,a(f._dropOverlay).offset({left:d,top:e})}function c(c){switch(e=g.host.offset(),c=f._closest(a(c),"jqx-docking-layout-overlay-square-edge")[0],i=c,c){case f._leftOverlay[0]:b("100px",g.host.height()+"px",e.left,e.top);break;case f._rightOverlay[0]:b("100px",g.host.height()+"px",e.left+g.host.width()-100,e.top);break;case f._topOverlay[0]:b(g.host.width()+"px","100px",e.left,e.top);break;case f._bottomOverlay[0]:b(g.host.width()+"px","100px",e.left,e.top+g.host.height()-100);break;default:g._touchDevice&&(i=!1)}}function d(a){switch(a){case f._leftOverlay[0]:f._dropToEdge("left",0,"horizontal","width");break;case f._rightOverlay[0]:f._dropToEdge("right",g.layout[0].items.length-1,"horizontal","width");break;case f._topOverlay[0]:f._dropToEdge("top",0,"vertical","height");break;case f._bottomOverlay[0]:f._dropToEdge("bottom",g.layout[0].items.length-1,"vertical","height")}}var e,f=this,g=f.base,h=g.element.id,i=!1;g._touchDevice?(f.addHandler(a(document),"touchmove.jqxDockingLayout"+h,function(b){if(f._windowDragged){b.preventDefault();var d=b.originalEvent.touches[0],e=a(document.elementFromPoint(d.pageX,d.pageY));c(e)}}),f.addHandler(a(document),"touchend.jqxDockingLayout"+h,function(){i!==!1&&(d(i),i=!1)})):a.each(f._edgeOverlays,function(){f.addHandler(this,"mouseenter.jqxDockingLayout"+h,function(){c(this)}),f.addHandler(this,"mouseleave.jqxDockingLayout"+h,function(){f._dropOverlay.style.display="none"}),f.addHandler(this,"mouseup.jqxDockingLayout"+h,function(){d(this)})})},_dropToEdge:function(a,b,c,d){var e,f,g=this,h=g.base,i=h.layout[0],j=g._getDraggedWindowInformation(),k=j.title,l=j.content,m=j.groupType,n=j.itemType,o=[];if(g._removeFloatGroupObject(g._draggedWindow.element.current),i.orientation===c){e={type:m,parent:i},e[d]=g._draggedWindow.element[d]();for(var p=0;p=0;b--){var c=a[b];c.removed===!0&&a.splice(b,1)}},_clearTextSelection:function(){try{document.selection?document.selection.empty():window.getSelection&&(window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges())}catch(a){}},_closest:function(b,c){if(b.hasClass(c))return b;for(var d=a(b[0].parentNode);null!==d[0]&&"#document"!==d[0].nodeName;){if(d.hasClass(c))return d;d=a(d[0].parentNode)}}})}(jqxBaseFramework); +