3 lines
44 KiB
JavaScript
3 lines
44 KiB
JavaScript
define("local_treestudyplan/vue-easy-dnd/vue-easy-dnd.esm",["exports","./reflect-metadata","./vue-property-decorator"],(function(_exports,_reflectMetadata,_vuePropertyDecorator){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.ReorderEvent=_exports.InsertEvent=_exports.DropMixin=_exports.DropMask=_exports.DropList=_exports.Drop=_exports.DragMixin=_exports.DragImagesManager=_exports.DragAwareMixin=_exports.Drag=_exports.DnDEvent=void 0,_exports.createDragImage=createDragImage,_exports.dnd=void 0;var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},extendStatics(d,b)};function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}var __assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)};function __decorate(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r}function __metadata(metadataKey,metadataValue){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(metadataKey,metadataValue)}function __values(o){var m="function"==typeof Symbol&&o[Symbol.iterator],i=0;return m?m.call(o):{next:function(){return o&&i>=o.length&&(o=void 0),{value:o&&o[i++],done:!o}}}}function __read(o,n){var m="function"==typeof Symbol&&o[Symbol.iterator];if(!m)return o;var r,e,i=m.call(o),ar=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)ar.push(r.value)}catch(error){e={error:error}}finally{try{r&&!r.done&&(m=i.return)&&m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i<arguments.length;i++)ar=ar.concat(__read(arguments[i]));return ar}var dnd=new(function(){function DnD(){this.inProgress=!1,this.type=null,this.data=null,this.source=null,this.top=null,this.position=null,this.eventBus=new _vuePropertyDecorator.Vue,this.sourceListeners=null,this.success=null}return DnD.prototype.startDrag=function(source,event,x,y,type,data){this.type=type,this.data=data,this.source=source,this.position={x:x,y:y},this.top=null,this.sourceListeners=source.$listeners,this.inProgress=!0,this.emit(event,"dragstart"),this.emit(event,"dragtopchanged",{previousTop:null})},DnD.prototype.resetVariables=function(){this.inProgress=!1,this.data=null,this.source=null,this.position=null,this.success=null},DnD.prototype.stopDrag=function(event){this.success=null!==this.top&&this.top.compatibleMode&&this.top.dropAllowed,null!==this.top&&this.emit(event,"drop"),this.emit(event,"dragend"),this.resetVariables()},DnD.prototype.cancelDrag=function(event){this.success=!1,this.emit(event,"dragend"),this.resetVariables()},DnD.prototype.mouseMove=function(event,comp){if(this.inProgress){var prevent=!1,previousTop=this.top;null===comp||comp.isDropMask?(this.top=null,prevent=!0):comp.candidate(this.type,this.data,this.source)&&(this.top=comp,prevent=!0),prevent&&event.stopPropagation(),this.top!==previousTop&&this.emit(event.detail.native,"dragtopchanged",{previousTop:previousTop}),this.position={x:event.detail.x,y:event.detail.y},this.emit(event.detail.native,"dragpositionchanged")}},DnD.prototype.emit=function(native,event,data){this.eventBus.$emit(event,__assign({type:this.type,data:this.data,top:this.top,source:this.source,position:this.position,success:this.success,native:native},data))},DnD.prototype.on=function(event,callback){this.eventBus.$on(event,callback)},DnD.prototype.off=function(event,callback){this.eventBus.$off(event,callback)},DnD}());_exports.dnd=dnd,_exports.dnd=dnd=_vuePropertyDecorator.Vue.observable(dnd);var DragAwareMixin=function(_super){function DragAwareMixin(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(DragAwareMixin,_super),Object.defineProperty(DragAwareMixin.prototype,"dragInProgress",{get:function(){return dnd.inProgress},enumerable:!0,configurable:!0}),Object.defineProperty(DragAwareMixin.prototype,"dragData",{get:function(){return dnd.data},enumerable:!0,configurable:!0}),Object.defineProperty(DragAwareMixin.prototype,"dragType",{get:function(){return dnd.type},enumerable:!0,configurable:!0}),Object.defineProperty(DragAwareMixin.prototype,"dragPosition",{get:function(){return dnd.position},enumerable:!0,configurable:!0}),Object.defineProperty(DragAwareMixin.prototype,"dragSource",{get:function(){return dnd.source},enumerable:!0,configurable:!0}),Object.defineProperty(DragAwareMixin.prototype,"dragTop",{get:function(){return dnd.top},enumerable:!0,configurable:!0}),DragAwareMixin=__decorate([(0,_vuePropertyDecorator.Component)({})],DragAwareMixin)}(_vuePropertyDecorator.Vue);function createDragImage(el){var clone=function(el){var clone=el.cloneNode(!0);copyStyle(el,clone);for(var vSrcElements=el.getElementsByTagName("*"),vDstElements=clone.getElementsByTagName("*"),i=vSrcElements.length;i--;){copyStyle(vSrcElements[i],vDstElements[i])}return clone}(el);return clone.style.position="fixed",clone.style.margin="0",clone.style["z-index"]="1000",clone.style.transition="opacity 0.2s",clone}function copyStyle(src,destination){var e_1,_a,computedStyle=window.getComputedStyle(src);try{for(var computedStyle_1=__values(computedStyle),computedStyle_1_1=computedStyle_1.next();!computedStyle_1_1.done;computedStyle_1_1=computedStyle_1.next()){var key=computedStyle_1_1.value;if("width"===key){var width="border-box"===computedStyle.getPropertyValue("box-sizing")?src.clientWidth:src.clientWidth-parseFloat(computedStyle.paddingLeft)-parseFloat(computedStyle.paddingRight);destination.style.setProperty("width",width+"px")}else if("height"===key){var height="border-box"===computedStyle.getPropertyValue("box-sizing")?src.clientHeight:src.clientHeight-parseFloat(computedStyle.paddingTop)-parseFloat(computedStyle.paddingBottom);destination.style.setProperty("height",height+"px")}else destination.style.setProperty(key,computedStyle.getPropertyValue(key),computedStyle.getPropertyPriority(key))}}catch(e_1_1){e_1={error:e_1_1}}finally{try{computedStyle_1_1&&!computedStyle_1_1.done&&(_a=computedStyle_1.return)&&_a.call(computedStyle_1)}finally{if(e_1)throw e_1.error}}destination.style.pointerEvents="none"}_exports.DragAwareMixin=DragAwareMixin;var regex=/(auto|scroll)/,style=function(node,prop){return getComputedStyle(node,null).getPropertyValue(prop)},scrollparent=function(node){return node&&node!==document.body?function(node){return regex.test(style(node,"overflow")+style(node,"overflow-y")+style(node,"overflow-x"))}(node)?node:scrollparent(node.parentNode):document.body},timer=null;function cancelScrollAction(){clearTimeout(timer)}function performEdgeScroll(event,container,clientX,clientY,edgeSize){if(!container||!edgeSize)return cancelScrollAction(),!1;var rect=container.getBoundingClientRect(),isBody=container===document.body,viewportX=clientX-rect.left,viewportY=clientY-rect.top;isBody&&(viewportX=clientX,viewportY=clientY);var viewportWidth=rect.width,viewportHeight=rect.height;isBody&&(viewportWidth=document.documentElement.clientWidth,viewportHeight=document.documentElement.clientHeight);var edgeTop=edgeSize,edgeLeft=edgeSize,edgeBottom=viewportHeight-edgeSize,edgeRight=viewportWidth-edgeSize,isInLeftEdge=viewportX<edgeLeft,isInRightEdge=viewportX>edgeRight,isInTopEdge=viewportY<edgeTop,isInBottomEdge=viewportY>edgeBottom;if(!(isInLeftEdge||isInRightEdge||isInTopEdge||isInBottomEdge))return cancelScrollAction(),!1;var documentWidth=Math.max(container.scrollWidth,container.offsetWidth,container.clientWidth),documentHeight=Math.max(container.scrollHeight,container.offsetHeight,container.clientHeight),maxScrollX=documentWidth-viewportWidth,maxScrollY=documentHeight-viewportHeight;return function checkForWindowScroll(){cancelScrollAction(),function(){var currentScrollX=container.scrollLeft,currentScrollY=container.scrollTop;isBody&&(currentScrollX=window.pageXOffset,currentScrollY=window.pageYOffset);var canScrollUp=currentScrollY>0,canScrollDown=currentScrollY<maxScrollY,canScrollLeft=currentScrollX>0,canScrollRight=currentScrollX<maxScrollX,nextScrollX=currentScrollX,nextScrollY=currentScrollY,maxStep=50;if(isInLeftEdge&&canScrollLeft){nextScrollX-=maxStep*((edgeLeft-viewportX)/edgeSize)}else if(isInRightEdge&&canScrollRight){nextScrollX+=maxStep*((viewportX-edgeRight)/edgeSize)}if(isInTopEdge&&canScrollUp){nextScrollY-=maxStep*((edgeTop-viewportY)/edgeSize)}else if(isInBottomEdge&&canScrollDown){nextScrollY+=maxStep*((viewportY-edgeBottom)/edgeSize)}return nextScrollX=Math.max(0,Math.min(maxScrollX,nextScrollX)),nextScrollY=Math.max(0,Math.min(maxScrollY,nextScrollY)),(nextScrollX!==currentScrollX||nextScrollY!==currentScrollY)&&((isBody?window:container).scrollTo(nextScrollX,nextScrollY),!0)}()&&(timer=setTimeout(checkForWindowScroll,30))}(),!0}var DragMixin=function(_super){function DragMixin(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.dragInitialised=!1,_this.dragStarted=!1,_this.ignoreNextClick=!1,_this.initialUserSelect=null,_this.downEvent=null,_this.startPosition=null,_this.delayTimer=null,_this.scrollContainer=null,_this}return __extends(DragMixin,_super),DragMixin.prototype.onSelectStart=function(e){e.stopPropagation(),e.preventDefault()},DragMixin.prototype.performVibration=function(){this.vibration>0&&window.navigator&&window.navigator.vibrate&&window.navigator.vibrate(this.vibration)},DragMixin.prototype.onMouseDown=function(e){var target,goodButton,_this=this;if("mousedown"===e.type){var mouse=e;target=e.target,goodButton=1===mouse.buttons}else{target=(touch=e).touches[0].target,goodButton=!0}if(!this.disabled&&null===this.downEvent&&goodButton&&(!target.matches(".dnd-no-drag, .dnd-no-drag *")&&(!this.handle||target.matches(this.handle+", "+this.handle+" *")))){if(this.scrollContainer=scrollparent(target),this.initialUserSelect=document.body.style.userSelect,document.documentElement.style.userSelect="none",this.dragStarted=!1,this.downEvent=e,"mousedown"===this.downEvent.type){mouse=event;this.startPosition={x:mouse.clientX,y:mouse.clientY}}else{var touch=event;this.startPosition={x:touch.touches[0].clientX,y:touch.touches[0].clientY}}this.delay?(this.dragInitialised=!1,clearTimeout(this.delayTimer),this.delayTimer=setTimeout((function(){_this.dragInitialised=!0,_this.performVibration()}),this.delay)):(this.dragInitialised=!0,this.performVibration()),document.addEventListener("click",this.onMouseClick,!0),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("touchend",this.onMouseUp),document.addEventListener("selectstart",this.onSelectStart),document.addEventListener("keyup",this.onKeyUp),setTimeout((function(){document.addEventListener("mousemove",_this.onMouseMove),document.addEventListener("touchmove",_this.onMouseMove,{passive:!1}),document.addEventListener("easy-dnd-move",_this.onEasyDnDMove)}),0),e.stopPropagation()}},DragMixin.prototype.onMouseClick=function(e){if(this.ignoreNextClick)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.ignoreNextClick=!1,!1},DragMixin.prototype.onMouseMove=function(e){if(null!==this.downEvent&&("touchstart"!==this.downEvent.type||"mousemove"!==e.type)){var target,x,y;if("touchmove"===e.type){var touch=e;if(x=touch.touches[0].clientX,y=touch.touches[0].clientY,!(target=document.elementFromPoint(x,y)))return}else{var mouse=e;x=mouse.clientX,y=mouse.clientY,target=mouse.target}var dist=Math.sqrt(Math.pow(this.startPosition.x-x,2)+Math.pow(this.startPosition.y-y,2));if(!this.dragStarted&&dist>this.delta&&(this.dragInitialised?(this.ignoreNextClick=!0,this.dragStarted=!0,dnd.startDrag(this,this.downEvent,this.startPosition.x,this.startPosition.y,this.type,this.data),document.documentElement.classList.add("drag-in-progress")):clearTimeout(this.delayTimer)),this.dragStarted){var currEdgeSize=this.dragTop&&void 0!==this.dragTop.$props.scrollingEdgeSize?this.dragTop.$props.scrollingEdgeSize:this.scrollingEdgeSize;if(currEdgeSize)performEdgeScroll(0,this.dragTop?scrollparent(this.dragTop.$el):this.scrollContainer,x,y,currEdgeSize);else cancelScrollAction();var custom=new CustomEvent("easy-dnd-move",{bubbles:!0,cancelable:!0,detail:{x:x,y:y,native:e}});target.dispatchEvent(custom)}this.dragInitialised&&e.cancelable&&e.preventDefault()}},DragMixin.prototype.onEasyDnDMove=function(e){dnd.mouseMove(e,null)},DragMixin.prototype.onMouseUp=function(e){var _this=this;"touchstart"===this.downEvent.type&&"mouseup"===e.type||setTimeout((function(){_this.cancelDragActions(),_this.dragStarted&&dnd.stopDrag(e),_this.finishDrag()}),0)},DragMixin.prototype.onKeyUp=function(e){var _this=this;"Escape"===e.key&&(this.cancelDragActions(),setTimeout((function(){dnd.cancelDrag(e),_this.finishDrag()}),0))},DragMixin.prototype.cancelDragActions=function(){this.dragInitialised=!1,clearTimeout(this.delayTimer),cancelScrollAction()},DragMixin.prototype.finishDrag=function(){this.downEvent=null,this.scrollContainer=null,this.dragStarted&&document.documentElement.classList.remove("drag-in-progress"),document.removeEventListener("click",this.onMouseClick,!0),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onMouseMove),document.removeEventListener("easy-dnd-move",this.onEasyDnDMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchend",this.onMouseUp),document.removeEventListener("selectstart",this.onSelectStart),document.removeEventListener("keyup",this.onKeyUp),document.documentElement.style.userSelect=this.initialUserSelect},DragMixin.prototype.dndDragStart=function(ev){ev.source===this&&this.$emit("dragstart",ev)},DragMixin.prototype.dndDragEnd=function(ev){ev.source===this&&this.$emit("dragend",ev)},DragMixin.prototype.created=function(){dnd.on("dragstart",this.dndDragStart),dnd.on("dragend",this.dndDragEnd)},DragMixin.prototype.mounted=function(){this.$el.addEventListener("mousedown",this.onMouseDown),this.$el.addEventListener("touchstart",this.onMouseDown)},DragMixin.prototype.beforeDestroy=function(){dnd.off("dragstart",this.dndDragStart),dnd.off("dragend",this.dndDragEnd),this.$el.removeEventListener("mousedown",this.onMouseDown),this.$el.removeEventListener("touchstart",this.onMouseDown)},Object.defineProperty(DragMixin.prototype,"cssClasses",{get:function(){var clazz={"dnd-drag":!0};return this.disabled?clazz:__assign(__assign({},clazz),{"drag-source":this.dragInProgress&&this.dragSource===this,"drag-mode-copy":"copy"===this.currentDropMode,"drag-mode-cut":"cut"===this.currentDropMode,"drag-mode-reordering":"reordering"===this.currentDropMode,"drag-no-handle":!this.handle})},enumerable:!0,configurable:!0}),Object.defineProperty(DragMixin.prototype,"currentDropMode",{get:function(){return this.dragInProgress&&this.dragSource===this&&this.dragTop&&this.dragTop.dropAllowed?this.dragTop.reordering?"reordering":this.dragTop.mode:null},enumerable:!0,configurable:!0}),DragMixin.prototype.createDragImage=function(selfTransform){var image;if(this.$scopedSlots["drag-image"]){var el=this.$refs["drag-image"]||document.createElement("div");image=1!==el.childElementCount?createDragImage(el):createDragImage(el.children.item(0))}else(image=createDragImage(this.$el)).style.transform=selfTransform;return this.dragClass&&image.classList.add(this.dragClass),image.classList.add("dnd-ghost"),image.__opacity=this.dragImageOpacity,image},__decorate([(0,_vuePropertyDecorator.Prop)({default:null,type:null}),__metadata("design:type",String)],DragMixin.prototype,"type",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:null,type:null}),__metadata("design:type",Object)],DragMixin.prototype,"data",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:.7,type:Number}),__metadata("design:type",Object)],DragMixin.prototype,"dragImageOpacity",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:!1,type:Boolean}),__metadata("design:type",Boolean)],DragMixin.prototype,"disabled",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:!1,type:Boolean}),__metadata("design:type",Boolean)],DragMixin.prototype,"goBack",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({required:!1,type:String}),__metadata("design:type",String)],DragMixin.prototype,"handle",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:Number,default:3}),__metadata("design:type",Number)],DragMixin.prototype,"delta",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:Number,default:0}),__metadata("design:type",Number)],DragMixin.prototype,"delay",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:String,default:null}),__metadata("design:type",String)],DragMixin.prototype,"dragClass",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:Number,default:0}),__metadata("design:type",Number)],DragMixin.prototype,"vibration",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:Number,default:100}),__metadata("design:type",Number)],DragMixin.prototype,"scrollingEdgeSize",void 0),DragMixin=__decorate([(0,_vuePropertyDecorator.Component)({})],DragMixin)}(DragAwareMixin);_exports.DragMixin=DragMixin;var Drag=function(_super){function Drag(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(Drag,_super),__decorate([(0,_vuePropertyDecorator.Prop)({default:"div",type:[String,Object,Function]}),__metadata("design:type",Object)],Drag.prototype,"tag",void 0),Drag=__decorate([(0,_vuePropertyDecorator.Component)({})],Drag)}(DragMixin);var HEAD,normalizeComponent_1=function(template,style,script,scopeId,isFunctionalTemplate,moduleIdentifier,shadowMode,createInjector,createInjectorSSR,createInjectorShadow){"boolean"!=typeof shadowMode&&(createInjectorSSR=createInjector,createInjector=shadowMode,shadowMode=!1);var hook,options="function"==typeof script?script.options:script;if(template&&template.render&&(options.render=template.render,options.staticRenderFns=template.staticRenderFns,options._compiled=!0,isFunctionalTemplate&&(options.functional=!0)),scopeId&&(options._scopeId=scopeId),moduleIdentifier?(hook=function(context){(context=context||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(context=__VUE_SSR_CONTEXT__),style&&style.call(this,createInjectorSSR(context)),context&&context._registeredComponents&&context._registeredComponents.add(moduleIdentifier)},options._ssrRegister=hook):style&&(hook=shadowMode?function(){style.call(this,createInjectorShadow(this.$root.$options.shadowRoot))}:function(context){style.call(this,createInjector(context))}),hook)if(options.functional){var originalRender=options.render;options.render=function(h,context){return hook.call(context),originalRender(h,context)}}else{var existing=options.beforeCreate;options.beforeCreate=existing?[].concat(existing,hook):[hook]}return script},isOldIE="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var styles={};var browser=function(context){return function(id,style){return function(id,css){var group=isOldIE?css.media||"default":id,style=styles[group]||(styles[group]={ids:new Set,styles:[]});if(!style.ids.has(id)){style.ids.add(id);var code=css.source;if(css.map&&(code+="\n/*# sourceURL="+css.map.sources[0]+" */",code+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(css.map))))+" */"),style.element||(style.element=document.createElement("style"),style.element.type="text/css",css.media&&style.element.setAttribute("media",css.media),void 0===HEAD&&(HEAD=document.head||document.getElementsByTagName("head")[0]),HEAD.appendChild(style.element)),"styleSheet"in style.element)style.styles.push(code),style.element.styleSheet.cssText=style.styles.filter(Boolean).join("\n");else{var index=style.ids.size-1,textNode=document.createTextNode(code),nodes=style.element.childNodes;nodes[index]&&style.element.removeChild(nodes[index]),nodes.length?style.element.insertBefore(textNode,nodes[index]):style.element.appendChild(textNode)}}}(id,style)}},Drag$1=normalizeComponent_1({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c(_vm.tag,_vm._g(_vm._b({tag:"component",class:_vm.cssClasses,scopedSlots:_vm._u([_vm._l(_vm.$scopedSlots,(function(_,slot){return{key:slot,fn:function(scope){return[_vm._t(slot,null,null,scope)]}}}))],null,!0)},"component",_vm.$attrs,!1),_vm.$listeners),[_vm._t("default"),_vm._v(" "),_vm._v(" "),_vm.dragInitialised?_c("div",{ref:"drag-image",staticClass:"__drag-image"},[_vm._t("drag-image")],2):_vm._e()],2)},staticRenderFns:[]},(function(inject){inject&&(inject("data-v-fb811e22_0",{source:".drop-allowed.drop-in *{cursor:inherit!important}.drop-forbidden.drop-in,.drop-forbidden.drop-in *{cursor:no-drop!important}.drag-no-handle:hover{cursor:move;cursor:grab}",map:void 0,media:void 0}),inject("data-v-fb811e22_1",{source:"html.drag-in-progress *{cursor:move!important;cursor:grabbing!important}",map:void 0,media:void 0}),inject("data-v-fb811e22_2",{source:".__drag-image[data-v-fb811e22]{position:fixed;top:-10000px;left:-10000px;will-change:left,top}",map:void 0,media:void 0}))}),Drag,"data-v-fb811e22",!1,undefined,browser,void 0);_exports.Drag=Drag$1;var DropMixin=function(_super){function DropMixin(){var _this=_super.call(this)||this;return _this.isDrop=!0,_this}return __extends(DropMixin,_super),DropMixin.prototype.effectiveAcceptsType=function(type){return null===this.acceptsType||("string"==typeof this.acceptsType?this.acceptsType===type:"object"==typeof this.acceptsType&&Array.isArray(this.acceptsType)?this.acceptsType.includes(type):this.acceptsType(type))},DropMixin.prototype.effectiveAcceptsData=function(data,type){return this.acceptsData(data,type)},DropMixin.prototype.created=function(){dnd.on("dragpositionchanged",this.onDragPositionChanged),dnd.on("dragtopchanged",this.onDragTopChanged),dnd.on("drop",this.onDrop),dnd.on("dragend",this.onDragEnd)},DropMixin.prototype.beforeDestroy=function(){dnd.off("dragpositionchanged",this.onDragPositionChanged),dnd.off("dragtopchanged",this.onDragTopChanged),dnd.off("drop",this.onDrop),dnd.off("dragend",this.onDragEnd)},DropMixin.prototype.onDragPositionChanged=function(event){this===event.top&&this.$emit("dragover",event)},DropMixin.prototype.onDragTopChanged=function(event){this===event.top&&this.$emit("dragenter",event),this===event.previousTop&&this.$emit("dragleave",event)},DropMixin.prototype.onDragEnd=function(event){this===event.top&&this.$emit("dragend",event)},DropMixin.prototype.onDrop=function(event){this.dropIn&&this.compatibleMode&&this.dropAllowed&&this.doDrop(event)},DropMixin.prototype.doDrop=function(event){this.$emit("drop",event),event.source.$emit(this.mode,event)},DropMixin.prototype.mounted=function(){var el=this.$el,comp=this;el.addEventListener("easy-dnd-move",(function(e){dnd.mouseMove(e,comp)}))},Object.defineProperty(DropMixin.prototype,"compatibleMode",{get:function(){return this.dragInProgress?"copy"===this.mode||dnd.sourceListeners.hasOwnProperty(this.mode):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropMixin.prototype,"dropIn",{get:function(){return this.dragInProgress?this.dragTop===this:null},enumerable:!0,configurable:!0}),Object.defineProperty(DropMixin.prototype,"typeAllowed",{get:function(){return this.dragInProgress?this.effectiveAcceptsType(this.dragType):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropMixin.prototype,"dropAllowed",{get:function(){return this.dragInProgress&&this.typeAllowed?this.compatibleMode&&this.effectiveAcceptsData(this.dragData,this.dragType):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropMixin.prototype,"cssClasses",{get:function(){var clazz={"dnd-drop":!0};return null!==this.dropIn&&(clazz["drop-in"]=this.dropIn,clazz["drop-out"]=!this.dropIn),null!==this.typeAllowed&&(clazz["type-allowed"]=this.typeAllowed,clazz["type-forbidden"]=!this.typeAllowed),null!==this.dropAllowed&&(clazz["drop-allowed"]=this.dropAllowed,clazz["drop-forbidden"]=!this.dropAllowed),clazz},enumerable:!0,configurable:!0}),Object.defineProperty(DropMixin.prototype,"cssStyle",{get:function(){return{}},enumerable:!0,configurable:!0}),DropMixin.prototype.candidate=function(type,data,source){return this.effectiveAcceptsType(type)},DropMixin.prototype.createDragImage=function(){var image;if(this.$refs["drag-image"]){var el=this.$refs["drag-image"];(image=1!==el.childElementCount?createDragImage(el):createDragImage(el.children.item(0))).__opacity=this.dragImageOpacity,image.classList.add("dnd-ghost")}else image="source";return image},__decorate([(0,_vuePropertyDecorator.Prop)({default:function(){return function(){return!0}},type:[String,Array,Function]}),__metadata("design:type",Object)],DropMixin.prototype,"acceptsType",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:function(){return!0},type:Function}),__metadata("design:type",Object)],DropMixin.prototype,"acceptsData",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:"copy"}),__metadata("design:type",String)],DropMixin.prototype,"mode",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:.7,type:Number}),__metadata("design:type",Object)],DropMixin.prototype,"dragImageOpacity",void 0),DropMixin=__decorate([(0,_vuePropertyDecorator.Component)({}),__metadata("design:paramtypes",[])],DropMixin)}(DragAwareMixin);_exports.DropMixin=DropMixin;var Drop=function(_super){function Drop(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(Drop,_super),Object.defineProperty(Drop.prototype,"showDragImage",{get:function(){return this.dragInProgress&&this.typeAllowed&&this.$scopedSlots["drag-image"]},enumerable:!0,configurable:!0}),__decorate([(0,_vuePropertyDecorator.Prop)({default:"div",type:[String,Object,Function]}),__metadata("design:type",Object)],Drop.prototype,"tag",void 0),Drop=__decorate([(0,_vuePropertyDecorator.Component)({})],Drop)}(DropMixin),Drop$1=normalizeComponent_1({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c(_vm.tag,_vm._g(_vm._b({tag:"component",class:_vm.cssClasses,style:_vm.cssStyle,scopedSlots:_vm._u([_vm._l(_vm.$scopedSlots,(function(_,slot){return{key:slot,fn:function(scope){return[_vm._t(slot,null,null,scope)]}}}))],null,!0)},"component",_vm.$attrs,!1),_vm.$listeners),[_vm._t("default"),_vm._v(" "),_vm._v(" "),_vm.showDragImage?_c("div",{ref:"drag-image",staticClass:"__drag-image"},[_vm._t("drag-image",null,{type:_vm.dragType,data:_vm.dragData})],2):_vm._e()],2)},staticRenderFns:[]},(function(inject){inject&&(inject("data-v-1d9169a9_0",{source:".drop-allowed.drop-in,.drop-allowed.drop-in *{cursor:pointer!important}.drop-forbidden.drop-in,.drop-forbidden.drop-in *{cursor:no-drop!important}",map:void 0,media:void 0}),inject("data-v-1d9169a9_1",{source:".__drag-image[data-v-1d9169a9]{position:fixed;top:-10000px;left:-10000px;will-change:left,top}",map:void 0,media:void 0}))}),Drop,"data-v-1d9169a9",!1,undefined,browser,void 0);_exports.Drop=Drop$1;var DropMask=function(_super){function DropMask(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.isDropMask=!0,_this}return __extends(DropMask,_super),DropMask.prototype.mounted=function(){var el=this.$el,comp=this;el.addEventListener("easy-dnd-move",(function(e){dnd.mouseMove(e,comp)}))},DropMask.prototype.createDragImage=function(){return"source"},__decorate([(0,_vuePropertyDecorator.Prop)({default:"div",type:[String,Object,Function]}),__metadata("design:type",Object)],DropMask.prototype,"tag",void 0),DropMask=__decorate([(0,_vuePropertyDecorator.Component)({})],DropMask)}(DragAwareMixin),DropMask$1=normalizeComponent_1({render:function(){var _vm=this,_h=_vm.$createElement;return(_vm._self._c||_h)(_vm.tag,_vm._g(_vm._b({tag:"component",scopedSlots:_vm._u([_vm._l(_vm.$scopedSlots,(function(_,slot){return{key:slot,fn:function(scope){return[_vm._t(slot,null,null,scope)]}}}))],null,!0)},"component",_vm.$attrs,!1),_vm.$listeners),[_vm._t("default")],2)},staticRenderFns:[]},undefined,DropMask,undefined,!1,undefined,void 0,void 0);_exports.DropMask=DropMask$1;var DragImagesManager=function(_super){function DragImagesManager(){var _this=_super.call(this)||this;return _this.selfTransform=null,_this.clones=null,_this.source=null,_this.sourcePos=null,_this.sourceClone=null,dnd.on("dragstart",_this.onDragStart),dnd.on("dragtopchanged",_this.onDragTopChanged),dnd.on("dragpositionchanged",_this.onDragPositionChanged),dnd.on("dragend",_this.onDragEnd),_this}return __extends(DragImagesManager,_super),DragImagesManager.prototype.onDragStart=function(event){this.cleanUp(),this.sourcePos={x:event.source.$el.getBoundingClientRect().left,y:event.source.$el.getBoundingClientRect().top},this.selfTransform="translate(-"+(event.position.x-this.sourcePos.x)+"px, -"+(event.position.y-this.sourcePos.y)+"px)",this.clones=new Map,this.source=event.source},DragImagesManager.prototype.onDragEnd=function(event){var _this=this;_vuePropertyDecorator.Vue.nextTick((function(){if(!event.success&&_this.source&&_this.source.goBack){var img_1=_this.switch(null);window.requestAnimationFrame((function(){img_1.style.transition="all 0.5s",window.requestAnimationFrame((function(){img_1.style.left=_this.sourcePos.x+"px",img_1.style.top=_this.sourcePos.y+"px",img_1.style.transform="translate(0,0)";var handler=function(){_this.cleanUp(),img_1.removeEventListener("transitionend",handler)};img_1.addEventListener("transitionend",handler)}))}))}else _this.cleanUp()}))},DragImagesManager.prototype.cleanUp=function(){this.clones&&this.clones.forEach((function(clone){clone.parentNode===document.body&&document.body.removeChild(clone)})),null!==this.sourceClone&&this.sourceClone.parentNode===document.body&&document.body.removeChild(this.sourceClone),this.selfTransform=null,this.clones=null,this.source=null,this.sourceClone=null,this.sourcePos=null},DragImagesManager.prototype.onDragTopChanged=function(event){this.switch(event.top)},DragImagesManager.prototype.switch=function(top){var activeClone;if(this.clones.forEach((function(clone){clone.style.opacity="0"})),this.sourceClone&&(this.sourceClone.style.opacity="0"),null===top)activeClone=this.getSourceClone();else{if(!this.clones.has(top)){var clone=top.createDragImage(this.selfTransform);"source"===clone?clone=this.getSourceClone():null!==clone&&(clone.style.opacity="0",document.body.appendChild(clone)),this.clones.set(top,clone)}activeClone=this.clones.get(top)}return null!==activeClone&&(activeClone.offsetWidth,activeClone.style.opacity=activeClone.__opacity,activeClone.style.visibility="visible"),activeClone},DragImagesManager.prototype.getSourceClone=function(){return null===this.sourceClone&&(this.sourceClone=this.source.createDragImage(this.selfTransform),this.sourceClone.style.opacity="0",document.body.appendChild(this.sourceClone)),this.sourceClone},DragImagesManager.prototype.onDragPositionChanged=function(event){this.clones.forEach((function(clone){clone.style.left=dnd.position.x+"px",clone.style.top=dnd.position.y+"px"})),this.sourceClone&&(this.sourceClone.style.left=dnd.position.x+"px",this.sourceClone.style.top=dnd.position.y+"px")},DragImagesManager=__decorate([(0,_vuePropertyDecorator.Component)({}),__metadata("design:paramtypes",[])],DragImagesManager)}(_vuePropertyDecorator.Vue);_exports.DragImagesManager=DragImagesManager,new DragImagesManager;var DragFeedback=function(_super){function DragFeedback(){return null!==_super&&_super.apply(this,arguments)||this}return __extends(DragFeedback,_super),DragFeedback=__decorate([(0,_vuePropertyDecorator.Component)({})],DragFeedback)}(_vuePropertyDecorator.Vue),DragFeedback$1=normalizeComponent_1({render:function(){var _h=this.$createElement;return(this._self._c||_h)("div",{staticClass:"DragFeedback"},[this._t("default")],2)},staticRenderFns:[]},undefined,DragFeedback,"data-v-0589f3cb",!1,undefined,void 0,void 0),Grid=function(){function Grid(collection,upToIndex,row,fromIndex){var e_1,_a;this.magnets=[],this.reference=collection.item(0).parentNode,this.referenceOriginalPosition={x:this.reference.getBoundingClientRect().left-this.reference.scrollLeft,y:this.reference.getBoundingClientRect().top-this.reference.scrollTop};var index=0;try{for(var collection_1=__values(collection),collection_1_1=collection_1.next();!collection_1_1.done;collection_1_1=collection_1.next()){var child=collection_1_1.value;if(index>upToIndex)break;var rect=child.getBoundingClientRect(),hasNestedDrop=child.classList.contains("dnd-drop")||child.getElementsByClassName("dnd-drop").length>0,horizontal=null;if(hasNestedDrop){if("auto"===row)throw new Error("Easy-DnD error : a drop list is missing one of these attributes : 'row' or 'column'.");horizontal="row"===row}null===fromIndex?this.magnets.push(hasNestedDrop?this.before(rect,horizontal):this.center(rect)):this.magnets.push(hasNestedDrop?(fromIndex<index?this.after:this.before)(rect,horizontal):this.center(rect)),index++}}catch(e_1_1){e_1={error:e_1_1}}finally{try{collection_1_1&&!collection_1_1.done&&(_a=collection_1.return)&&_a.call(collection_1)}finally{if(e_1)throw e_1.error}}}return Grid.prototype.center=function(rect){return{x:rect.left+rect.width/2,y:rect.top+rect.height/2}},Grid.prototype.before=function(rect,horizontal){return horizontal?{x:rect.left,y:rect.top+rect.height/2}:{x:rect.left+rect.width/2,y:rect.top}},Grid.prototype.after=function(rect,horizontal){return horizontal?{x:rect.left+rect.width,y:rect.top+rect.height/2}:{x:rect.left+rect.width/2,y:rect.top+rect.height}},Grid.prototype.correction=function(){return{x:this.reference.getBoundingClientRect().left-this.reference.scrollLeft-this.referenceOriginalPosition.x,y:this.reference.getBoundingClientRect().top-this.reference.scrollTop-this.referenceOriginalPosition.y}},Grid.prototype.closestIndex=function(position){for(var x=position.x-this.correction().x,y=position.y-this.correction().y,minDist=999999,index=-1,i=0;i<this.magnets.length;i++){var magnet=this.magnets[i],dist=Math.sqrt(Math.pow(magnet.x-x,2)+Math.pow(magnet.y-y,2));dist<minDist&&(minDist=dist,index=i)}return index},Grid}(),DnDEvent=function(){};_exports.DnDEvent=DnDEvent;var ReorderEvent=function(){function ReorderEvent(from,to){this.from=from,this.to=to}return ReorderEvent.prototype.apply=function(array){var tmp=array[this.from];array.splice(this.from,1),array.splice(this.to,0,tmp)},ReorderEvent}();_exports.ReorderEvent=ReorderEvent;var InsertEvent=function(type,data,index){this.type=type,this.data=data,this.index=index};_exports.InsertEvent=InsertEvent;var DropList=function(_super){function DropList(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.grid=null,_this.forbiddenKeys=[],_this.feedbackKey=null,_this.fromIndex=null,_this}return __extends(DropList,_super),Object.defineProperty(DropList.prototype,"rootTag",{get:function(){return this.noAnimations?this.tag?this.tag:"div":"transition-group"},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"rootProps",{get:function(){return this.noAnimations?this.$attrs:{tag:this.tag,duration:{enter:0,leave:0},css:!1}},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"rootListeners",{get:function(){return this.noAnimations?this.$listeners:{}},enumerable:!0,configurable:!0}),DropList.prototype.created=function(){dnd.on("dragstart",this.onDragStart),dnd.on("dragend",this.onDragEnd)},Object.defineProperty(DropList.prototype,"direction",{get:function(){return this.row?"row":this.column?"column":"auto"},enumerable:!0,configurable:!0}),DropList.prototype.beforeDestroy=function(){dnd.off("dragstart",this.onDragStart),dnd.off("dragend",this.onDragEnd)},DropList.prototype.refresh=function(){var _this=this;this.$nextTick((function(){_this.grid=_this.computeInsertingGrid(),_this.feedbackKey=_this.computeFeedbackKey(),_this.forbiddenKeys=_this.computeForbiddenKeys()}))},DropList.prototype.onDragStart=function(event){this.candidate(dnd.type,dnd.data,dnd.source)&&(this.reordering?(this.fromIndex=Array.prototype.indexOf.call(event.source.$el.parentElement.children,event.source.$el),this.grid=this.computeReorderingGrid()):this.refresh())},DropList.prototype.onDragEnd=function(){this.fromIndex=null,this.feedbackKey=null,this.forbiddenKeys=null,this.grid=null},Object.defineProperty(DropList.prototype,"reordering",{get:function(){return dnd.inProgress?dnd.source.$el.parentElement===this.$el&&this.$listeners.hasOwnProperty("reorder"):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"closestIndex",{get:function(){return this.grid?this.grid.closestIndex(dnd.position):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"dropAllowed",{get:function(){return this.dragInProgress?this.reordering?this.items.length>1:!!DropMixin.options.computed.dropAllowed.get.call(this)&&(null!==this.forbiddenKeys&&null!==this.feedbackKey?!this.forbiddenKeys.includes(this.feedbackKey):null):null},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"itemsBeforeFeedback",{get:function(){return 0===this.closestIndex?[]:this.items.slice(0,this.closestIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"itemsAfterFeedback",{get:function(){return this.closestIndex===this.items.length?[]:this.items.slice(this.closestIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"itemsBeforeReorderingFeedback",{get:function(){return this.closestIndex<=this.fromIndex?this.items.slice(0,this.closestIndex):this.items.slice(0,this.closestIndex+1)},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"itemsAfterReorderingFeedback",{get:function(){return this.closestIndex<=this.fromIndex?this.items.slice(this.closestIndex):this.items.slice(this.closestIndex+1)},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"reorderedItems",{get:function(){var toIndex=this.closestIndex,reordered=__spread(this.items),temp=reordered[this.fromIndex];return reordered.splice(this.fromIndex,1),reordered.splice(toIndex,0,temp),reordered},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"clazz",{get:function(){return __assign({"drop-list":!0,reordering:!0===this.reordering,inserting:!1===this.reordering},!1===this.reordering?this.cssClasses:{"dnd-drop":!0})},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"style",{get:function(){return __assign({},!1===this.reordering?this.cssStyle:{})},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"showDragFeedback",{get:function(){return this.dragInProgress&&this.typeAllowed&&!this.reordering},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"showInsertingDragImage",{get:function(){return this.dragInProgress&&this.typeAllowed&&!this.reordering&&this.$scopedSlots.hasOwnProperty("drag-image")},enumerable:!0,configurable:!0}),Object.defineProperty(DropList.prototype,"showReorderingDragImage",{get:function(){return this.dragInProgress&&this.reordering&&this.$scopedSlots.hasOwnProperty("reordering-drag-image")},enumerable:!0,configurable:!0}),DropList.prototype.doDrop=function(event){this.reordering?this.fromIndex!==this.closestIndex&&this.$emit("reorder",new ReorderEvent(this.fromIndex,this.closestIndex)):(DropMixin.options.methods.doDrop.call(this,event),this.$emit("insert",new InsertEvent(event.type,event.data,this.closestIndex)))},DropList.prototype.candidate=function(type,data,source){var _a;return(_a=DropMixin.options.methods.candidate).call.apply(_a,__spread([this],arguments))&&(this.$listeners.hasOwnProperty("insert")||this.$listeners.hasOwnProperty("drop"))||this.reordering},DropList.prototype.computeForbiddenKeys=function(){return(this.noAnimations?[]:this.$children[0].$vnode.context.$children[0].$slots.default).map((function(vn){return vn.key})).filter((function(k){return void 0!==k&&"drag-image"!==k&&"drag-feedback"!==k}))},DropList.prototype.computeFeedbackKey=function(){return this.$refs.feedback.$slots.default[0].key},Object.defineProperty(DropList.prototype,"hasReorderingFeedback",{get:function(){return this.$scopedSlots.hasOwnProperty("reordering-feedback")},enumerable:!0,configurable:!0}),DropList.prototype.computeInsertingGrid=function(){var clone=this.$refs.feedback.$el.children[0].cloneNode(!0),tg=this.$el;tg.children.length>this.items.length?tg.insertBefore(clone,tg.children[this.items.length]):tg.appendChild(clone);var grid=new Grid(tg.children,this.items.length,this.direction,null);return tg.removeChild(clone),grid},DropList.prototype.computeReorderingGrid=function(){var tg=this.$el;return new Grid(tg.children,this.items.length-1,this.direction,this.fromIndex)},DropList.prototype.createDragImage=function(){var image;if(this.$refs["drag-image"]){var el=this.$refs["drag-image"],clone=(1!==el.childElementCount?el:el.children.item(0)).cloneNode(!0),tg=this.$el;tg.appendChild(clone),image=createDragImage(clone),tg.removeChild(clone),image.__opacity=this.dragImageOpacity,image.classList.add("dnd-ghost")}else image="source";return image},__decorate([(0,_vuePropertyDecorator.Prop)({default:"div",type:[String,Object,Function]}),__metadata("design:type",Object)],DropList.prototype,"tag",void 0),__decorate([(0,_vuePropertyDecorator.Prop)(),__metadata("design:type",Array)],DropList.prototype,"items",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:null}),__metadata("design:type",Boolean)],DropList.prototype,"row",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:null,type:Boolean}),__metadata("design:type",Boolean)],DropList.prototype,"column",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({default:!1,type:Boolean}),__metadata("design:type",Boolean)],DropList.prototype,"noAnimations",void 0),__decorate([(0,_vuePropertyDecorator.Prop)({type:Number,default:void 0}),__metadata("design:type",Number)],DropList.prototype,"scrollingEdgeSize",void 0),DropList=__decorate([(0,_vuePropertyDecorator.Component)({components:{DragFeedback:DragFeedback$1},inheritAttrs:!1})],DropList)}(DropMixin),DropList$1=normalizeComponent_1({render:function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c(_vm.rootTag,_vm._g(_vm._b({tag:"component",class:_vm.clazz,style:_vm.style},"component",_vm.rootProps,!1),_vm.rootListeners),[_vm.dropIn&&_vm.dropAllowed?[_vm.reordering?[_vm.hasReorderingFeedback?[_vm._l(_vm.itemsBeforeReorderingFeedback,(function(item,index){return _vm._t("item",null,{item:item,index:index})})),_vm._v(" "),_vm._t("reordering-feedback",null,{item:_vm.items[_vm.fromIndex]}),_vm._v(" "),_vm._l(_vm.itemsAfterReorderingFeedback,(function(item,index){return _vm._t("item",null,{item:item,index:_vm.itemsBeforeReorderingFeedback.length+index})}))]:[_vm._l(_vm.reorderedItems,(function(item,index){return _vm._t("item",null,{item:item,index:index,reorder:index===_vm.closestIndex})}))]]:[_vm._l(_vm.itemsBeforeFeedback,(function(item,index){return _vm._t("item",null,{item:item,reorder:!1,index:index})})),_vm._v(" "),_vm._t("feedback",null,{data:_vm.dragData,type:_vm.dragType}),_vm._v(" "),_vm._l(_vm.itemsAfterFeedback,(function(item,index){return _vm._t("item",null,{item:item,reorder:!1,index:_vm.itemsBeforeFeedback.length+index})}))]]:[_vm._l(_vm.items,(function(item,index){return _vm._t("item",null,{item:item,reorder:!1,index:index})})),_vm._v(" "),_vm.items.length<1?_vm._t("empty"):_vm._e()],_vm._v(" "),_vm.showDragFeedback?_c("drag-feedback",{key:"drag-feedback",ref:"feedback",staticClass:"__feedback"},[_vm._t("feedback",null,{data:_vm.dragData,type:_vm.dragType})],2):_vm._e(),_vm._v(" "),_vm.showInsertingDragImage?_c("div",{key:"inserting-drag-image",ref:"drag-image",staticClass:"__drag-image"},[_vm._t("drag-image",null,{type:_vm.dragType,data:_vm.dragData})],2):_vm._e(),_vm._v(" "),_vm.showReorderingDragImage?_c("div",{key:"reordering-drag-image",ref:"drag-image",staticClass:"__drag-image"},[_vm._t("reordering-drag-image",null,{item:_vm.items[_vm.fromIndex]})],2):_vm._e(),_vm._v(" "),_vm._t("default")],2)},staticRenderFns:[]},(function(inject){inject&&(inject("data-v-228404f8_0",{source:".drop-list[data-v-228404f8]>*{transition:transform .2s}.__feedback[data-v-228404f8]{display:none}.__drag-image[data-v-228404f8]{position:fixed;top:-10000px;left:-10000px;will-change:left,top}",map:void 0,media:void 0}),inject("data-v-228404f8_1",{source:".drop-allowed.drop-in *{cursor:inherit!important}.drop-forbidden.drop-in,.drop-forbidden.drop-in *{cursor:no-drop!important}",map:void 0,media:void 0}))}),DropList,"data-v-228404f8",!1,undefined,browser,void 0);_exports.DropList=DropList$1}));
|
|
|
|
//# sourceMappingURL=vue-easy-dnd.esm.min.js.map
|