@ianicdev/datatables2 0.11.7 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/{Comparison-De27pAUU.cjs → Comparison-Cjz-f6QE.cjs} +1 -1
  2. package/dist/{Comparison-BGS-fuIe.js → Comparison-c7-5FHzt.js} +1 -1
  3. package/dist/{Datepicker-Cw_J535b.js → Datepicker-D8R5O3nA.js} +2 -2
  4. package/dist/{Datepicker-CIuhuD6k.cjs → Datepicker-tYZiV7pL.cjs} +1 -1
  5. package/dist/Options-BqEPdV4P.cjs +1 -0
  6. package/dist/Options-t9XPNKFJ.js +222 -0
  7. package/dist/{RefreshTable-CwKNOxC1.cjs → RefreshTable-BK-a6F4w.cjs} +1 -1
  8. package/dist/{RefreshTable-DJh8kVcF.js → RefreshTable-BMZFOov3.js} +2 -2
  9. package/dist/{Search-C8e4aEIt.js → Search-CcSzJ7EN.js} +19 -19
  10. package/dist/Search-ggJbFRUZ.cjs +1 -0
  11. package/dist/{Table-BJ5tGV-x.cjs → Table-Cd3b9yno.cjs} +1 -1
  12. package/dist/{Table-ubU5wjVY.js → Table-DFgbsnAr.js} +3 -3
  13. package/dist/{TableServer-CDPE93Bi.cjs → TableServer-CkRGzG9m.cjs} +1 -1
  14. package/dist/{TableServer-DuwL1c97.js → TableServer-RGxAza7r.js} +3 -3
  15. package/dist/{cellRender-u5Pfy695.js → cellRender-BrYyjDR0.js} +2 -2
  16. package/dist/{cellRender-Dh2_N7Hn.cjs → cellRender-yRAYLhMZ.cjs} +1 -1
  17. package/dist/{dataTables-Du4VyMxR.js → dataTables-BwYZVAqY.js} +3 -2
  18. package/dist/{dataTables-BxXcbziu.cjs → dataTables-CT4H3tPX.cjs} +1 -1
  19. package/dist/datatables.cjs +1 -1
  20. package/dist/datatables.js +1 -1
  21. package/dist/{index-BeStYA4v.cjs → index-Bascl9Tm.cjs} +1 -1
  22. package/dist/{index-D0oTlDPt.js → index-Bra3YXTV.js} +1 -1
  23. package/dist/{index-R3Q-lW3h.cjs → index-CI5-YbRX.cjs} +1 -1
  24. package/dist/{index-Cfk_p1QT.cjs → index-CLiQ28nF.cjs} +1 -1
  25. package/dist/{index-BebQe8X1.cjs → index-CRNAJrYh.cjs} +1 -1
  26. package/dist/{index-pVnRXL21.js → index-CWXBoVzR.js} +9 -9
  27. package/dist/{index-CTF3ArB5.js → index-hM02sYDS.js} +2 -2
  28. package/dist/{index-Dlb5c56z.js → index-vAe2qE0y.js} +553 -561
  29. package/dist/{useColumns-BpprQUUi.cjs → useColumns-GzXxHCN7.cjs} +1 -1
  30. package/dist/{useColumns-Csi8mDCk.js → useColumns-qXPhS6kv.js} +3 -2
  31. package/dist/useRefreshTable-B3JWG3uB.cjs +1 -0
  32. package/dist/useRefreshTable-C01Fva1U.js +17 -0
  33. package/lib/locale/de.js +9 -0
  34. package/lib/locale/el.js +9 -0
  35. package/lib/locale/en.js +8 -0
  36. package/package.json +5 -5
  37. package/dist/Options-DEe2eGBJ.cjs +0 -1
  38. package/dist/Options-I1PQEYFi.js +0 -108
  39. package/dist/Search-_MWrcP0W.cjs +0 -1
  40. package/dist/useRefreshTable-CYZLF_fz.cjs +0 -1
  41. package/dist/useRefreshTable-DkrhQ57E.js +0 -18
@@ -1 +1 @@
1
- "use strict";const h=require("vue"),Ae=require("@vueuse/core"),A=require("./index-BeStYA4v.cjs"),V=require("./dataTables-BxXcbziu.cjs"),Rt=require("vue-i18n"),Bt=V.propsFactory({...V.omit(A.makeVInputProps(),["direction"]),...V.omit(A.makeVCheckboxBtnProps(),["inline"])},"VCheckbox"),Xt=V.genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:Bt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:o,slots:t}=e;const i=V.useProxiedModel(n,"modelValue"),{isFocused:r,focus:a,blur:l}=A.useFocus(n),s=h.ref(),u=h.useId();return V.useRender(()=>{const[f,d]=V.filterInputAttrs(o),y=A.VInput.filterProps(n),w=A.VCheckboxBtn.filterProps(n);return h.createVNode(A.VInput,h.mergeProps({ref:s,class:["v-checkbox",n.class]},f,y,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:n.id||`checkbox-${u}`,focused:r.value,style:n.style}),{...t,default:v=>{let{id:p,messagesId:D,isDisabled:O,isReadonly:P,isValid:M}=v;return h.createVNode(A.VCheckboxBtn,h.mergeProps(w,{id:p.value,"aria-describedby":D.value,disabled:O.value,readonly:P.value},d,{error:M.value===!1,modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,onFocus:a,onBlur:l}),t)}})}),V.forwardRefs({},s)}});function Yt(n,e,o){return(e=Wt(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n}function Z(){return Z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var t in o)({}).hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},Z.apply(null,arguments)}function ft(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,t)}return o}function q(n){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(o),!0).forEach(function(t){Yt(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ft(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function jt(n,e){if(n==null)return{};var o,t,i=Lt(n,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(t=0;t<r.length;t++)o=r[t],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}function Lt(n,e){if(n==null)return{};var o={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(e.indexOf(t)!==-1)continue;o[t]=n[t]}return o}function Ht(n,e){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var t=o.call(n,e);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wt(n){var e=Ht(n,"string");return typeof e=="symbol"?e:e+""}function nt(n){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(n)}var $t="1.15.7";function K(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Q=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oe=K(/Edge/i),ht=K(/firefox/i),Se=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),lt=K(/iP(ad|od|hone)/i),Et=K(/chrome/i)&&K(/android/i),_t={capture:!1,passive:!1};function _(n,e,o){n.addEventListener(e,o,!Q&&_t)}function E(n,e,o){n.removeEventListener(e,o,!Q&&_t)}function je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function Dt(n){return n.host&&n!==document&&n.host.nodeType&&n.host!==n?n.host:n.parentNode}function $(n,e,o,t){if(n){o=o||document;do{if(e!=null&&(e[0]===">"?n.parentNode===o&&je(n,e):je(n,e))||t&&n===o)return n;if(n===o)break}while(n=Dt(n))}return null}var pt=/\s+/g;function j(n,e,o){if(n&&e)if(n.classList)n.classList[o?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(pt," ").replace(" "+e+" "," ");n.className=(t+(o?" "+e:"")).replace(pt," ")}}function g(n,e,o){var t=n&&n.style;if(t){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(o=n.currentStyle),e===void 0?o:o[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=o+(typeof o=="string"?"":"px")}}function pe(n,e){var o="";if(typeof n=="string")o=n;else do{var t=g(n,"transform");t&&t!=="none"&&(o=t+" "+o)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function St(n,e,o){if(n){var t=n.getElementsByTagName(e),i=0,r=t.length;if(o)for(;i<r;i++)o(t[i],i);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function x(n,e,o,t,i){if(!(!n.getBoundingClientRect&&n!==window)){var r,a,l,s,u,f,d;if(n!==window&&n.parentNode&&n!==z()?(r=n.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||o)&&n!==window&&(i=i||n.parentNode,!Q))do if(i&&i.getBoundingClientRect&&(g(i,"transform")!=="none"||o&&g(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(g(i,"border-top-width")),l-=y.left+parseInt(g(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(t&&n!==window){var w=pe(i||n),v=w&&w.a,p=w&&w.d;w&&(a/=p,l/=v,d/=v,f/=p,s=a+f,u=l+d)}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}}function gt(n,e,o){for(var t=oe(n,!0),i=x(n)[e];t;){var r=x(t)[o],a=void 0;if(a=i>=r,!a)return t;if(t===z())break;t=oe(t,!1)}return!1}function ge(n,e,o,t){for(var i=0,r=0,a=n.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==m.ghost&&(t||a[r]!==m.dragged)&&$(a[r],o.draggable,n,!1)){if(i===e)return a[r];i++}r++}return null}function st(n,e){for(var o=n.lastElementChild;o&&(o===m.ghost||g(o,"display")==="none"||e&&!je(o,e));)o=o.previousElementSibling;return o||null}function H(n,e){var o=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==m.clone&&(!e||je(n,e))&&o++;return o}function mt(n){var e=0,o=0,t=z();if(n)do{var i=pe(n),r=i.a,a=i.d;e+=n.scrollLeft*r,o+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,o]}function Gt(n,e){for(var o in n)if(n.hasOwnProperty(o)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[o][t])return Number(o)}return-1}function oe(n,e){if(!n||!n.getBoundingClientRect)return z();var o=n,t=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=g(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(t||e)return o;t=!0}}while(o=o.parentNode);return z()}function zt(n,e){if(n&&e)for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function ze(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Ce;function Ct(n,e){return function(){if(!Ce){var o=arguments,t=this;o.length===1?n.call(t,o[0]):n.apply(t,o),Ce=setTimeout(function(){Ce=void 0},e)}}}function qt(){clearTimeout(Ce),Ce=void 0}function Tt(n,e,o){n.scrollLeft+=e,n.scrollTop+=o}function It(n){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):o?o(n).clone(!0)[0]:n.cloneNode(!0)}function xt(n,e,o){var t={};return Array.from(n.children).forEach(function(i){var r,a,l,s;if(!(!$(i,e.draggable,n,!1)||i.animated||i===o)){var u=x(i);t.left=Math.min((r=t.left)!==null&&r!==void 0?r:1/0,u.left),t.top=Math.min((a=t.top)!==null&&a!==void 0?a:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((s=t.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var X="Sortable"+new Date().getTime();function Ut(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(i){if(!(g(i,"display")==="none"||i===m.ghost)){n.push({target:i,rect:x(i)});var r=q({},n[n.length-1].rect);if(i.thisAnimationDuration){var a=pe(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Gt(n,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var r=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,d=x(u),y=u.prevFromRect,w=u.prevToRect,v=l.rect,p=pe(u,!0);p&&(d.top-=p.f,d.left-=p.e),u.toRect=d,u.thisAnimationDuration&&ze(y,d)&&!ze(f,d)&&(v.top-d.top)/(v.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=Zt(v,y,w,i.options)),ze(d,f)||(u.prevFromRect=f,u.prevToRect=d,s||(s=i.options.animation),i.animate(u,v,d,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,i,r,a){if(a){g(t,"transition",""),g(t,"transform","");var l=pe(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),d=(i.top-r.top)/(u||1);t.animatingX=!!f,t.animatingY=!!d,g(t,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Kt(t),g(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){g(t,"transition",""),g(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function Kt(n){return n.offsetWidth}function Zt(n,e,o,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*t.animation}var ce=[],qe={initializeByDefault:!0},Pe={mount:function(e){for(var o in qe)qe.hasOwnProperty(o)&&!(o in e)&&(e[o]=qe[o]);ce.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ce.push(e)},pluginEvent:function(e,o,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ce.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][r]&&o[a.pluginName][r](q({sortable:o},t)),o.options[a.pluginName]&&o[a.pluginName][e]&&o[a.pluginName][e](q({sortable:o},t)))})},initializePlugins:function(e,o,t,i){ce.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,o,e.options);u.sortable=e,u.options=e.options,e[s]=u,Z(t,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,o){var t={};return ce.forEach(function(i){typeof i.eventProperties=="function"&&Z(t,i.eventProperties.call(o[i.pluginName],e))}),t},modifyOption:function(e,o,t){var i;return ce.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(i=r.optionListeners[o].call(e[r.pluginName],t))}),i}};function Qt(n){var e=n.sortable,o=n.rootEl,t=n.name,i=n.targetEl,r=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,d=n.newDraggableIndex,y=n.originalEvent,w=n.putSortable,v=n.extraEventProperties;if(e=e||o&&o[X],!!e){var p,D=e.options,O="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Q&&!Oe?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||o,p.from=l||o,p.item=i||o,p.clone=r,p.oldIndex=s,p.newIndex=u,p.oldDraggableIndex=f,p.newDraggableIndex=d,p.originalEvent=y,p.pullMode=w?w.lastPutMode:void 0;var P=q(q({},v),Pe.getEventProperties(t,e));for(var M in P)p[M]=P[M];o&&o.dispatchEvent(p),D[O]&&D[O].call(e,p)}}var Jt=["evt"],B=function(e,o){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.evt,r=jt(t,Jt);Pe.pluginEvent.bind(m)(e,o,q({dragEl:c,parentEl:T,ghostEl:b,rootEl:S,nextEl:ue,lastDownEl:Re,cloneEl:C,cloneHidden:ne,dragStarted:Ee,putSortable:N,activeSortable:m.active,originalEvent:i,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te,hideGhostForTarget:At,unhideGhostForTarget:kt,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(l){R({sortable:o,name:l,originalEvent:i})}},r))};function R(n){Qt(q({putSortable:N,cloneEl:C,targetEl:c,rootEl:S,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te},n))}var c,T,b,S,ue,Re,C,ne,he,L,Te,te,ke,N,fe=!1,Le=!1,He=[],le,W,Ue,Ke,vt,bt,Ee,de,Ie,xe=!1,Ve=!1,Be,k,Ze=[],ot=!1,We=[],Ge=typeof document<"u",Me=lt,yt=Oe||Q?"cssFloat":"float",en=Ge&&!Et&&!lt&&"draggable"in document.createElement("div"),Ot=(function(){if(Ge){if(Q)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Pt=function(e,o){var t=g(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=ge(e,0,o),a=ge(e,1,o),l=r&&g(r),s=a&&g(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+x(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+x(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&t[yt]==="none"||a&&t[yt]==="none"&&u+f>i)?"vertical":"horizontal"},tn=function(e,o,t){var i=t?e.left:e.top,r=t?e.right:e.bottom,a=t?e.width:e.height,l=t?o.left:o.top,s=t?o.right:o.bottom,u=t?o.width:o.height;return i===l||r===s||i+a/2===l+u/2},nn=function(e,o){var t;return He.some(function(i){var r=i[X].options.emptyInsertThreshold;if(!(!r||st(i))){var a=x(i),l=e>=a.left-r&&e<=a.right+r,s=o>=a.top-r&&o<=a.bottom+r;if(l&&s)return t=i}}),t},Nt=function(e){function o(r,a){return function(l,s,u,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||d))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return o(r(l,s,u,f),a)(l,s,u,f);var y=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var t={},i=e.group;(!i||nt(i)!="object")&&(i={name:i}),t.name=i.name,t.checkPull=o(i.pull,!0),t.checkPut=o(i.put),t.revertClone=i.revertClone,e.group=t},At=function(){!Ot&&b&&g(b,"display","none")},kt=function(){!Ot&&b&&g(b,"display","")};Ge&&!Et&&document.addEventListener("click",function(n){if(Le)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Le=!1,!1},!0);var se=function(e){if(c){e=e.touches?e.touches[0]:e;var o=nn(e.clientX,e.clientY);if(o){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=o,t.preventDefault=void 0,t.stopPropagation=void 0,o[X]._onDragOver(t)}}},on=function(e){c&&c.parentNode[X]._isOutsideThisEl(e.target)};function m(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=Z({},e),n[X]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:m.supportPointer!==!1&&"PointerEvent"in window&&(!Se||lt),emptyInsertThreshold:5};Pe.initializePlugins(this,n,o);for(var t in o)!(t in e)&&(e[t]=o[t]);Nt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:en,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(n,"pointerdown",this._onTapStart):(_(n,"mousedown",this._onTapStart),_(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(n,"dragover",this),_(n,"dragenter",this)),He.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,Ut())}m.prototype={constructor:m,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(de=null)},_getDirection:function(e,o){return typeof this.options.direction=="function"?this.options.direction.call(this,e,o,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var o=this,t=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(fn(t),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Se&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,t,!1),!(s&&s.animated)&&Re!==s)){if(he=H(s),Te=H(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){R({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),B("filter",o,{evt:e}),r&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=$(u,d.trim(),t,!1),d)return R({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:t,toEl:t}),B("filter",o,{evt:e}),!0}),f)){r&&e.preventDefault();return}i.handle&&!$(u,i.handle,t,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,o,t){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(t&&!c&&t.parentNode===r){var u=x(t);if(S=r,c=t,T=c.parentNode,ue=c.nextSibling,Re=t,ke=a.group,m.dragged=c,le={target:c,clientX:(o||e).clientX,clientY:(o||e).clientY},vt=le.clientX-u.left,bt=le.clientY-u.top,this._lastX=(o||e).clientX,this._lastY=(o||e).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:e}),m.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(e,o),R({sortable:i,name:"choose",originalEvent:e}),j(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){St(c,f.trim(),Qe)}),_(l,"dragover",se),_(l,"mousemove",se),_(l,"touchmove",se),a.supportPointer?(_(l,"pointerup",i._onDrop),!this.nativeDraggable&&_(l,"pointercancel",i._onDrop)):(_(l,"mouseup",i._onDrop),_(l,"touchend",i._onDrop),_(l,"touchcancel",i._onDrop)),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Oe||Q))){if(m.eventCanceled){this._onDrop();return}a.supportPointer?(_(l,"pointerup",i._disableDelayedDrag),_(l,"pointercancel",i._disableDelayedDrag)):(_(l,"mouseup",i._disableDelayedDrag),_(l,"touchend",i._disableDelayedDrag),_(l,"touchcancel",i._disableDelayedDrag)),_(l,"mousemove",i._delayedDragTouchMoveHandler),_(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&_(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var o=e.touches?e.touches[0]:e;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Qe(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._disableDelayedDrag),E(e,"touchend",this._disableDelayedDrag),E(e,"touchcancel",this._disableDelayedDrag),E(e,"pointerup",this._disableDelayedDrag),E(e,"pointercancel",this._disableDelayedDrag),E(e,"mousemove",this._delayedDragTouchMoveHandler),E(e,"touchmove",this._delayedDragTouchMoveHandler),E(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,o){o=o||e.pointerType=="touch"&&e,!this.nativeDraggable||o?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):o?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(c,"dragend",this),_(S,"dragstart",this._onDragStart));try{document.selection?Xe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,o){if(fe=!1,S&&c){B("dragStarted",this,{evt:o}),this.nativeDraggable&&_(document,"dragover",on);var t=this.options;!e&&j(c,t.dragClass,!1),j(c,t.ghostClass,!0),m.active=this,e&&this._appendGhost(),R({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,At();for(var e=document.elementFromPoint(W.clientX,W.clientY),o=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==o);)o=e;if(c.parentNode[X]._isOutsideThisEl(e),o)do{if(o[X]){var t=void 0;if(t=o[X]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:o}),t&&!this.options.dragoverBubble)break}e=o}while(o=Dt(o));kt()}},_onTouchMove:function(e){if(le){var o=this.options,t=o.fallbackTolerance,i=o.fallbackOffset,r=e.touches?e.touches[0]:e,a=b&&pe(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,u=Me&&k&&mt(k),f=(r.clientX-le.clientX+i.x)/(l||1)+(u?u[0]-Ze[0]:0)/(l||1),d=(r.clientY-le.clientY+i.y)/(s||1)+(u?u[1]-Ze[1]:0)/(s||1);if(!m.active&&!fe){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(b){a?(a.e+=f-(Ue||0),a.f+=d-(Ke||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",y),g(b,"mozTransform",y),g(b,"msTransform",y),g(b,"transform",y),Ue=f,Ke=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!b){var e=this.options.fallbackOnBody?document.body:S,o=x(c,!0,Me,!0,e),t=this.options;if(Me){for(k=e;g(k,"position")==="static"&&g(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),o.top+=k.scrollTop,o.left+=k.scrollLeft):k=z(),Ze=mt(k)}b=c.cloneNode(!0),j(b,t.ghostClass,!1),j(b,t.fallbackClass,!0),j(b,t.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",o.top),g(b,"left",o.left),g(b,"width",o.width),g(b,"height",o.height),g(b,"opacity","0.8"),g(b,"position",Me?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),m.ghost=b,e.appendChild(b),g(b,"transform-origin",vt/parseInt(b.style.width)*100+"% "+bt/parseInt(b.style.height)*100+"%")}},_onDragStart:function(e,o){var t=this,i=e.dataTransfer,r=t.options;if(B("dragStart",this,{evt:e}),m.eventCanceled){this._onDrop();return}B("setupClone",this),m.eventCanceled||(C=It(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),j(C,this.options.chosenClass,!1),m.clone=C),t.cloneId=Xe(function(){B("clone",t),!m.eventCanceled&&(t.options.removeCloneOnHide||S.insertBefore(C,c),t._hideClone(),R({sortable:t,name:"clone"}))}),!o&&j(c,r.dragClass,!0),o?(Le=!0,t._loopId=setInterval(t._emulateDragOver,50)):(E(document,"mouseup",t._onDrop),E(document,"touchend",t._onDrop),E(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(t,i,c)),_(document,"drop",t),g(c,"transform","translateZ(0)")),fe=!0,t._dragStartId=Xe(t._dragStarted.bind(t,o,e)),_(document,"selectstart",t),Ee=!0,window.getSelection().removeAllRanges(),Se&&g(document.body,"user-select","none")},_onDragOver:function(e){var o=this.el,t=e.target,i,r,a,l=this.options,s=l.group,u=m.active,f=ke===s,d=l.sort,y=N||u,w,v=this,p=!1;if(ot)return;function D(we,Mt){B(we,v,q({evt:e,isOwner:f,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:d,fromSortable:y,target:t,completed:P,onMove:function(dt,Ft){return Fe(S,o,c,i,dt,x(dt),e,Ft)},changed:M},Mt))}function O(){D("dragOverAnimationCapture"),v.captureAnimationState(),v!==y&&y.captureAnimationState()}function P(we){return D("dragOverCompleted",{insertion:we}),we&&(f?u._hideClone():u._showClone(v),v!==y&&(j(c,N?N.options.ghostClass:u.options.ghostClass,!1),j(c,l.ghostClass,!0)),N!==v&&v!==m.active?N=v:v===m.active&&N&&(N=null),y===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){D("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===o&&!t.animated)&&(de=null),!l.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[X]._isOutsideThisEl(e.target),!we&&se(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function M(){L=H(c),te=H(c,l.draggable),R({sortable:v,name:"change",toEl:o,newIndex:L,newDraggableIndex:te,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=$(t,l.draggable,o,!0),D("dragOver"),m.eventCanceled)return p;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return P(!1);if(Le=!1,u&&!l.disabled&&(f?d||(a=T!==S):N===this||(this.lastPutMode=ke.checkPull(this,u,c,e))&&s.checkPut(this,u,c,e))){if(w=this._getDirection(e,t)==="vertical",i=x(c),D("dragOverValid"),m.eventCanceled)return p;if(a)return T=S,O(),this._hideClone(),D("revert"),m.eventCanceled||(ue?S.insertBefore(c,ue):S.appendChild(c)),P(!0);var F=st(o,l.draggable);if(!F||sn(e,w,this)&&!F.animated){if(F===c)return P(!1);if(F&&o===e.target&&(t=F),t&&(r=x(t)),Fe(S,o,c,i,t,r,e,!!t)!==!1)return O(),F&&F.nextSibling?o.insertBefore(c,F.nextSibling):o.appendChild(c),T=o,M(),P(!0)}else if(F&&ln(e,w,this)){var ie=ge(o,0,l,!0);if(ie===c)return P(!1);if(t=ie,r=x(t),Fe(S,o,c,i,t,r,e,!1)!==!1)return O(),o.insertBefore(c,ie),T=o,M(),P(!0)}else if(t.parentNode===o){r=x(t);var G=0,re,me=c.parentNode!==o,Y=!tn(c.animated&&c.toRect||i,t.animated&&t.toRect||r,w),ve=w?"top":"left",J=gt(t,"top","top")||gt(c,"top","top"),be=J?J.scrollTop:void 0;de!==t&&(re=r[ve],xe=!1,Ve=!Y&&l.invertSwap||me),G=un(e,t,r,w,Y?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ve,de===t);var U;if(G!==0){var ae=H(c);do ae-=G,U=T.children[ae];while(U&&(g(U,"display")==="none"||U===b))}if(G===0||U===t)return P(!1);de=t,Ie=G;var ye=t.nextElementSibling,ee=!1;ee=G===1;var Ne=Fe(S,o,c,i,t,r,e,ee);if(Ne!==!1)return(Ne===1||Ne===-1)&&(ee=Ne===1),ot=!0,setTimeout(an,30),O(),ee&&!ye?o.appendChild(c):t.parentNode.insertBefore(c,ee?ye:t),J&&Tt(J,0,be-J.scrollTop),T=c.parentNode,re!==void 0&&!Ve&&(Be=Math.abs(re-x(t)[ve])),M(),P(!0)}if(o.contains(c))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",se),E(document,"mousemove",se),E(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._onDrop),E(e,"touchend",this._onDrop),E(e,"pointerup",this._onDrop),E(e,"pointercancel",this._onDrop),E(e,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(e){var o=this.el,t=this.options;if(L=H(c),te=H(c,t.draggable),B("drop",this,{evt:e}),T=c&&c.parentNode,L=H(c),te=H(c,t.draggable),m.eventCanceled){this._nulling();return}fe=!1,Ve=!1,xe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),it(this.cloneId),it(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Se&&g(document.body,"user-select",""),g(c,"transform",""),e&&(Ee&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(S===T||N&&N.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Qe(c),c.style["will-change"]="",Ee&&!fe&&j(c,N?N.options.ghostClass:this.options.ghostClass,!1),j(c,this.options.chosenClass,!1),R({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),S!==T?(L>=0&&(R({rootEl:T,name:"add",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"remove",toEl:T,originalEvent:e}),R({rootEl:T,name:"sort",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),N&&N.save()):L!==he&&L>=0&&(R({sortable:this,name:"update",toEl:T,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),m.active&&((L==null||L===-1)&&(L=he,te=Te),R({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),S=c=T=b=ue=C=Re=ne=le=W=Ee=L=te=he=Te=de=Ie=N=ke=m.dragged=m.ghost=m.clone=m.active=null;var e=this.el;We.forEach(function(o){e.contains(o)&&(o.checked=!0)}),We.length=Ue=Ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),rn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],o,t=this.el.children,i=0,r=t.length,a=this.options;i<r;i++)o=t[i],$(o,a.draggable,this.el,!1)&&e.push(o.getAttribute(a.dataIdAttr)||dn(o));return e},sort:function(e,o){var t={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(t[r]=l)},this),o&&this.captureAnimationState(),e.forEach(function(r){t[r]&&(i.removeChild(t[r]),i.appendChild(t[r]))}),o&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,o){return $(e,o||this.options.draggable,this.el,!1)},option:function(e,o){var t=this.options;if(o===void 0)return t[e];var i=Pe.modifyOption(this,e,o);typeof i<"u"?t[e]=i:t[e]=o,e==="group"&&Nt(t)},destroy:function(){B("destroy",this);var e=this.el;e[X]=null,E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart),E(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),He.splice(He.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ne){if(B("hideClone",this),m.eventCanceled)return;g(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),ne=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ne){if(B("showClone",this),m.eventCanceled)return;c.parentNode==S&&!this.options.group.revertClone?S.insertBefore(C,c):ue?S.insertBefore(C,ue):S.appendChild(C),this.options.group.revertClone&&this.animate(c,C),g(C,"display",""),ne=!1}}};function rn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Fe(n,e,o,t,i,r,a,l){var s,u=n[X],f=u.options.onMove,d;return window.CustomEvent&&!Q&&!Oe?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=o,s.draggedRect=t,s.related=i||e,s.relatedRect=r||x(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(d=f.call(u,s,a)),d}function Qe(n){n.draggable=!1}function an(){ot=!1}function ln(n,e,o){var t=x(ge(o.el,0,o.options,!0)),i=xt(o.el,o.options,b),r=10;return e?n.clientX<i.left-r||n.clientY<t.top&&n.clientX<t.right:n.clientY<i.top-r||n.clientY<t.bottom&&n.clientX<t.left}function sn(n,e,o){var t=x(st(o.el,o.options.draggable)),i=xt(o.el,o.options,b),r=10;return e?n.clientX>i.right+r||n.clientY>t.bottom&&n.clientX>t.left:n.clientY>i.bottom+r||n.clientX>t.right&&n.clientY>t.top}function un(n,e,o,t,i,r,a,l){var s=t?n.clientY:n.clientX,u=t?o.height:o.width,f=t?o.top:o.left,d=t?o.bottom:o.right,y=!1;if(!a){if(l&&Be<u*i){if(!xe&&(Ie===1?s>f+u*r/2:s<d-u*r/2)&&(xe=!0),xe)y=!0;else if(Ie===1?s<f+Be:s>d-Be)return-Ie}else if(s>f+u*(1-i)/2&&s<d-u*(1-i)/2)return cn(e)}return y=y||a,y&&(s<f+u*r/2||s>d-u*r/2)?s>f+u/2?1:-1:0}function cn(n){return H(c)<H(n)?1:-1}function dn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,o=e.length,t=0;o--;)t+=e.charCodeAt(o);return t.toString(36)}function fn(n){We.length=0;for(var e=n.getElementsByTagName("input"),o=e.length;o--;){var t=e[o];t.checked&&We.push(t)}}function Xe(n){return setTimeout(n,0)}function it(n){return clearTimeout(n)}Ge&&_(document,"touchmove",function(n){(m.active||fe)&&n.cancelable&&n.preventDefault()});m.utils={on:_,off:E,css:g,find:St,is:function(e,o){return!!$(e,o,e,!1)},extend:zt,throttle:Ct,closest:$,toggleClass:j,clone:It,index:H,nextTick:Xe,cancelNextTick:it,detectDirection:Pt,getChild:ge,expando:X};m.get=function(n){return n[X]};m.mount=function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(m.utils=q(q({},m.utils),t.utils)),Pe.mount(t)})};m.create=function(n,e){return new m(n,e)};m.version=$t;var I=[],_e,rt,at=!1,Je,et,$e,De;function hn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(o){var t=o.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var t=o.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Ye(),qt()},nulling:function(){$e=rt=_e=at=De=Je=et=null,I.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,t){var i=this,r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=document.elementFromPoint(r,a);if($e=o,t||this.options.forceAutoScrollFallback||Oe||Q||Se){tt(o,this.options,l,t);var s=oe(l,!0);at&&(!De||r!==Je||a!==et)&&(De&&wt(),De=setInterval(function(){var u=oe(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ye()),tt(o,i.options,u,t)},10),Je=r,et=a)}else{if(!this.options.bubbleScroll||oe(l,!0)===z()){Ye();return}tt(o,this.options,oe(l,!1),!1)}}},Z(n,{pluginName:"scroll",initializeByDefault:!0})}function Ye(){I.forEach(function(n){clearInterval(n.pid)}),I=[]}function wt(){clearInterval(De)}var tt=Ct(function(n,e,o,t){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;rt!==o&&(rt=o,Ye(),_e=e.scroll,f=e.scrollFn,_e===!0&&(_e=oe(o,!0)));var d=0,y=_e;do{var w=y,v=x(w),p=v.top,D=v.bottom,O=v.left,P=v.right,M=v.width,F=v.height,ie=void 0,G=void 0,re=w.scrollWidth,me=w.scrollHeight,Y=g(w),ve=w.scrollLeft,J=w.scrollTop;w===s?(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"||Y.overflowX==="visible"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"||Y.overflowY==="visible")):(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"));var be=ie&&(Math.abs(P-i)<=a&&ve+M<re)-(Math.abs(O-i)<=a&&!!ve),U=G&&(Math.abs(D-r)<=a&&J+F<me)-(Math.abs(p-r)<=a&&!!J);if(!I[d])for(var ae=0;ae<=d;ae++)I[ae]||(I[ae]={});(I[d].vx!=be||I[d].vy!=U||I[d].el!==w)&&(I[d].el=w,I[d].vx=be,I[d].vy=U,clearInterval(I[d].pid),(be!=0||U!=0)&&(u=!0,I[d].pid=setInterval((function(){t&&this.layer===0&&m.active._onTouchMove($e);var ye=I[this.layer].vy?I[this.layer].vy*l:0,ee=I[this.layer].vx?I[this.layer].vx*l:0;typeof f=="function"&&f.call(m.dragged.parentNode[X],ee,ye,n,$e,I[this.layer].el)!=="continue"||Tt(I[this.layer].el,ee,ye)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&y!==s&&(y=oe(y,!1)));at=u}},30),Vt=function(e){var o=e.originalEvent,t=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(o){var u=t||r;l();var f=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var o=e.oldDraggableIndex;this.startIndex=o},onSpill:function(e){var o=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=ge(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(o,i):this.sortable.el.appendChild(o),this.sortable.animateAll(),t&&t.animateAll()},drop:Vt};Z(ut,{pluginName:"revertOnSpill"});function ct(){}ct.prototype={onSpill:function(e){var o=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),i.animateAll()},drop:Vt};Z(ct,{pluginName:"removeOnSpill"});m.mount(new hn);m.mount(ct,ut);function pn(n,e,o={}){let t;const{document:i=Ae.defaultDocument,watchElement:r=!1,...a}=o,l={onUpdate:p=>{vn(e,p.oldIndex,p.newIndex,p)}},s=h.computed(()=>typeof n=="string"?i?.querySelector(n):Ae.unrefElement(n)),u=()=>{t?.destroy(),t=void 0},f=p=>{!p||t!==void 0||(t=new m(p,{...l,...a}))},d=()=>{const p=s.value;p&&f(p)},y=(p,D)=>{if(D!==void 0)t?.option(p,D);else return t?.option(p)};let w;r&&typeof n!="string"?w=h.watch(s,p=>{u(),p&&f(p)},{immediate:!0,flush:"post"}):Ae.tryOnMounted(d);const v=()=>{u()};return Ae.tryOnScopeDispose(()=>{w?.(),u()}),{stop:v,start:d,option:y}}function gn(n,e,o){const t=n.children[o];n.insertBefore(e,t)}function mn(n){n.parentNode&&n.parentNode.removeChild(n)}function vn(n,e,o,t=null){t!=null&&(mn(t.item),gn(t.from,t.item,e));const i=h.isRef(n),r=i?[...h.toValue(n)]:h.toValue(n);if(o>=0&&o<r.length){const a=r.splice(e,1)[0];h.nextTick(()=>{r.splice(o,0,a),i&&(n.value=r)})}}const bn={class:"text-medium-emphasis ps-2"},yn={__name:"Dialog",setup(n,{expose:e}){const o=h.inject("table_props"),t=h.inject("datatablesPluginOptions"),{tableState:i}=A.useTableState(),{tableDataState:r}=A.useDatastate(o),a=h.ref(0),l=h.useTemplateRef("listRef"),s=h.ref(!1),u=h.ref([]),f=h.ref([]),d=h.ref([]),y=()=>{s.value=!0};h.onMounted(async()=>{f.value=i.value.options.columns?.selected,d.value=i.value.options.columns?.sorted,u.value=d.value.map(p=>o.headers.find(D=>D.key===p)),await h.nextTick();const{option:v}=pn(l,u,{onUpdate:async p=>{await h.nextTick();const D=Array.from(p.from.children).map(function(O){return O.getAttribute("header-keys")});A.deepEqual(D,d.value)||(d.value=D)}});v("animation",200)});const w=()=>{(!A.deepEqual(f.value,i.value.options.columns?.selected)||!A.deepEqual(d.value,i.value.options.columns?.sorted))&&(r.value.options.columns.selected=f.value,r.value.options.columns.sorted=d.value),s.value=!1};return e({openDialog:y}),(v,p)=>(h.openBlock(),h.createBlock(A.VDialog,{modelValue:h.unref(s),"onUpdate:modelValue":p[1]||(p[1]=D=>h.isRef(s)?s.value=D:null),"max-width":"500",eager:"","retain-focus":!1},{default:h.withCtx(({isActive:D})=>[h.createVNode(A.VCard,{rounded:"lg"},{default:h.withCtx(()=>[h.createVNode(A.VCardTitle,{class:"d-flex justify-space-between align-center"},{default:h.withCtx(()=>[h.createElementVNode("div",bn,h.toDisplayString(v.$t("$datatables.selectColumns")),1),h.createVNode(V.VBtn,{icon:h.unref(t).header.icons.close,variant:"text",onClick:O=>D.value=!1},null,8,["icon","onClick"])]),_:2},1024),h.createVNode(V.VDivider),h.createVNode(A.VCardText,{class:"overflow-auto pt-8"},{default:h.withCtx(()=>[h.createVNode(V.VList,{ref_key:"listRef",ref:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(u),(O,P)=>(h.openBlock(),h.createBlock(V.VListItem,{key:`${h.unref(a)}-${P}`,title:O?.title,"header-keys":O?.key,onClick:()=>{}},{prepend:h.withCtx(()=>[h.createVNode(Xt,{modelValue:h.unref(f),"onUpdate:modelValue":p[0]||(p[0]=M=>h.isRef(f)?f.value=M:null),value:O?.key,"hide-details":""},null,8,["modelValue","value"])]),append:h.withCtx(()=>[h.createVNode(V.VIcon,{icon:h.unref(t).header.icons.drag},null,8,["icon"])]),_:2},1032,["title","header-keys"]))),128))]),_:1},512)]),_:1}),h.createVNode(V.VDivider,{class:"mt-2"}),h.createVNode(A.VCardActions,{class:"my-2 d-flex justify-end"},{default:h.withCtx(()=>[h.createVNode(V.VBtn,{class:"text-none",text:v.$t("$datatables.cancel"),onClick:O=>D.value=!1},null,8,["text","onClick"]),h.createVNode(V.VBtn,{class:"text-none",color:"primary",text:v.$t("$datatables.submit"),variant:"flat",onClick:w},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]))}};function wn(){const n=h.inject("datatablesPluginOptions"),{t:e}=Rt.useI18n(),o=h.ref();return{columnsItems:h.computed(()=>[{title:`${e("$datatables.columns")}`,onClick:o.value?.openDialog,prependIcon:n.header.icons.columns}]),columnsRef:o}}exports._sfc_main=yn;exports.useColumns=wn;
1
+ "use strict";const h=require("vue"),Ae=require("@vueuse/core"),A=require("./index-Bascl9Tm.cjs"),V=require("./dataTables-CT4H3tPX.cjs"),Bt=require("vue-i18n"),Xt=V.propsFactory({...V.omit(A.makeVInputProps(),["direction"]),...V.omit(A.makeVCheckboxBtnProps(),["inline"])},"VCheckbox"),Et=V.genericComponent()({name:"VCheckbox",inheritAttrs:!1,props:Xt(),emits:{"update:modelValue":n=>!0,"update:focused":n=>!0},setup(n,e){let{attrs:o,slots:t}=e;const i=V.useProxiedModel(n,"modelValue"),{isFocused:r,focus:a,blur:l}=A.useFocus(n),s=h.ref(),u=h.useId();return V.useRender(()=>{const[f,d]=V.filterInputAttrs(o),y=A.VInput.filterProps(n),w=A.VCheckboxBtn.filterProps(n);return h.createVNode(A.VInput,h.mergeProps({ref:s,class:["v-checkbox",n.class]},f,y,{modelValue:i.value,"onUpdate:modelValue":v=>i.value=v,id:n.id||`checkbox-${u}`,focused:r.value,style:n.style}),{...t,default:v=>{let{id:p,messagesId:D,isDisabled:O,isReadonly:P,isValid:M}=v;return h.createVNode(A.VCheckboxBtn,h.mergeProps(w,{id:p.value,"aria-describedby":D.value,disabled:O.value,readonly:P.value},d,{error:M.value===!1,modelValue:i.value,"onUpdate:modelValue":F=>i.value=F,onFocus:a,onBlur:l}),t)}})}),V.forwardRefs({},s)}});function Yt(n,e,o){return(e=Wt(e))in n?Object.defineProperty(n,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[e]=o,n}function Z(){return Z=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var t in o)({}).hasOwnProperty.call(o,t)&&(n[t]=o[t])}return n},Z.apply(null,arguments)}function ft(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),o.push.apply(o,t)}return o}function q(n){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(o),!0).forEach(function(t){Yt(n,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):ft(Object(o)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))})}return n}function jt(n,e){if(n==null)return{};var o,t,i=Lt(n,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(t=0;t<r.length;t++)o=r[t],e.indexOf(o)===-1&&{}.propertyIsEnumerable.call(n,o)&&(i[o]=n[o])}return i}function Lt(n,e){if(n==null)return{};var o={};for(var t in n)if({}.hasOwnProperty.call(n,t)){if(e.indexOf(t)!==-1)continue;o[t]=n[t]}return o}function Ht(n,e){if(typeof n!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var t=o.call(n,e);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Wt(n){var e=Ht(n,"string");return typeof e=="symbol"?e:e+""}function nt(n){"@babel/helpers - typeof";return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(n)}var $t="1.15.7";function K(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Q=K(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Oe=K(/Edge/i),ht=K(/firefox/i),Se=K(/safari/i)&&!K(/chrome/i)&&!K(/android/i),lt=K(/iP(ad|od|hone)/i),_t=K(/chrome/i)&&K(/android/i),Dt={capture:!1,passive:!1};function _(n,e,o){n.addEventListener(e,o,!Q&&Dt)}function E(n,e,o){n.removeEventListener(e,o,!Q&&Dt)}function je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function St(n){return n.host&&n!==document&&n.host.nodeType&&n.host!==n?n.host:n.parentNode}function $(n,e,o,t){if(n){o=o||document;do{if(e!=null&&(e[0]===">"?n.parentNode===o&&je(n,e):je(n,e))||t&&n===o)return n;if(n===o)break}while(n=St(n))}return null}var pt=/\s+/g;function j(n,e,o){if(n&&e)if(n.classList)n.classList[o?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(pt," ").replace(" "+e+" "," ");n.className=(t+(o?" "+e:"")).replace(pt," ")}}function g(n,e,o){var t=n&&n.style;if(t){if(o===void 0)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(o=n.currentStyle),e===void 0?o:o[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=o+(typeof o=="string"?"":"px")}}function pe(n,e){var o="";if(typeof n=="string")o=n;else do{var t=g(n,"transform");t&&t!=="none"&&(o=t+" "+o)}while(!e&&(n=n.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function Ct(n,e,o){if(n){var t=n.getElementsByTagName(e),i=0,r=t.length;if(o)for(;i<r;i++)o(t[i],i);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function I(n,e,o,t,i){if(!(!n.getBoundingClientRect&&n!==window)){var r,a,l,s,u,f,d;if(n!==window&&n.parentNode&&n!==z()?(r=n.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||o)&&n!==window&&(i=i||n.parentNode,!Q))do if(i&&i.getBoundingClientRect&&(g(i,"transform")!=="none"||o&&g(i,"position")!=="static")){var y=i.getBoundingClientRect();a-=y.top+parseInt(g(i,"border-top-width")),l-=y.left+parseInt(g(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(t&&n!==window){var w=pe(i||n),v=w&&w.a,p=w&&w.d;w&&(a/=p,l/=v,d/=v,f/=p,s=a+f,u=l+d)}return{top:a,left:l,bottom:s,right:u,width:d,height:f}}}function gt(n,e,o){for(var t=oe(n,!0),i=I(n)[e];t;){var r=I(t)[o],a=void 0;if(a=i>=r,!a)return t;if(t===z())break;t=oe(t,!1)}return!1}function ge(n,e,o,t){for(var i=0,r=0,a=n.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==m.ghost&&(t||a[r]!==m.dragged)&&$(a[r],o.draggable,n,!1)){if(i===e)return a[r];i++}r++}return null}function st(n,e){for(var o=n.lastElementChild;o&&(o===m.ghost||g(o,"display")==="none"||e&&!je(o,e));)o=o.previousElementSibling;return o||null}function H(n,e){var o=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==m.clone&&(!e||je(n,e))&&o++;return o}function mt(n){var e=0,o=0,t=z();if(n)do{var i=pe(n),r=i.a,a=i.d;e+=n.scrollLeft*r,o+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,o]}function Gt(n,e){for(var o in n)if(n.hasOwnProperty(o)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[o][t])return Number(o)}return-1}function oe(n,e){if(!n||!n.getBoundingClientRect)return z();var o=n,t=!1;do if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=g(o);if(o.clientWidth<o.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||o.clientHeight<o.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!o.getBoundingClientRect||o===document.body)return z();if(t||e)return o;t=!0}}while(o=o.parentNode);return z()}function zt(n,e){if(n&&e)for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n}function ze(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var Ce;function Tt(n,e){return function(){if(!Ce){var o=arguments,t=this;o.length===1?n.call(t,o[0]):n.apply(t,o),Ce=setTimeout(function(){Ce=void 0},e)}}}function qt(){clearTimeout(Ce),Ce=void 0}function xt(n,e,o){n.scrollLeft+=e,n.scrollTop+=o}function It(n){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):o?o(n).clone(!0)[0]:n.cloneNode(!0)}function Ot(n,e,o){var t={};return Array.from(n.children).forEach(function(i){var r,a,l,s;if(!(!$(i,e.draggable,n,!1)||i.animated||i===o)){var u=I(i);t.left=Math.min((r=t.left)!==null&&r!==void 0?r:1/0,u.left),t.top=Math.min((a=t.top)!==null&&a!==void 0?a:1/0,u.top),t.right=Math.max((l=t.right)!==null&&l!==void 0?l:-1/0,u.right),t.bottom=Math.max((s=t.bottom)!==null&&s!==void 0?s:-1/0,u.bottom)}}),t.width=t.right-t.left,t.height=t.bottom-t.top,t.x=t.left,t.y=t.top,t}var X="Sortable"+new Date().getTime();function Ut(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(i){if(!(g(i,"display")==="none"||i===m.ghost)){n.push({target:i,rect:I(i)});var r=q({},n[n.length-1].rect);if(i.thisAnimationDuration){var a=pe(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Gt(n,{target:t}),1)},animateAll:function(t){var i=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var r=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,d=I(u),y=u.prevFromRect,w=u.prevToRect,v=l.rect,p=pe(u,!0);p&&(d.top-=p.f,d.left-=p.e),u.toRect=d,u.thisAnimationDuration&&ze(y,d)&&!ze(f,d)&&(v.top-d.top)/(v.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(s=Zt(v,y,w,i.options)),ze(d,f)||(u.prevFromRect=f,u.prevToRect=d,s||(s=i.options.animation),i.animate(u,v,d,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,i,r,a){if(a){g(t,"transition",""),g(t,"transform","");var l=pe(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),d=(i.top-r.top)/(u||1);t.animatingX=!!f,t.animatingY=!!d,g(t,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Kt(t),g(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),g(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){g(t,"transition",""),g(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function Kt(n){return n.offsetWidth}function Zt(n,e,o,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*t.animation}var ce=[],qe={initializeByDefault:!0},Pe={mount:function(e){for(var o in qe)qe.hasOwnProperty(o)&&!(o in e)&&(e[o]=qe[o]);ce.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ce.push(e)},pluginEvent:function(e,o,t){var i=this;this.eventCanceled=!1,t.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ce.forEach(function(a){o[a.pluginName]&&(o[a.pluginName][r]&&o[a.pluginName][r](q({sortable:o},t)),o.options[a.pluginName]&&o[a.pluginName][e]&&o[a.pluginName][e](q({sortable:o},t)))})},initializePlugins:function(e,o,t,i){ce.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,o,e.options);u.sortable=e,u.options=e.options,e[s]=u,Z(t,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,o){var t={};return ce.forEach(function(i){typeof i.eventProperties=="function"&&Z(t,i.eventProperties.call(o[i.pluginName],e))}),t},modifyOption:function(e,o,t){var i;return ce.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[o]=="function"&&(i=r.optionListeners[o].call(e[r.pluginName],t))}),i}};function Qt(n){var e=n.sortable,o=n.rootEl,t=n.name,i=n.targetEl,r=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,d=n.newDraggableIndex,y=n.originalEvent,w=n.putSortable,v=n.extraEventProperties;if(e=e||o&&o[X],!!e){var p,D=e.options,O="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!Q&&!Oe?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||o,p.from=l||o,p.item=i||o,p.clone=r,p.oldIndex=s,p.newIndex=u,p.oldDraggableIndex=f,p.newDraggableIndex=d,p.originalEvent=y,p.pullMode=w?w.lastPutMode:void 0;var P=q(q({},v),Pe.getEventProperties(t,e));for(var M in P)p[M]=P[M];o&&o.dispatchEvent(p),D[O]&&D[O].call(e,p)}}var Jt=["evt"],B=function(e,o){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.evt,r=jt(t,Jt);Pe.pluginEvent.bind(m)(e,o,q({dragEl:c,parentEl:T,ghostEl:b,rootEl:S,nextEl:ue,lastDownEl:Re,cloneEl:C,cloneHidden:ne,dragStarted:Ee,putSortable:N,activeSortable:m.active,originalEvent:i,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te,hideGhostForTarget:kt,unhideGhostForTarget:Vt,cloneNowHidden:function(){ne=!0},cloneNowShown:function(){ne=!1},dispatchSortableEvent:function(l){R({sortable:o,name:l,originalEvent:i})}},r))};function R(n){Qt(q({putSortable:N,cloneEl:C,targetEl:c,rootEl:S,oldIndex:he,oldDraggableIndex:Te,newIndex:L,newDraggableIndex:te},n))}var c,T,b,S,ue,Re,C,ne,he,L,Te,te,ke,N,fe=!1,Le=!1,He=[],le,W,Ue,Ke,vt,bt,Ee,de,xe,Ie=!1,Ve=!1,Be,k,Ze=[],ot=!1,We=[],Ge=typeof document<"u",Me=lt,yt=Oe||Q?"cssFloat":"float",en=Ge&&!_t&&!lt&&"draggable"in document.createElement("div"),Pt=(function(){if(Ge){if(Q)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Nt=function(e,o){var t=g(e),i=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),r=ge(e,0,o),a=ge(e,1,o),l=r&&g(r),s=a&&g(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+I(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&t[yt]==="none"||a&&t[yt]==="none"&&u+f>i)?"vertical":"horizontal"},tn=function(e,o,t){var i=t?e.left:e.top,r=t?e.right:e.bottom,a=t?e.width:e.height,l=t?o.left:o.top,s=t?o.right:o.bottom,u=t?o.width:o.height;return i===l||r===s||i+a/2===l+u/2},nn=function(e,o){var t;return He.some(function(i){var r=i[X].options.emptyInsertThreshold;if(!(!r||st(i))){var a=I(i),l=e>=a.left-r&&e<=a.right+r,s=o>=a.top-r&&o<=a.bottom+r;if(l&&s)return t=i}}),t},At=function(e){function o(r,a){return function(l,s,u,f){var d=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||d))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return o(r(l,s,u,f),a)(l,s,u,f);var y=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===y||r.join&&r.indexOf(y)>-1}}var t={},i=e.group;(!i||nt(i)!="object")&&(i={name:i}),t.name=i.name,t.checkPull=o(i.pull,!0),t.checkPut=o(i.put),t.revertClone=i.revertClone,e.group=t},kt=function(){!Pt&&b&&g(b,"display","none")},Vt=function(){!Pt&&b&&g(b,"display","")};Ge&&!_t&&document.addEventListener("click",function(n){if(Le)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Le=!1,!1},!0);var se=function(e){if(c){e=e.touches?e.touches[0]:e;var o=nn(e.clientX,e.clientY);if(o){var t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.target=t.rootEl=o,t.preventDefault=void 0,t.stopPropagation=void 0,o[X]._onDragOver(t)}}},on=function(e){c&&c.parentNode[X]._isOutsideThisEl(e.target)};function m(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=Z({},e),n[X]=this;var o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Nt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:m.supportPointer!==!1&&"PointerEvent"in window&&(!Se||lt),emptyInsertThreshold:5};Pe.initializePlugins(this,n,o);for(var t in o)!(t in e)&&(e[t]=o[t]);At(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:en,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?_(n,"pointerdown",this._onTapStart):(_(n,"mousedown",this._onTapStart),_(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(n,"dragover",this),_(n,"dragenter",this)),He.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Z(this,Ut())}m.prototype={constructor:m,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(de=null)},_getDirection:function(e,o){return typeof this.options.direction=="function"?this.options.direction.call(this,e,o,c):this.options.direction},_onTapStart:function(e){if(e.cancelable){var o=this,t=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(fn(t),!c&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Se&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,t,!1),!(s&&s.animated)&&Re!==s)){if(he=H(s),Te=H(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){R({sortable:o,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),B("filter",o,{evt:e}),r&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=$(u,d.trim(),t,!1),d)return R({sortable:o,rootEl:d,name:"filter",targetEl:s,fromEl:t,toEl:t}),B("filter",o,{evt:e}),!0}),f)){r&&e.preventDefault();return}i.handle&&!$(u,i.handle,t,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,o,t){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(t&&!c&&t.parentNode===r){var u=I(t);if(S=r,c=t,T=c.parentNode,ue=c.nextSibling,Re=t,ke=a.group,m.dragged=c,le={target:c,clientX:(o||e).clientX,clientY:(o||e).clientY},vt=le.clientX-u.left,bt=le.clientY-u.top,this._lastX=(o||e).clientX,this._lastY=(o||e).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:e}),m.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(e,o),R({sortable:i,name:"choose",originalEvent:e}),j(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Ct(c,f.trim(),Qe)}),_(l,"dragover",se),_(l,"mousemove",se),_(l,"touchmove",se),a.supportPointer?(_(l,"pointerup",i._onDrop),!this.nativeDraggable&&_(l,"pointercancel",i._onDrop)):(_(l,"mouseup",i._onDrop),_(l,"touchend",i._onDrop),_(l,"touchcancel",i._onDrop)),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||o)&&(!this.nativeDraggable||!(Oe||Q))){if(m.eventCanceled){this._onDrop();return}a.supportPointer?(_(l,"pointerup",i._disableDelayedDrag),_(l,"pointercancel",i._disableDelayedDrag)):(_(l,"mouseup",i._disableDelayedDrag),_(l,"touchend",i._disableDelayedDrag),_(l,"touchcancel",i._disableDelayedDrag)),_(l,"mousemove",i._delayedDragTouchMoveHandler),_(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&_(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var o=e.touches?e.touches[0]:e;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&Qe(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._disableDelayedDrag),E(e,"touchend",this._disableDelayedDrag),E(e,"touchcancel",this._disableDelayedDrag),E(e,"pointerup",this._disableDelayedDrag),E(e,"pointercancel",this._disableDelayedDrag),E(e,"mousemove",this._delayedDragTouchMoveHandler),E(e,"touchmove",this._delayedDragTouchMoveHandler),E(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,o){o=o||e.pointerType=="touch"&&e,!this.nativeDraggable||o?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):o?_(document,"touchmove",this._onTouchMove):_(document,"mousemove",this._onTouchMove):(_(c,"dragend",this),_(S,"dragstart",this._onDragStart));try{document.selection?Xe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,o){if(fe=!1,S&&c){B("dragStarted",this,{evt:o}),this.nativeDraggable&&_(document,"dragover",on);var t=this.options;!e&&j(c,t.dragClass,!1),j(c,t.ghostClass,!0),m.active=this,e&&this._appendGhost(),R({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(W){this._lastX=W.clientX,this._lastY=W.clientY,kt();for(var e=document.elementFromPoint(W.clientX,W.clientY),o=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(W.clientX,W.clientY),e!==o);)o=e;if(c.parentNode[X]._isOutsideThisEl(e),o)do{if(o[X]){var t=void 0;if(t=o[X]._onDragOver({clientX:W.clientX,clientY:W.clientY,target:e,rootEl:o}),t&&!this.options.dragoverBubble)break}e=o}while(o=St(o));Vt()}},_onTouchMove:function(e){if(le){var o=this.options,t=o.fallbackTolerance,i=o.fallbackOffset,r=e.touches?e.touches[0]:e,a=b&&pe(b,!0),l=b&&a&&a.a,s=b&&a&&a.d,u=Me&&k&&mt(k),f=(r.clientX-le.clientX+i.x)/(l||1)+(u?u[0]-Ze[0]:0)/(l||1),d=(r.clientY-le.clientY+i.y)/(s||1)+(u?u[1]-Ze[1]:0)/(s||1);if(!m.active&&!fe){if(t&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(b){a?(a.e+=f-(Ue||0),a.f+=d-(Ke||0)):a={a:1,b:0,c:0,d:1,e:f,f:d};var y="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");g(b,"webkitTransform",y),g(b,"mozTransform",y),g(b,"msTransform",y),g(b,"transform",y),Ue=f,Ke=d,W=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!b){var e=this.options.fallbackOnBody?document.body:S,o=I(c,!0,Me,!0,e),t=this.options;if(Me){for(k=e;g(k,"position")==="static"&&g(k,"transform")==="none"&&k!==document;)k=k.parentNode;k!==document.body&&k!==document.documentElement?(k===document&&(k=z()),o.top+=k.scrollTop,o.left+=k.scrollLeft):k=z(),Ze=mt(k)}b=c.cloneNode(!0),j(b,t.ghostClass,!1),j(b,t.fallbackClass,!0),j(b,t.dragClass,!0),g(b,"transition",""),g(b,"transform",""),g(b,"box-sizing","border-box"),g(b,"margin",0),g(b,"top",o.top),g(b,"left",o.left),g(b,"width",o.width),g(b,"height",o.height),g(b,"opacity","0.8"),g(b,"position",Me?"absolute":"fixed"),g(b,"zIndex","100000"),g(b,"pointerEvents","none"),m.ghost=b,e.appendChild(b),g(b,"transform-origin",vt/parseInt(b.style.width)*100+"% "+bt/parseInt(b.style.height)*100+"%")}},_onDragStart:function(e,o){var t=this,i=e.dataTransfer,r=t.options;if(B("dragStart",this,{evt:e}),m.eventCanceled){this._onDrop();return}B("setupClone",this),m.eventCanceled||(C=It(c),C.removeAttribute("id"),C.draggable=!1,C.style["will-change"]="",this._hideClone(),j(C,this.options.chosenClass,!1),m.clone=C),t.cloneId=Xe(function(){B("clone",t),!m.eventCanceled&&(t.options.removeCloneOnHide||S.insertBefore(C,c),t._hideClone(),R({sortable:t,name:"clone"}))}),!o&&j(c,r.dragClass,!0),o?(Le=!0,t._loopId=setInterval(t._emulateDragOver,50)):(E(document,"mouseup",t._onDrop),E(document,"touchend",t._onDrop),E(document,"touchcancel",t._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(t,i,c)),_(document,"drop",t),g(c,"transform","translateZ(0)")),fe=!0,t._dragStartId=Xe(t._dragStarted.bind(t,o,e)),_(document,"selectstart",t),Ee=!0,window.getSelection().removeAllRanges(),Se&&g(document.body,"user-select","none")},_onDragOver:function(e){var o=this.el,t=e.target,i,r,a,l=this.options,s=l.group,u=m.active,f=ke===s,d=l.sort,y=N||u,w,v=this,p=!1;if(ot)return;function D(we,Ft){B(we,v,q({evt:e,isOwner:f,axis:w?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:d,fromSortable:y,target:t,completed:P,onMove:function(dt,Rt){return Fe(S,o,c,i,dt,I(dt),e,Rt)},changed:M},Ft))}function O(){D("dragOverAnimationCapture"),v.captureAnimationState(),v!==y&&y.captureAnimationState()}function P(we){return D("dragOverCompleted",{insertion:we}),we&&(f?u._hideClone():u._showClone(v),v!==y&&(j(c,N?N.options.ghostClass:u.options.ghostClass,!1),j(c,l.ghostClass,!0)),N!==v&&v!==m.active?N=v:v===m.active&&N&&(N=null),y===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){D("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==y&&(y.animateAll(),y._ignoreWhileAnimating=null)),(t===c&&!c.animated||t===o&&!t.animated)&&(de=null),!l.dragoverBubble&&!e.rootEl&&t!==document&&(c.parentNode[X]._isOutsideThisEl(e.target),!we&&se(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function M(){L=H(c),te=H(c,l.draggable),R({sortable:v,name:"change",toEl:o,newIndex:L,newDraggableIndex:te,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=$(t,l.draggable,o,!0),D("dragOver"),m.eventCanceled)return p;if(c.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return P(!1);if(Le=!1,u&&!l.disabled&&(f?d||(a=T!==S):N===this||(this.lastPutMode=ke.checkPull(this,u,c,e))&&s.checkPut(this,u,c,e))){if(w=this._getDirection(e,t)==="vertical",i=I(c),D("dragOverValid"),m.eventCanceled)return p;if(a)return T=S,O(),this._hideClone(),D("revert"),m.eventCanceled||(ue?S.insertBefore(c,ue):S.appendChild(c)),P(!0);var F=st(o,l.draggable);if(!F||sn(e,w,this)&&!F.animated){if(F===c)return P(!1);if(F&&o===e.target&&(t=F),t&&(r=I(t)),Fe(S,o,c,i,t,r,e,!!t)!==!1)return O(),F&&F.nextSibling?o.insertBefore(c,F.nextSibling):o.appendChild(c),T=o,M(),P(!0)}else if(F&&ln(e,w,this)){var ie=ge(o,0,l,!0);if(ie===c)return P(!1);if(t=ie,r=I(t),Fe(S,o,c,i,t,r,e,!1)!==!1)return O(),o.insertBefore(c,ie),T=o,M(),P(!0)}else if(t.parentNode===o){r=I(t);var G=0,re,me=c.parentNode!==o,Y=!tn(c.animated&&c.toRect||i,t.animated&&t.toRect||r,w),ve=w?"top":"left",J=gt(t,"top","top")||gt(c,"top","top"),be=J?J.scrollTop:void 0;de!==t&&(re=r[ve],Ie=!1,Ve=!Y&&l.invertSwap||me),G=un(e,t,r,w,Y?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Ve,de===t);var U;if(G!==0){var ae=H(c);do ae-=G,U=T.children[ae];while(U&&(g(U,"display")==="none"||U===b))}if(G===0||U===t)return P(!1);de=t,xe=G;var ye=t.nextElementSibling,ee=!1;ee=G===1;var Ne=Fe(S,o,c,i,t,r,e,ee);if(Ne!==!1)return(Ne===1||Ne===-1)&&(ee=Ne===1),ot=!0,setTimeout(an,30),O(),ee&&!ye?o.appendChild(c):t.parentNode.insertBefore(c,ee?ye:t),J&&xt(J,0,be-J.scrollTop),T=c.parentNode,re!==void 0&&!Ve&&(Be=Math.abs(re-I(t)[ve])),M(),P(!0)}if(o.contains(c))return P(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){E(document,"mousemove",this._onTouchMove),E(document,"touchmove",this._onTouchMove),E(document,"pointermove",this._onTouchMove),E(document,"dragover",se),E(document,"mousemove",se),E(document,"touchmove",se)},_offUpEvents:function(){var e=this.el.ownerDocument;E(e,"mouseup",this._onDrop),E(e,"touchend",this._onDrop),E(e,"pointerup",this._onDrop),E(e,"pointercancel",this._onDrop),E(e,"touchcancel",this._onDrop),E(document,"selectstart",this)},_onDrop:function(e){var o=this.el,t=this.options;if(L=H(c),te=H(c,t.draggable),B("drop",this,{evt:e}),T=c&&c.parentNode,L=H(c),te=H(c,t.draggable),m.eventCanceled){this._nulling();return}fe=!1,Ve=!1,Ie=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),it(this.cloneId),it(this._dragStartId),this.nativeDraggable&&(E(document,"drop",this),E(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Se&&g(document.body,"user-select",""),g(c,"transform",""),e&&(Ee&&(e.cancelable&&e.preventDefault(),!t.dropBubble&&e.stopPropagation()),b&&b.parentNode&&b.parentNode.removeChild(b),(S===T||N&&N.lastPutMode!=="clone")&&C&&C.parentNode&&C.parentNode.removeChild(C),c&&(this.nativeDraggable&&E(c,"dragend",this),Qe(c),c.style["will-change"]="",Ee&&!fe&&j(c,N?N.options.ghostClass:this.options.ghostClass,!1),j(c,this.options.chosenClass,!1),R({sortable:this,name:"unchoose",toEl:T,newIndex:null,newDraggableIndex:null,originalEvent:e}),S!==T?(L>=0&&(R({rootEl:T,name:"add",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"remove",toEl:T,originalEvent:e}),R({rootEl:T,name:"sort",toEl:T,fromEl:S,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),N&&N.save()):L!==he&&L>=0&&(R({sortable:this,name:"update",toEl:T,originalEvent:e}),R({sortable:this,name:"sort",toEl:T,originalEvent:e})),m.active&&((L==null||L===-1)&&(L=he,te=Te),R({sortable:this,name:"end",toEl:T,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),S=c=T=b=ue=C=Re=ne=le=W=Ee=L=te=he=Te=de=xe=N=ke=m.dragged=m.ghost=m.clone=m.active=null;var e=this.el;We.forEach(function(o){e.contains(o)&&(o.checked=!0)}),We.length=Ue=Ke=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":c&&(this._onDragOver(e),rn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],o,t=this.el.children,i=0,r=t.length,a=this.options;i<r;i++)o=t[i],$(o,a.draggable,this.el,!1)&&e.push(o.getAttribute(a.dataIdAttr)||dn(o));return e},sort:function(e,o){var t={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(t[r]=l)},this),o&&this.captureAnimationState(),e.forEach(function(r){t[r]&&(i.removeChild(t[r]),i.appendChild(t[r]))}),o&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,o){return $(e,o||this.options.draggable,this.el,!1)},option:function(e,o){var t=this.options;if(o===void 0)return t[e];var i=Pe.modifyOption(this,e,o);typeof i<"u"?t[e]=i:t[e]=o,e==="group"&&At(t)},destroy:function(){B("destroy",this);var e=this.el;e[X]=null,E(e,"mousedown",this._onTapStart),E(e,"touchstart",this._onTapStart),E(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(E(e,"dragover",this),E(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),He.splice(He.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ne){if(B("hideClone",this),m.eventCanceled)return;g(C,"display","none"),this.options.removeCloneOnHide&&C.parentNode&&C.parentNode.removeChild(C),ne=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(ne){if(B("showClone",this),m.eventCanceled)return;c.parentNode==S&&!this.options.group.revertClone?S.insertBefore(C,c):ue?S.insertBefore(C,ue):S.appendChild(C),this.options.group.revertClone&&this.animate(c,C),g(C,"display",""),ne=!1}}};function rn(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Fe(n,e,o,t,i,r,a,l){var s,u=n[X],f=u.options.onMove,d;return window.CustomEvent&&!Q&&!Oe?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=o,s.draggedRect=t,s.related=i||e,s.relatedRect=r||I(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(d=f.call(u,s,a)),d}function Qe(n){n.draggable=!1}function an(){ot=!1}function ln(n,e,o){var t=I(ge(o.el,0,o.options,!0)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX<i.left-r||n.clientY<t.top&&n.clientX<t.right:n.clientY<i.top-r||n.clientY<t.bottom&&n.clientX<t.left}function sn(n,e,o){var t=I(st(o.el,o.options.draggable)),i=Ot(o.el,o.options,b),r=10;return e?n.clientX>i.right+r||n.clientY>t.bottom&&n.clientX>t.left:n.clientY>i.bottom+r||n.clientX>t.right&&n.clientY>t.top}function un(n,e,o,t,i,r,a,l){var s=t?n.clientY:n.clientX,u=t?o.height:o.width,f=t?o.top:o.left,d=t?o.bottom:o.right,y=!1;if(!a){if(l&&Be<u*i){if(!Ie&&(xe===1?s>f+u*r/2:s<d-u*r/2)&&(Ie=!0),Ie)y=!0;else if(xe===1?s<f+Be:s>d-Be)return-xe}else if(s>f+u*(1-i)/2&&s<d-u*(1-i)/2)return cn(e)}return y=y||a,y&&(s<f+u*r/2||s>d-u*r/2)?s>f+u/2?1:-1:0}function cn(n){return H(c)<H(n)?1:-1}function dn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,o=e.length,t=0;o--;)t+=e.charCodeAt(o);return t.toString(36)}function fn(n){We.length=0;for(var e=n.getElementsByTagName("input"),o=e.length;o--;){var t=e[o];t.checked&&We.push(t)}}function Xe(n){return setTimeout(n,0)}function it(n){return clearTimeout(n)}Ge&&_(document,"touchmove",function(n){(m.active||fe)&&n.cancelable&&n.preventDefault()});m.utils={on:_,off:E,css:g,find:Ct,is:function(e,o){return!!$(e,o,e,!1)},extend:zt,throttle:Tt,closest:$,toggleClass:j,clone:It,index:H,nextTick:Xe,cancelNextTick:it,detectDirection:Nt,getChild:ge,expando:X};m.get=function(n){return n[X]};m.mount=function(){for(var n=arguments.length,e=new Array(n),o=0;o<n;o++)e[o]=arguments[o];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(m.utils=q(q({},m.utils),t.utils)),Pe.mount(t)})};m.create=function(n,e){return new m(n,e)};m.version=$t;var x=[],_e,rt,at=!1,Je,et,$e,De;function hn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(o){var t=o.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var t=o.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?E(document,"dragover",this._handleAutoScroll):(E(document,"pointermove",this._handleFallbackAutoScroll),E(document,"touchmove",this._handleFallbackAutoScroll),E(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Ye(),qt()},nulling:function(){$e=rt=_e=at=De=Je=et=null,x.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,t){var i=this,r=(o.touches?o.touches[0]:o).clientX,a=(o.touches?o.touches[0]:o).clientY,l=document.elementFromPoint(r,a);if($e=o,t||this.options.forceAutoScrollFallback||Oe||Q||Se){tt(o,this.options,l,t);var s=oe(l,!0);at&&(!De||r!==Je||a!==et)&&(De&&wt(),De=setInterval(function(){var u=oe(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Ye()),tt(o,i.options,u,t)},10),Je=r,et=a)}else{if(!this.options.bubbleScroll||oe(l,!0)===z()){Ye();return}tt(o,this.options,oe(l,!1),!1)}}},Z(n,{pluginName:"scroll",initializeByDefault:!0})}function Ye(){x.forEach(function(n){clearInterval(n.pid)}),x=[]}function wt(){clearInterval(De)}var tt=Tt(function(n,e,o,t){if(e.scroll){var i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;rt!==o&&(rt=o,Ye(),_e=e.scroll,f=e.scrollFn,_e===!0&&(_e=oe(o,!0)));var d=0,y=_e;do{var w=y,v=I(w),p=v.top,D=v.bottom,O=v.left,P=v.right,M=v.width,F=v.height,ie=void 0,G=void 0,re=w.scrollWidth,me=w.scrollHeight,Y=g(w),ve=w.scrollLeft,J=w.scrollTop;w===s?(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"||Y.overflowX==="visible"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"||Y.overflowY==="visible")):(ie=M<re&&(Y.overflowX==="auto"||Y.overflowX==="scroll"),G=F<me&&(Y.overflowY==="auto"||Y.overflowY==="scroll"));var be=ie&&(Math.abs(P-i)<=a&&ve+M<re)-(Math.abs(O-i)<=a&&!!ve),U=G&&(Math.abs(D-r)<=a&&J+F<me)-(Math.abs(p-r)<=a&&!!J);if(!x[d])for(var ae=0;ae<=d;ae++)x[ae]||(x[ae]={});(x[d].vx!=be||x[d].vy!=U||x[d].el!==w)&&(x[d].el=w,x[d].vx=be,x[d].vy=U,clearInterval(x[d].pid),(be!=0||U!=0)&&(u=!0,x[d].pid=setInterval((function(){t&&this.layer===0&&m.active._onTouchMove($e);var ye=x[this.layer].vy?x[this.layer].vy*l:0,ee=x[this.layer].vx?x[this.layer].vx*l:0;typeof f=="function"&&f.call(m.dragged.parentNode[X],ee,ye,n,$e,x[this.layer].el)!=="continue"||xt(x[this.layer].el,ee,ye)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&y!==s&&(y=oe(y,!1)));at=u}},30),Mt=function(e){var o=e.originalEvent,t=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(o){var u=t||r;l();var f=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,d=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(d)&&(a("spill"),this.onSpill({dragEl:i,putSortable:t}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var o=e.oldDraggableIndex;this.startIndex=o},onSpill:function(e){var o=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var i=ge(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(o,i):this.sortable.el.appendChild(o),this.sortable.animateAll(),t&&t.animateAll()},drop:Mt};Z(ut,{pluginName:"revertOnSpill"});function ct(){}ct.prototype={onSpill:function(e){var o=e.dragEl,t=e.putSortable,i=t||this.sortable;i.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),i.animateAll()},drop:Mt};Z(ct,{pluginName:"removeOnSpill"});m.mount(new hn);m.mount(ct,ut);function pn(n,e,o={}){let t;const{document:i=Ae.defaultDocument,watchElement:r=!1,...a}=o,l={onUpdate:p=>{vn(e,p.oldIndex,p.newIndex,p)}},s=h.computed(()=>typeof n=="string"?i?.querySelector(n):Ae.unrefElement(n)),u=()=>{t?.destroy(),t=void 0},f=p=>{!p||t!==void 0||(t=new m(p,{...l,...a}))},d=()=>{const p=s.value;p&&f(p)},y=(p,D)=>{if(D!==void 0)t?.option(p,D);else return t?.option(p)};let w;r&&typeof n!="string"?w=h.watch(s,p=>{u(),p&&f(p)},{immediate:!0,flush:"post"}):Ae.tryOnMounted(d);const v=()=>{u()};return Ae.tryOnScopeDispose(()=>{w?.(),u()}),{stop:v,start:d,option:y}}function gn(n,e,o){const t=n.children[o];n.insertBefore(e,t)}function mn(n){n.parentNode&&n.parentNode.removeChild(n)}function vn(n,e,o,t=null){t!=null&&(mn(t.item),gn(t.from,t.item,e));const i=h.isRef(n),r=i?[...h.toValue(n)]:h.toValue(n);if(o>=0&&o<r.length){const a=r.splice(e,1)[0];h.nextTick(()=>{r.splice(o,0,a),i&&(n.value=r)})}}const bn={class:"text-medium-emphasis ps-2"},yn={__name:"Dialog",setup(n,{expose:e}){const o=h.inject("table_props"),t=h.inject("datatablesPluginOptions"),{tableState:i}=A.useTableState(),{tableDataState:r}=A.useDatastate(o),a=h.ref(0),l=h.useTemplateRef("listRef"),s=h.ref(!1),u=h.ref([]),f=h.ref([]),d=h.ref([]),y=()=>{s.value=!0};h.onMounted(async()=>{f.value=i.value.options.columns?.selected,d.value=i.value.options.columns?.sorted,u.value=d.value.map(p=>o.headers.find(D=>D.key===p)),await h.nextTick();const{option:v}=pn(l,u,{onUpdate:async p=>{await h.nextTick();const D=Array.from(p.from.children).map(function(O){return O.getAttribute("header-keys")});A.deepEqual(D,d.value)||(d.value=D)}});v("animation",200)});const w=()=>{(!A.deepEqual(f.value,i.value.options.columns?.selected)||!A.deepEqual(d.value,i.value.options.columns?.sorted))&&(r.value.options.columns.selected=f.value,r.value.options.columns.sorted=d.value),s.value=!1};return e({openDialog:y}),(v,p)=>(h.openBlock(),h.createBlock(A.VDialog,{modelValue:h.unref(s),"onUpdate:modelValue":p[1]||(p[1]=D=>h.isRef(s)?s.value=D:null),"max-width":"500",eager:"","retain-focus":!1},{default:h.withCtx(({isActive:D})=>[h.createVNode(A.VCard,{rounded:"lg"},{default:h.withCtx(()=>[h.createVNode(A.VCardTitle,{class:"d-flex justify-space-between align-center"},{default:h.withCtx(()=>[h.createElementVNode("div",bn,h.toDisplayString(v.$t("$datatables.selectColumns")),1),h.createVNode(V.VBtn,{icon:h.unref(t).header.icons.close,variant:"text",onClick:O=>D.value=!1},null,8,["icon","onClick"])]),_:2},1024),h.createVNode(V.VDivider),h.createVNode(A.VCardText,{class:"overflow-auto pt-8"},{default:h.withCtx(()=>[h.createVNode(V.VList,{ref_key:"listRef",ref:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(u),(O,P)=>(h.openBlock(),h.createBlock(V.VListItem,{key:`${h.unref(a)}-${P}`,title:O?.title,"header-keys":O?.key,onClick:()=>{}},{prepend:h.withCtx(()=>[h.createVNode(Et,{modelValue:h.unref(f),"onUpdate:modelValue":p[0]||(p[0]=M=>h.isRef(f)?f.value=M:null),value:O?.key,"hide-details":""},null,8,["modelValue","value"])]),append:h.withCtx(()=>[h.createVNode(V.VIcon,{icon:h.unref(t).header.icons.drag},null,8,["icon"])]),_:2},1032,["title","header-keys"]))),128))]),_:1},512)]),_:1}),h.createVNode(V.VDivider,{class:"mt-2"}),h.createVNode(A.VCardActions,{class:"my-2 d-flex justify-end"},{default:h.withCtx(()=>[h.createVNode(V.VBtn,{class:"text-none",text:v.$t("$datatables.cancel"),onClick:O=>D.value=!1},null,8,["text","onClick"]),h.createVNode(V.VBtn,{class:"text-none",color:"primary",text:v.$t("$datatables.submit"),variant:"flat",onClick:w},null,8,["text"])]),_:2},1024)]),_:2},1024)]),_:1},8,["modelValue"]))}};function wn(){const n=h.inject("datatablesPluginOptions"),{t:e}=Bt.useI18n(),o=h.ref();return{columnsItems:h.computed(()=>[{title:`${e("$datatables.columns")}`,onClick:o.value?.openDialog,prependIcon:n.header.icons.columns}]),columnsRef:o}}exports.VCheckbox=Et;exports._sfc_main=yn;exports.useColumns=wn;
@@ -1,7 +1,7 @@
1
1
  import { ref as ue, useId as Zt, createVNode as R, mergeProps as bt, computed as Mt, watch as Qt, isRef as rt, toValue as yt, nextTick as at, inject as lt, useTemplateRef as Jt, onMounted as en, openBlock as ze, createBlock as wt, unref as ce, withCtx as J, createElementVNode as tn, toDisplayString as nn, createElementBlock as on, Fragment as rn, renderList as an } from "vue";
2
2
  import { defaultDocument as ln, unrefElement as sn, tryOnMounted as un, tryOnScopeDispose as cn } from "@vueuse/core";
3
- import { p as dn, q as Et, c as _t, r as fn, s as hn, u as pn, k as mn, t as gn, g as vn, v as bn, h as yn, w as wn, a as Ue } from "./index-Dlb5c56z.js";
4
- import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as qe, ax as St, au as In, av as On, i as xn } from "./dataTables-Du4VyMxR.js";
3
+ import { r as dn, s as Et, c as _t, t as fn, v as hn, u as pn, w as mn, j as gn, g as vn, k as bn, h as yn, l as wn, a as Ue } from "./index-vAe2qE0y.js";
4
+ import { g as En, E as _n, h as Dn, a3 as Sn, ao as Tn, p as Cn, a7 as Dt, aL as qe, ax as St, au as In, av as On, i as xn } from "./dataTables-BwYZVAqY.js";
5
5
  import { useI18n as Pn } from "vue-i18n";
6
6
  const An = Cn({
7
7
  ...Dt(hn(), ["direction"]),
@@ -1498,6 +1498,7 @@ function yo() {
1498
1498
  ]), columnsRef: o };
1499
1499
  }
1500
1500
  export {
1501
+ Nn as V,
1501
1502
  bo as _,
1502
1503
  yo as u
1503
1504
  };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("vue-i18n"),e=require("vue");function o(){const t=e.inject("datatablesPluginOptions"),s=e.inject("table_props"),n=e.inject("busEmits"),{t:r}=i.useI18n(),a=e.computed(()=>s.api?[{title:`${r("$datatables.refresh")}`,onClick:c,prependIcon:t.header.icons.refresh}]:[]),c=()=>{n("refetchData")};return{refreshTableItems:a}}exports.useRefreshTable=o;
@@ -0,0 +1,17 @@
1
+ import { useI18n as i } from "vue-i18n";
2
+ import { inject as t, computed as c } from "vue";
3
+ function u() {
4
+ const e = t("datatablesPluginOptions"), s = t("table_props"), r = t("busEmits"), { t: n } = i(), o = c(() => s.api ? [
5
+ {
6
+ title: `${n("$datatables.refresh")}`,
7
+ onClick: a,
8
+ prependIcon: e.header.icons.refresh
9
+ }
10
+ ] : []), a = () => {
11
+ r("refetchData");
12
+ };
13
+ return { refreshTableItems: o };
14
+ }
15
+ export {
16
+ u
17
+ };
package/lib/locale/de.js CHANGED
@@ -11,4 +11,13 @@ export default {
11
11
  download: "Herunterladen",
12
12
  more: "Mehr",
13
13
  refresh: "Aktualisieren",
14
+ options: "Optionen",
15
+ clearData: {
16
+ button: "Tabellendaten löschen",
17
+ dialog: {
18
+ title: "Tabellenstatus zurücksetzen",
19
+ description:
20
+ "Wählen Sie aus, welche Tabelleneinstellungen zurückgesetzt werden sollen, einschließlich Suche, Filter und Optionen.",
21
+ },
22
+ },
14
23
  };
package/lib/locale/el.js CHANGED
@@ -11,4 +11,13 @@ export default {
11
11
  download: "Λήψη",
12
12
  more: "Περισσότερα",
13
13
  refresh: "Ανανέωση",
14
+ options: "Επιλογές",
15
+ clearData: {
16
+ button: "Εκκαθάριση δεδομένων πίνακα",
17
+ dialog: {
18
+ title: "Εκκαθάριση κατάστασης πίνακα",
19
+ description:
20
+ "Επιλέξτε ποιες ρυθμίσεις πίνακα θα επαναφερθούν, συμπεριλαμβανομένων της αναζήτησης, των φίλτρων και των επιλογών.",
21
+ },
22
+ },
14
23
  };
package/lib/locale/en.js CHANGED
@@ -11,4 +11,12 @@ export default {
11
11
  download: "Download",
12
12
  more: "More",
13
13
  refresh: "Refresh",
14
+ options: "Options",
15
+ clearData: {
16
+ button: "Clear Table Data",
17
+ dialog: {
18
+ title: "Clear Table State",
19
+ description: "Select which table settings to reset, including search, filters, and options.",
20
+ },
21
+ },
14
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ianicdev/datatables2",
3
- "version": "0.11.7",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "types": "./lib/index.d.ts",
6
6
  "publishConfig": {
@@ -67,20 +67,20 @@
67
67
  "qs": "^6.15.0",
68
68
  "roboto-fontface": "*",
69
69
  "sortablejs": "^1.15.7",
70
- "vue": "^3.5.29",
71
- "vue-i18n": "^11.2.8",
70
+ "vue": "^3.5.30",
71
+ "vue-i18n": "^11.3.0",
72
72
  "vuetify": "^3.12.2",
73
73
  "xlsx": "npm:@e965/xlsx@0.20.3"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@eslint/js": "^10.0.1",
77
77
  "@tsconfig/node22": "^22.0.5",
78
- "@types/node": "^25.3.3",
78
+ "@types/node": "^25.4.0",
79
79
  "@vitejs/plugin-vue": "^6.0.4",
80
80
  "@vue/eslint-config-typescript": "^14.7.0",
81
81
  "@vue/tsconfig": "^0.9.0",
82
82
  "defu": "^6.1.4",
83
- "eslint": "^10.0.2",
83
+ "eslint": "^10.0.3",
84
84
  "eslint-plugin-vue": "^10.8.0",
85
85
  "pinia": "^3.0.4",
86
86
  "sass": "^1.97.3",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-BeStYA4v.cjs"),k=require("./useColumns-BpprQUUi.cjs"),e=require("vue"),H=require("vue-i18n"),y=require("./printjs-BbgDICDe.cjs"),c=require("./useDownload-CELkYaWd.cjs"),j=require("./useRefreshTable-CYZLF_fz.cjs"),m=require("./dataTables-BxXcbziu.cjs");var q=y.requirePrint();const I=y.getDefaultExportFromCjs(q);function P(){const a=e.inject("table_props"),u=e.inject("tableRef"),r=e.inject("downloadModal"),t=e.computed(()=>a.headers.filter(l=>l?.printable!==!1));return{printTable:async()=>{r.value=!0;const l=await u.value.getItemsForPrint(),p=[];l.forEach(n=>{const i={};t.value.forEach(o=>{o.value?i[c.escapeKeyString(o.key)]=o.value(n):i[c.escapeKeyString(o.key)]=c.getValueByStringPath(n,o.key)??""}),p.push(i)}),I({printable:p,type:"json",properties:t.value.map(n=>({field:c.escapeKeyString(n.key),displayName:n.title}))}),r.value=!1}}}const h=e.defineComponent({__name:"Options",props:{responsiveHeader:{type:Boolean}},setup(a){const u=e.inject("table_props"),r=e.inject("datatablesPluginOptions"),t=a,{t:b}=H.useI18n(),{printTable:l}=P(),{downloadItems:p}=c.useDownload(),{refreshTableItems:n}=j.useRefreshTable(),{columnsItems:i,columnsRef:o}=k.useColumns(),{advancedFiltersItems:V,advancedFiltersDialog:f}=g.useAdvancedFilters(),v=e.ref(!1),x=e.computed(()=>[{title:b("$datatables.print"),onClick:l,prependIcon:r.header.icons.print,...u.options.header?.export?.buttons},...t.responsiveHeader?p.value:[],...t.responsiveHeader?n.value:[],...t.responsiveHeader?i.value:[],...t.responsiveHeader?V.value:[],...u.options?.globalButtons??[]]);return(B,d)=>{const _=k._sfc_main,w=g._sfc_main;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(m.VMenu,{modelValue:e.unref(v),"onUpdate:modelValue":d[0]||(d[0]=s=>e.isRef(v)?v.value=s:null),"close-on-content-click":!1,location:"bottom end"},{activator:e.withCtx(({props:s})=>[e.createVNode(m.VBtn,e.mergeProps({id:"header-options","prepend-icon":e.unref(r).header.icons.options,text:B.$t("$datatables.more"),variant:"text",density:"comfortable",color:"dark",stacked:"",class:"text-capitalize"},s),null,16,["prepend-icon","text"])]),default:e.withCtx(()=>[e.createVNode(m.VList,{"bg-color":"surface-light",class:"options-list d-flex flex-column ga-1 pa-1",density:"compact",rounded:"lg",variant:"text",slim:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(x),(s,C)=>(e.openBlock(),e.createBlock(m.VListItem,e.mergeProps({ref_for:!0},s,{key:C,rounded:"lg",link:""}),null,16))),128))]),_:1})]),_:1},8,["modelValue"]),a.responsiveHeader?(e.openBlock(),e.createBlock(_,{key:0,ref_key:"columnsRef",ref:o},null,512)):e.createCommentVNode("",!0),a.responsiveHeader?(e.openBlock(),e.createBlock(w,{key:1,modelValue:e.unref(f),"onUpdate:modelValue":d[1]||(d[1]=s=>e.isRef(f)?f.value=s:null)},null,8,["modelValue"])):e.createCommentVNode("",!0)],64)}}});exports.default=h;
@@ -1,108 +0,0 @@
1
- import { j as E, _ as T } from "./index-Dlb5c56z.js";
2
- import { u as $, _ as j } from "./useColumns-Csi8mDCk.js";
3
- import { inject as u, computed as B, defineComponent as L, ref as M, openBlock as i, createElementBlock as V, Fragment as x, createVNode as b, isRef as H, unref as m, withCtx as g, renderList as N, createBlock as k, mergeProps as w, createCommentVNode as I } from "vue";
4
- import { useI18n as O } from "vue-i18n";
5
- import { g as A, r as S } from "./printjs-kC3Qmb-l.js";
6
- import { e as y, g as U, u as q } from "./useDownload-B9YtKO_M.js";
7
- import { u as z } from "./useRefreshTable-DkrhQ57E.js";
8
- import { at as K, au as G, av as J, aL as Q } from "./dataTables-Du4VyMxR.js";
9
- var W = S();
10
- const X = /* @__PURE__ */ A(W);
11
- function Y() {
12
- const s = u("table_props"), p = u("tableRef"), n = u("downloadModal"), e = B(() => s.headers.filter((l) => l?.printable !== !1));
13
- return { printTable: async () => {
14
- n.value = !0;
15
- const l = await p.value.getItemsForPrint(), c = [];
16
- l.forEach((t) => {
17
- const r = {};
18
- e.value.forEach((o) => {
19
- o.value ? r[y(o.key)] = o.value(t) : r[y(o.key)] = U(t, o.key) ?? "";
20
- }), c.push(r);
21
- }), X({
22
- printable: c,
23
- type: "json",
24
- properties: e.value.map((t) => ({
25
- field: y(t.key),
26
- displayName: t.title
27
- }))
28
- }), n.value = !1;
29
- } };
30
- }
31
- const re = /* @__PURE__ */ L({
32
- __name: "Options",
33
- props: {
34
- responsiveHeader: { type: Boolean }
35
- },
36
- setup(s) {
37
- const p = u("table_props"), n = u("datatablesPluginOptions"), e = s, { t: _ } = O(), { printTable: l } = Y(), { downloadItems: c } = q(), { refreshTableItems: t } = z(), { columnsItems: r, columnsRef: o } = $(), { advancedFiltersItems: C, advancedFiltersDialog: f } = E(), v = M(!1), D = B(() => [
38
- {
39
- title: _("$datatables.print"),
40
- onClick: l,
41
- prependIcon: n.header.icons.print,
42
- ...p.options.header?.export?.buttons
43
- },
44
- ...e.responsiveHeader ? c.value : [],
45
- ...e.responsiveHeader ? t.value : [],
46
- ...e.responsiveHeader ? r.value : [],
47
- ...e.responsiveHeader ? C.value : [],
48
- ...p.options?.globalButtons ?? []
49
- ]);
50
- return (F, d) => {
51
- const P = j, R = T;
52
- return i(), V(x, null, [
53
- b(K, {
54
- modelValue: m(v),
55
- "onUpdate:modelValue": d[0] || (d[0] = (a) => H(v) ? v.value = a : null),
56
- "close-on-content-click": !1,
57
- location: "bottom end"
58
- }, {
59
- activator: g(({ props: a }) => [
60
- b(Q, w({
61
- id: "header-options",
62
- "prepend-icon": m(n).header.icons.options,
63
- text: F.$t("$datatables.more"),
64
- variant: "text",
65
- density: "comfortable",
66
- color: "dark",
67
- stacked: "",
68
- class: "text-capitalize"
69
- }, a), null, 16, ["prepend-icon", "text"])
70
- ]),
71
- default: g(() => [
72
- b(G, {
73
- "bg-color": "surface-light",
74
- class: "options-list d-flex flex-column ga-1 pa-1",
75
- density: "compact",
76
- rounded: "lg",
77
- variant: "text",
78
- slim: ""
79
- }, {
80
- default: g(() => [
81
- (i(!0), V(x, null, N(m(D), (a, h) => (i(), k(J, w({ ref_for: !0 }, a, {
82
- key: h,
83
- rounded: "lg",
84
- link: ""
85
- }), null, 16))), 128))
86
- ]),
87
- _: 1
88
- })
89
- ]),
90
- _: 1
91
- }, 8, ["modelValue"]),
92
- s.responsiveHeader ? (i(), k(P, {
93
- key: 0,
94
- ref_key: "columnsRef",
95
- ref: o
96
- }, null, 512)) : I("", !0),
97
- s.responsiveHeader ? (i(), k(R, {
98
- key: 1,
99
- modelValue: m(f),
100
- "onUpdate:modelValue": d[1] || (d[1] = (a) => H(f) ? f.value = a : null)
101
- }, null, 8, ["modelValue"])) : I("", !0)
102
- ], 64);
103
- };
104
- }
105
- });
106
- export {
107
- re as default
108
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-BeStYA4v.cjs"),m=require("@vueuse/core"),i=require("./dataTables-BxXcbziu.cjs"),h={__name:"Search",setup(V){const d=e.inject("table_props"),s=e.inject("datatablesPluginOptions"),p=n.useDatatablesStore(),{searchState:c}=n.useTableState(),{setData:f}=p,a=e.ref(null),r=e.ref(!1),u=e.useTemplateRef("searchField"),b=e.computed(()=>c.value);return m.watchDebounced(a,t=>{f({table_id:d.id,name:"search",value:{query:t}})},{debounce:1e3,maxWait:5e3}),e.watch(r,t=>{t&&setTimeout(()=>{u.value?.focus()},250)}),e.onMounted(()=>{a.value=c.value}),(t,o)=>(e.openBlock(),e.createBlock(i.VMenu,{modelValue:e.unref(r),"onUpdate:modelValue":o[1]||(o[1]=l=>e.isRef(r)?r.value=l:null),"close-on-content-click":!1,location:"bottom center"},{activator:e.withCtx(({props:l})=>[e.createVNode(i.VBtn,e.mergeProps({"prepend-icon":e.unref(s).header.icons.search,text:t.$t("$datatables.search"),variant:"text",density:"comfortable",color:e.unref(b)?"primary":"dark",stacked:"",class:"text-capitalize"},l),null,16,["prepend-icon","text","color"])]),default:e.withCtx(()=>[e.createVNode(n.VCard,{"min-width":"300"},{default:e.withCtx(()=>[e.createVNode(n.VCardText,null,{default:e.withCtx(()=>[e.createVNode(n.VTextField,{ref_key:"searchField",ref:u,modelValue:e.unref(a),"onUpdate:modelValue":o[0]||(o[0]=l=>e.isRef(a)?a.value=l:null),density:"comfortable",label:t.$t("$datatables.search"),variant:"outlined",clearable:"","hide-details":"","prepend-inner-icon":e.unref(s).header.icons.search},null,8,["modelValue","label","prepend-inner-icon"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}};exports.default=h;
@@ -1 +0,0 @@
1
- "use strict";const i=require("vue-i18n"),u=require("./index-BeStYA4v.cjs"),e=require("vue");function l(){const t=e.inject("datatablesPluginOptions"),s=e.inject("table_props"),n=e.inject("busEmits"),{t:a}=i.useI18n(),{deleteDataStorage:r}=u.useDatastate(s),c=e.computed(()=>[{title:`${a("$datatables.refresh")}`,onClick:o,prependIcon:t.header.icons.refresh}]),o=()=>{r(),n("refetchData")};return{refreshTableItems:c}}exports.useRefreshTable=l;
@@ -1,18 +0,0 @@
1
- import { useI18n as i } from "vue-i18n";
2
- import { k as p } from "./index-Dlb5c56z.js";
3
- import { inject as t, computed as l } from "vue";
4
- function f() {
5
- const e = t("datatablesPluginOptions"), s = t("table_props"), a = t("busEmits"), { t: o } = i(), { deleteDataStorage: r } = p(s), n = l(() => [
6
- {
7
- title: `${o("$datatables.refresh")}`,
8
- onClick: c,
9
- prependIcon: e.header.icons.refresh
10
- }
11
- ]), c = () => {
12
- r(), a("refetchData");
13
- };
14
- return { refreshTableItems: n };
15
- }
16
- export {
17
- f as u
18
- };