diff -r e2b82881c13e -r b216f9d4b917 www-thermferm/jqwidgets/jqxdockinglayout.js --- a/www-thermferm/jqwidgets/jqxdockinglayout.js Sun Jul 10 16:58:40 2022 +0200 +++ b/www-thermferm/jqwidgets/jqxdockinglayout.js Mon Aug 08 10:54:27 2022 +0200 @@ -1,7 +1,9 @@ /* -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); - +jQWidgets v12.0.1 (2021-Mar) +Copyright (c) 2011-2021 jQWidgets. +License: https://jqwidgets.com/license/ +*/ +/* eslint-disable */ + +(function(a){a.jqx.jqxWidget("jqxDockingLayout","jqxLayout",{});a.extend(a.jqx._jqxDockingLayout.prototype,{defineInstance:function(){var b={events:["float","dock"]};if(this.base){this.base.dockingLayout=this}if(this===a.jqx._jqxDockingLayout.prototype){return b}a.extend(true,this,b);return 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();if(b.base._initiallyHidden!==true){b._createOverlay();b._createEdgeOverlays()}},loadLayout:function(e){if(e!==undefined&&a.isEmptyObject(e)===false){var f=this.base,g=f.element.id;var d=f._find(document.body,"."+g+"FloatGroup");for(var c=0;c
';d._overlay=a(d._overlay);var h=e._find(d._overlay,".jqx-docking-layout-overlay-square-center")[0];d._overlayCenter=a(h.firstChild);d._dropOverlay=document.createElement("div");d._dropOverlay.className=d.toThemeProperty("jqx-docking-layout-drop-overlay");d._dropOverlayHelper=a(d._dropOverlay);if(!e._ie7){e.element.appendChild(d._overlay[0]);e.element.appendChild(d._dropOverlay)}else{a("body").append(d._overlay,d._dropOverlay)}d._overlayWidth=d._overlay[0].offsetWidth;d._overlayHeight=d._overlay[0].offsetHeight;d._overlay[0].style.display="none";d._addOverlayHandlers();d._squares=[e._find(d._overlay,".jqx-docking-layout-overlay-square-top")[0],e._find(d._overlay,".jqx-docking-layout-overlay-square-left")[0],h,e._find(d._overlay,".jqx-docking-layout-overlay-square-right")[0],e._find(d._overlay,".jqx-docking-layout-overlay-square-bottom")[0]];d._sansCenter=[a(e._find(a(d._squares[0]),".jqx-docking-layout-overlay-inner-square")[0]),a(e._find(a(d._squares[1]),".jqx-docking-layout-overlay-inner-square")[0]),a(e._find(a(d._squares[3]),".jqx-docking-layout-overlay-inner-square")[0]),a(e._find(a(d._squares[4]),".jqx-docking-layout-overlay-inner-square")[0])];var c=false;function g(k,j,m,l){d._dropOverlay.style.display="block";d._dropOverlay.style.width=k+"px";d._dropOverlay.style.height=j+"px";a(d._dropOverlay).offset({left:m,top:l})}function f(l){l=d._closest(l,"jqx-docking-layout-overlay-square");c=l;if(a(e._find(l,".jqx-docking-layout-overlay-inner-square")[0]).hasClass("jqx-fill-state-disabled")){return}var m=d._dropToGroup.element.width(),k=d._dropToGroup.element.height(),j=d._dropToGroup.element.offset();if(l.hasClass("jqx-docking-layout-overlay-square-top")){g(m,k/2,j.left,j.top)}else{if(l.hasClass("jqx-docking-layout-overlay-square-left")){g(m/2,k,j.left,j.top)}else{if(l.hasClass("jqx-docking-layout-overlay-square-center")&&!d._overlayCenter.hasClass("jqx-docking-layout-square-disabled")){g(m,k,j.left,j.top)}else{if(l.hasClass("jqx-docking-layout-overlay-square-right")){g(m/2,k,j.left+m/2,j.top)}else{if(l.hasClass("jqx-docking-layout-overlay-square-bottom")){g(m,k/2,j.left,j.top+k/2)}else{if(e._touchDevice){d._dropOverlay.style.display="none";c=false}}}}}}}function b(t){var l=d._dropToGroup.settings;if(a(e._find(t,".jqx-docking-layout-overlay-inner-square")[0]).hasClass("jqx-fill-state-disabled")){d._hideOverlays();return}if(t.hasClass("jqx-docking-layout-overlay-square-top")){d._dropHandler(0,"vertical","height","top")}else{if(t.hasClass("jqx-docking-layout-overlay-square-left")){d._dropHandler(0,"horizontal","width","left")}else{if(t.hasClass("jqx-docking-layout-overlay-square-center")){var p=d._getDraggedWindowInformation(),s=p.title,q=p.content,k,r;if(l.type==="documentGroup"){k=l.widget;r="documentPanel"}else{if(l.type==="tabbedGroup"){if(l.parent.type==="floatGroup"){k=l.widget}else{k=a(e._find(l.widget,".jqx-ribbon")[0])}r="layoutPanel"}}if(l.type==="layoutGroup"){d._dropToEmptyLayoutGroup(p)}else{for(var n=0;n=d&&n<=d+b&&m>=l&&m<=l+o){if(((q.settings.type==="documentGroup"&&h._draggedWindow.fromGroup.type==="documentGroup")||(q.settings.type==="tabbedGroup"&&(h._draggedWindow.fromGroup.type==="tabbedGroup"||h._draggedWindow.fromGroup.type==="autoHideGroup"))||(q.settings.type==="layoutGroup"))&&q.settings.allowDrop!==false){h._overlayCenter.removeClass(c.toThemeProperty("jqx-fill-state-disabled"))}else{h._overlayCenter.addClass(c.toThemeProperty("jqx-fill-state-disabled"));if(q.settings.parent.type==="floatGroup"){return}}for(var e=0;e
',j='
',h;if(e==="left"||e==="top"){h=f+j}else{h=j+f}i=document.createElement("div");i.className=d.toThemeProperty("jqx-widget-content jqx-docking-layout-overlay-square jqx-docking-layout-overlay-square-edge");i.innerHTML='
'+h+"
";if(!d._ie7){d.element.appendChild(i)}else{document.body.appendChild(i)}c._edgeOverlays.push(i);return a(i)}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 g(k,j,m,l){d._dropOverlay.style.display="block";d._dropOverlay.style.width=k;d._dropOverlay.style.height=j;a(d._dropOverlay).offset({left:m,top:l})}var d=this,e=d.base,i=e.element.id,c,f=false;function h(j){c=e.host.offset();j=d._closest(a(j),"jqx-docking-layout-overlay-square-edge")[0];f=j;switch(j){case d._leftOverlay[0]:g("100px",e.host.height()+"px",c.left,c.top);break;case d._rightOverlay[0]:g("100px",e.host.height()+"px",c.left+e.host.width()-100,c.top);break;case d._topOverlay[0]:g(e.host.width()+"px","100px",c.left,c.top);break;case d._bottomOverlay[0]:g(e.host.width()+"px","100px",c.left,c.top+e.host.height()-100);break;default:if(e._touchDevice){f=false}}}function b(j){switch(j){case d._leftOverlay[0]:d._dropToEdge("left",0,"horizontal","width");break;case d._rightOverlay[0]:d._dropToEdge("right",e.layout[0].items.length-1,"horizontal","width");break;case d._topOverlay[0]:d._dropToEdge("top",0,"vertical","height");break;case d._bottomOverlay[0]:d._dropToEdge("bottom",e.layout[0].items.length-1,"vertical","height");break}}if(!e._touchDevice){a.each(d._edgeOverlays,function(){d.addHandler(this,"mouseenter.jqxDockingLayout"+i,function(){h(this)});d.addHandler(this,"mouseleave.jqxDockingLayout"+i,function(){d._dropOverlay.style.display="none"});d.addHandler(this,"mouseup.jqxDockingLayout"+i,function(){b(this)})})}else{d.addHandler(a(document),"touchmove.jqxDockingLayout"+i,function(k){if(d._windowDragged){k.preventDefault();var l=k.originalEvent.touches[0],j=a(document.elementFromPoint(l.pageX,l.pageY));h(j)}});d.addHandler(a(document),"touchend.jqxDockingLayout"+i,function(){if(f!==false){b(f);f=false}})}},_dropToEdge:function(c,d,w,y){var f=this,b=f.base,h=b.layout[0],n=f._getDraggedWindowInformation(),B=n.title,t=n.content,q=n.groupType,A=n.itemType,m=[],x,s;f._removeFloatGroupObject(f._draggedWindow.element.current);if(h.orientation===w){x={type:q,parent:h};x[y]=f._draggedWindow.element[y]();for(var v=0;v=0;b--){var c=d[b];if(c.removed===true){d.splice(b,1)}}},_clearTextSelection:function(){try{if(document.selection){document.selection.empty()}else{if(window.getSelection){if(window.getSelection().empty){window.getSelection().empty()}else{if(window.getSelection().removeAllRanges){window.getSelection().removeAllRanges()}}}}}catch(b){}},_closest:function(d,c){if(d.hasClass(c)){return d}var b=a(d[0].parentNode);while(b[0]!==null&&b[0].nodeName!=="#document"){if(b.hasClass(c)){return b}b=a(b[0].parentNode)}}})})(jqxBaseFramework); +