simple-table-core 2.0.3 → 2.0.4
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-2f3eec8a.js +2 -0
- package/dist/Animate-2f3eec8a.js.map +1 -0
- package/dist/{DatePicker-9153e1ff.js → DatePicker-61bd9c98.js} +2 -2
- package/dist/DatePicker-61bd9c98.js.map +1 -0
- package/dist/cjs/{Animate-52a37b7f.js → Animate-7522edfc.js} +2 -2
- package/dist/cjs/Animate-7522edfc.js.map +1 -0
- package/dist/cjs/{DatePicker-2f13fd9a.js → DatePicker-1c76fb79.js} +2 -2
- package/dist/cjs/DatePicker-1c76fb79.js.map +1 -0
- package/dist/cjs/components/simple-table/SimpleTable.d.ts +2 -0
- package/dist/cjs/consts/general-consts.d.ts +3 -0
- package/dist/cjs/hooks/useContentHeight.d.ts +5 -1
- package/dist/cjs/hooks/useTableDimensions.d.ts +14 -0
- package/dist/cjs/{index-5f2b1a12.js → index-60f19d70.js} +2 -2
- package/dist/cjs/index-60f19d70.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/components/simple-table/SimpleTable.d.ts +2 -0
- package/dist/consts/general-consts.d.ts +3 -0
- package/dist/hooks/useContentHeight.d.ts +5 -1
- package/dist/hooks/useTableDimensions.d.ts +14 -0
- package/dist/{index-0779683b.js → index-ac8dee33.js} +2 -2
- package/dist/index-ac8dee33.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/package.json +13 -3
- package/dist/Animate-640f1ed9.js +0 -2
- package/dist/Animate-640f1ed9.js.map +0 -1
- package/dist/DatePicker-9153e1ff.js.map +0 -1
- package/dist/cjs/Animate-52a37b7f.js.map +0 -1
- package/dist/cjs/DatePicker-2f13fd9a.js.map +0 -1
- package/dist/cjs/index-5f2b1a12.js.map +0 -1
- package/dist/index-0779683b.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ac8dee33.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DefaultEmptyState,k as DescIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-
|
|
1
|
+
export{e as AngleDownIcon,g as AngleLeftIcon,h as AngleRightIcon,i as AngleUpIcon,j as AscIcon,B as BarChart,C as CheckIcon,D as DefaultEmptyState,k as DescIcon,F as FilterIcon,L as LineAreaChart,l as SelectIcon,S as SimpleTable}from"./index-ac8dee33.js";import"react/jsx-runtime";import"react";
|
|
2
2
|
//# sourceMappingURL=index.es.js.map
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.
|
|
2
|
+
"version": "2.0.4",
|
|
3
3
|
"main": "dist/cjs/index.js",
|
|
4
4
|
"module": "dist/index.es.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"publish-fast": "npm i && git add . && git commit -m \"$npm_config_message\" && git push && npm run build && npm publish",
|
|
8
7
|
"build": "rollup -c",
|
|
9
8
|
"start": "storybook dev -p 6006",
|
|
10
9
|
"build-storybook": "storybook build",
|
|
11
10
|
"preview": "rollup -c -w",
|
|
12
|
-
"test-storybook": "test-storybook"
|
|
11
|
+
"test-storybook": "test-storybook",
|
|
12
|
+
"version:patch": "npm version patch && git push && git push --tags",
|
|
13
|
+
"version:minor": "npm version minor && git push && git push --tags",
|
|
14
|
+
"version:major": "npm version major && git push && git push --tags"
|
|
13
15
|
},
|
|
14
16
|
"sideEffects": [
|
|
15
17
|
"*.css",
|
|
@@ -100,6 +102,14 @@
|
|
|
100
102
|
],
|
|
101
103
|
"name": "simple-table-core",
|
|
102
104
|
"description": "Simple Table: A lightweight, free React data grid and table component with TypeScript support, sorting, filtering, and virtualization.",
|
|
105
|
+
"repository": {
|
|
106
|
+
"type": "git",
|
|
107
|
+
"url": "https://github.com/petera2c/simple-table.git"
|
|
108
|
+
},
|
|
109
|
+
"bugs": {
|
|
110
|
+
"url": "https://github.com/petera2c/simple-table/issues"
|
|
111
|
+
},
|
|
112
|
+
"homepage": "https://github.com/petera2c/simple-table#readme",
|
|
103
113
|
"keywords": [
|
|
104
114
|
"simple-table",
|
|
105
115
|
"simple-table-core",
|
package/dist/Animate-640f1ed9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as n,u as i,a as t,c as o,b as e,A as a,d as r,f as l,R as d}from"./index-0779683b.js";import{jsx as u}from"react/jsx-runtime";import{useRef as f,useMemo as s,useLayoutEffect as v}from"react";var m=function(m){var p=m.children,h=m.id,M=m.parentRef,c=m.tableRow,Y=n(m,["children","id","parentRef","tableRow"]),C=i(),g=C.allowAnimations,b=C.isResizing,x=C.isScrolling,R=C.rowHeight,j=f(null),A=f(null),B=t(x),w=t(b),_=s(function(){return o(R)},[R]);return v(function(){var n,i,t,o;if(g&&j.current&&!b){var u=j.current.getBoundingClientRect(),f=A.current;if(!x)if(!B||x)if(!w||b){if(A.current=u,f){var s=u.x-f.x,v=u.y-f.y;if((Math.abs(s)>=50||Math.abs(v)>5)&&(Math.abs(s)>5||Math.abs(v)>5)){var m=e(e({},a.ROW_REORDER),{onComplete:function(){j.current&&(j.current.style.zIndex="",j.current.style.position="",j.current.style.top="")}}),p=null===(n=null==M?void 0:M.current)||void 0===n?void 0:n.scrollTop,h=null===(i=null==M?void 0:M.current)||void 0===i?void 0:i.clientHeight,Y=null===(t=null==M?void 0:M.current)||void 0===t?void 0:t.scrollHeight;if(void 0!==p&&void 0!==h&&void 0!==Y){var C=_*(R+d),k=p-C,q=p+h+C,y=f.y>k&&q>f.y,z=u.y>k&&q>u.y,D=p>u.y,E=null!==(o=null==c?void 0:c.position)&&void 0!==o?o:0,F=.6*R,G=function(n,i,t){return Math.min(900,Math.max(100,100+80*Math.log10(Math.max(1,Math.min(Math.abs(n-i),Math.abs(n-t))))))};if(y&&!z&&u.y>p+h){var H=G(u.y,p,p+h);return void r({element:j.current,options:{startY:f.y,endY:p+h+H+E%15*F*2.5+E%7*.4*R,finalY:u.y,duration:m.duration,easing:m.easing,onComplete:m.onComplete}})}if(y&&!z&&D)return H=G(u.y,p,p+h),void r({element:j.current,options:{startY:f.y,endY:p-H-E%15*F*2.5-E%7*.4*R,finalY:u.y,duration:m.duration,easing:m.easing,onComplete:m.onComplete}});if(!y&&z&&f.y>p+h)return H=G(f.y,p,p+h),void r({element:j.current,options:{startY:p+h+H+E%10*F*1,endY:u.y,duration:m.duration,easing:m.easing,onComplete:m.onComplete}});if(!y&&z&&p>f.y)return H=G(f.y,p,p+h),void r({element:j.current,options:{startY:p-H-E%10*F*1,endY:u.y,duration:m.duration,easing:m.easing,onComplete:m.onComplete}})}l({element:j.current,fromBounds:f,toBounds:u,finalConfig:m})}}}else A.current=u;else A.current=u}},[g,_,b,x,M,B,w,R,null==c?void 0:c.position,c]),u("div",e({ref:j,"data-animate-id":h,id:h+""},Y,{children:p}))};m.displayName="Animate";export{m as Animate,m as default};
|
|
2
|
-
//# sourceMappingURL=Animate-640f1ed9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-640f1ed9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-9153e1ff.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Animate-52a37b7f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker-2f13fd9a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-5f2b1a12.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-0779683b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|