@progress/kendo-react-sortable
Version:
React Sortable provides a sortable drag-and-drop functionality to elements within a list. KendoReact Sortable package
9 lines (8 loc) • 1.32 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@progress/kendo-react-common"),a=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n]))return t[n]},l=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n]))return n;return-1},o=t=>String(t).trim().split(" "),c=(t,e)=>{const n=o(e);return!!o(t.className).find(s=>n.indexOf(s)>=0)},u=/^(?:a|input|select|option|textarea|button|object)$/i,f=t=>{if(t.tagName){const e=t.tagName.toLowerCase(),n=t.getAttribute("tabIndex"),s=n==="-1";let i=n!==null&&!s;return u.test(e)&&(i=!t.disabled&&!s),i}return!1},C=(t,e)=>{for(;t&&!e(t);)t=t.parentNode;return t},b=r.hasRelativeStackingContext(),d=t=>{if(!t||!b)return null;let e=t.parentElement;for(;e;){if(window.getComputedStyle(e).transform!=="none")return e;e=e.parentElement}};exports.closest=C;exports.find=a;exports.findIndex=l;exports.hasClasses=c;exports.isFocusable=f;exports.relativeContextElement=d;exports.toClassList=o;