simple-table-core 2.2.9 → 2.3.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.
- package/dist/{Animate-d815792f.js → Animate-ad25ec9b.js} +2 -2
- package/dist/Animate-ad25ec9b.js.map +1 -0
- package/dist/{DatePicker-8853a05d.js → DatePicker-947629c5.js} +2 -2
- package/dist/DatePicker-947629c5.js.map +1 -0
- package/dist/cjs/Animate-4525220f.js +2 -0
- package/dist/cjs/Animate-4525220f.js.map +1 -0
- package/dist/cjs/{DatePicker-5fd13188.js → DatePicker-93e0f4c4.js} +2 -2
- package/dist/cjs/DatePicker-93e0f4c4.js.map +1 -0
- package/dist/cjs/{index-a82ee694.js → index-b28f705c.js} +2 -2
- package/dist/cjs/index-b28f705c.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/{index-2a41da3c.js → index-33c4178f.js} +2 -2
- package/dist/index-33c4178f.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/Animate-d815792f.js.map +0 -1
- package/dist/DatePicker-8853a05d.js.map +0 -1
- package/dist/cjs/Animate-63aa2143.js +0 -2
- package/dist/cjs/Animate-63aa2143.js.map +0 -1
- package/dist/cjs/DatePicker-5fd13188.js.map +0 -1
- package/dist/cjs/index-a82ee694.js.map +0 -1
- package/dist/index-2a41da3c.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-33c4178f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{g as AngleDownIcon,h as AngleLeftIcon,i as AngleRightIcon,j as AngleUpIcon,k as AscIcon,B as BarChart,C as CheckIcon,e as DEFAULT_CUSTOM_THEME,D as DefaultEmptyState,l as DescIcon,F as FilterIcon,L as LineAreaChart,m as SelectIcon,S as SimpleTable,r as rowIdToString}from"./index-
|
|
1
|
+
export{g as AngleDownIcon,h as AngleLeftIcon,i as AngleRightIcon,j as AngleUpIcon,k as AscIcon,B as BarChart,C as CheckIcon,e as DEFAULT_CUSTOM_THEME,D as DefaultEmptyState,l as DescIcon,F as FilterIcon,L as LineAreaChart,m as SelectIcon,S as SimpleTable,r as rowIdToString}from"./index-33c4178f.js";import"react/jsx-runtime";import"react";
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-d815792f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-8853a05d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./index-a82ee694.js"),n=require("react/jsx-runtime"),i=require("react"),t=function(t){var o=t.children,r=t.id,a=t.parentRef,l=t.tableRow,d=e.__rest(t,["children","id","parentRef","tableRow"]),u=e.useTableContext(),v=u.allowAnimations,f=u.isResizing,s=u.isScrolling,m=u.rowHeight,h=i.useRef(null),p=i.useRef(null),M=e.usePrevious(s),c=e.usePrevious(f),Y=i.useMemo(function(){return e.calculateBufferRowCount(m)},[m]);return i.useLayoutEffect(function(){var n,i,t,o;if(v&&h.current&&!f){var r=h.current.getBoundingClientRect(),d=p.current;if(!s)if(!M||s)if(!c||f){if(p.current=r,d){var u=r.x-d.x,C=r.y-d.y;if((Math.abs(u)>=50||Math.abs(C)>5)&&(Math.abs(u)>5||Math.abs(C)>5)){var g=e.__assign(e.__assign({},e.ANIMATION_CONFIGS.ROW_REORDER),{onComplete:function(){h.current&&(h.current.style.zIndex="",h.current.style.position="",h.current.style.top="")}}),x=null===(n=null==a?void 0:a.current)||void 0===n?void 0:n.scrollTop,q=null===(i=null==a?void 0:a.current)||void 0===i?void 0:i.clientHeight,j=null===(t=null==a?void 0:a.current)||void 0===t?void 0:t.scrollHeight;if(void 0!==x&&void 0!==q&&void 0!==j){var B=Y*(m+e.ROW_SEPARATOR_WIDTH),R=x-B,b=x+q+B,w=d.y>R&&b>d.y,A=r.y>R&&b>r.y,k=x>r.y,y=null!==(o=null==l?void 0:l.position)&&void 0!==o?o:0,z=.6*m,D=function(e,n,i){return Math.min(900,Math.max(100,100+80*Math.log10(Math.max(1,Math.min(Math.abs(e-n),Math.abs(e-i))))))};if(w&&!A&&r.y>x+q){var E=D(r.y,x,x+q);return void e.animateWithCustomCoordinates({element:h.current,options:{startY:d.y,endY:x+q+E+y%15*z*2.5+y%7*.4*m,finalY:r.y,duration:g.duration,easing:g.easing,onComplete:g.onComplete}})}if(w&&!A&&k)return E=D(r.y,x,x+q),void e.animateWithCustomCoordinates({element:h.current,options:{startY:d.y,endY:x-E-y%15*z*2.5-y%7*.4*m,finalY:r.y,duration:g.duration,easing:g.easing,onComplete:g.onComplete}});if(!w&&A&&d.y>x+q)return E=D(d.y,x,x+q),void e.animateWithCustomCoordinates({element:h.current,options:{startY:x+q+E+y%10*z*1,endY:r.y,duration:g.duration,easing:g.easing,onComplete:g.onComplete}});if(!w&&A&&x>d.y)return E=D(d.y,x,x+q),void e.animateWithCustomCoordinates({element:h.current,options:{startY:x-E-y%10*z*1,endY:r.y,duration:g.duration,easing:g.easing,onComplete:g.onComplete}})}e.flipElement({element:h.current,fromBounds:d,toBounds:r,finalConfig:g})}}}else p.current=r;else p.current=r}},[v,Y,f,s,a,M,c,m,null==l?void 0:l.position,l]),n.jsx("div",e.__assign({ref:h,"data-animate-id":r,id:r+""},d,{children:o}))};t.displayName="Animate",exports.Animate=t,exports.default=t;
|
|
2
|
-
//# sourceMappingURL=Animate-63aa2143.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-63aa2143.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-5fd13188.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-a82ee694.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-2a41da3c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|