@revolist/revogrid
Version:
Virtual reactive data grid spreadsheet component - RevoGrid.
4 lines • 1.25 kB
JavaScript
/*!
* Built by Revolist OU ❤️
*/
import"@stencil/core/internal/client";import"./platform.js";function t(t,n=0){const r=[],e=n+t;for(let t=n;t<e;t++)r.push(t);return r}function n(t,n){return function(r){let e=0,o=r.length-1;for(;e<=o;){const c=o+e>>1,i=n(t,r[c]);if(i>0)e=c+1;else{if(!(i<0))return c;o=c-1}}return-e-1}(this)}function r(t,r,e){return t.splice(n.bind(t)(r,e),0,r),t}function e(t,n){return t<n}function o(t,n,r=e){const o=[];let c=0,i=0,s=0;for(;s<t.length+n.length;)c>=t.length||!(i>=n.length)&&!r(t[c],n[i])?(o[s]=n[i],i++):(o[s]=t[c],c++),s++;return o}function c(t){const n=t.createElement("div");n.style.overflow="scroll",n.style.visibility="hidden",n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",t.body.appendChild(n);const r=n.offsetWidth-n.clientWidth;return t.body.removeChild(n),r}function i(t,n,r){return(r[1]-r[0])*(t-n[0])/(n[1]-n[0])+r[0]}async function s(t=0){await new Promise((n=>{setTimeout((()=>n()),t)}))}function u(t,n){n.forEach((n=>{Object.getOwnPropertyNames(n.prototype).forEach((r=>{Object.defineProperty(t.prototype,r,Object.getOwnPropertyDescriptor(n.prototype,r)||Object.create(null))}))}))}export{u as a,n as f,c as g,o as m,r as p,t as r,i as s,s as t}