Revert "-- corr"

This reverts commit 5315c47fcd.
This commit is contained in:
2024-11-05 10:55:34 -07:00
parent 5315c47fcd
commit 927295c7ba
276 changed files with 6381 additions and 3001 deletions

View File

@@ -1 +1 @@
Sys.Extended.UI.FloatingBehavior=function(t){function e(t){window._event=t;var e=this.get_element();this.checkCanDrag(t.target)&&(i=$common.getLocation(e),t.preventDefault(),this.startDragDrop(e))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[t]);var n,o,i,r,a,s=Function.createDelegate(this,e);this.add_move=function(t){this.get_events().addHandler("move",t)},this.remove_move=function(t){this.get_events().removeHandler("move",t)},this.get_handle=function(){return n},this.set_handle=function(t){null!=n&&$removeHandler(n,"mousedown",s),n=t,$addHandler(n,"mousedown",s)},this.get_profileProperty=function(){return r},this.set_profileProperty=function(t){r=t},this.get_profileComponent=function(){return a},this.set_profileComponent=function(t){a=t},this.get_location=function(){return o},this.set_location=function(t){o!=t&&(o=t,this.get_isInitialized()&&$common.setLocation(this.get_element(),o),this.raisePropertyChanged("location"))},this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize"),Sys.Extended.UI.DragDropManager.registerDropTarget(this);var t=this.get_element();o||(o=$common.getLocation(t)),t.style.position="fixed",$common.setLocation(t,o)},this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this),n&&s&&$removeHandler(n,"mousedown",s),s=null,Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")},this.checkCanDrag=function(t){var e=["input","button","select","textarea","label"],n=t.tagName;return!("a"==n.toLowerCase()&&null!=t.href&&t.href.length>0)&&!(Array.indexOf(e,n.toLowerCase())>-1)},this.get_dragDataType=function(){return"_floatingObject"},this.getDragData=function(t){return null},this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move},this.onDragStart=function(){},this.onDrag=function(){},this.onDragEnd=function(t){if(!t){var e=this.get_events().getHandler("move");if(e){var n=new Sys.CancelEventArgs;e(this,n),t=n.get_cancel()}}var r=this.get_element();t?$common.setLocation(r,i):(o=$common.getLocation(r),this.raisePropertyChanged("location"))},this.startDragDrop=function(t){Sys.Extended.UI.DragDropManager.startDragDrop(this,t,null)},this.get_dropTargetElement=function(){return document.body},this.canDrop=function(t,e,n){return"_floatingObject"==e},this.drop=function(t,e,n){},this.onDragEnterTarget=function(t,e,n){},this.onDragLeaveTarget=function(t,e,n){},this.onDragInTarget=function(t,e,n){}},Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);
Sys.Extended.UI.FloatingBehavior=function(n){function o(n){window._event=n;var t=this.get_element();this.checkCanDrag(n.target)&&(u=$common.getLocation(t),n.preventDefault(),this.startDragDrop(t))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[n]);var i,t,u,f,e,r=Function.createDelegate(this,o);this.add_move=function(n){this.get_events().addHandler("move",n)};this.remove_move=function(n){this.get_events().removeHandler("move",n)};this.get_handle=function(){return i};this.set_handle=function(n){i!=null&&$removeHandler(i,"mousedown",r);i=n;$addHandler(i,"mousedown",r)};this.get_profileProperty=function(){return f};this.set_profileProperty=function(n){f=n};this.get_profileComponent=function(){return e};this.set_profileComponent=function(n){e=n};this.get_location=function(){return t};this.set_location=function(n){t!=n&&(t=n,this.get_isInitialized()&&$common.setLocation(this.get_element(),t),this.raisePropertyChanged("location"))};this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize");Sys.Extended.UI.DragDropManager.registerDropTarget(this);var n=this.get_element();t||(t=$common.getLocation(n));n.style.position="fixed";$common.setLocation(n,t)};this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this);i&&r&&$removeHandler(i,"mousedown",r);r=null;Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")};this.checkCanDrag=function(n){var t=n.tagName;return t.toLowerCase()=="a"&&n.href!=null&&n.href.length>0?!1:Array.indexOf(["input","button","select","textarea","label"],t.toLowerCase())>-1?!1:!0};this.get_dragDataType=function(){return"_floatingObject"};this.getDragData=function(){return null};this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move};this.onDragStart=function(){};this.onDrag=function(){};this.onDragEnd=function(n){var i,r,f;n||(i=this.get_events().getHandler("move"),i&&(r=new Sys.CancelEventArgs,i(this,r),n=r.get_cancel()));f=this.get_element();n?$common.setLocation(f,u):(t=$common.getLocation(f),this.raisePropertyChanged("location"))};this.startDragDrop=function(n){Sys.Extended.UI.DragDropManager.startDragDrop(this,n,null)};this.get_dropTargetElement=function(){return document.body};this.canDrop=function(n,t){return t=="_floatingObject"};this.drop=function(){};this.onDragEnterTarget=function(){};this.onDragLeaveTarget=function(){};this.onDragInTarget=function(){}};Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);