@tanstack/svelte-table 8.0.0-alpha.69 → 8.0.0-alpha.70
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/build/cjs/table-core/build/esm/index.js +4 -4
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +36 -36
- package/build/umd/index.development.js +4 -4
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"fca1-163"},{"name":"svelte-table/src","children":[{"uid":"fca1-165","name":"placeholder.svelte"},{"uid":"fca1-167","name":"render-component.ts"},{"uid":"fca1-169","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"fca1-163":{"renderedLength":142313,"gzipLength":24348,"brotliLength":0,"mainUid":"fca1-162"},"fca1-165":{"renderedLength":925,"gzipLength":444,"brotliLength":0,"mainUid":"fca1-164"},"fca1-167":{"renderedLength":1365,"gzipLength":519,"brotliLength":0,"mainUid":"fca1-166"},"fca1-169":{"renderedLength":1958,"gzipLength":709,"brotliLength":0,"mainUid":"fca1-168"}},"nodeMetas":{"fca1-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"fca1-163"},"imported":[],"importedBy":[{"uid":"fca1-168"}]},"fca1-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"fca1-165"},"imported":[{"uid":"fca1-171"}],"importedBy":[{"uid":"fca1-168"}]},"fca1-166":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"fca1-167"},"imported":[{"uid":"fca1-171"}],"importedBy":[{"uid":"fca1-168"}]},"fca1-168":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"fca1-169"},"imported":[{"uid":"fca1-162"},{"uid":"fca1-164"},{"uid":"fca1-170"},{"uid":"fca1-166"}],"importedBy":[],"isEntry":true},"fca1-170":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"fca1-168"}],"isExternal":true},"fca1-171":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"fca1-164"},{"uid":"fca1-166"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "fca1-173"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "svelte-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "fca1-175",
|
|
21
21
|
"name": "placeholder.svelte"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "fca1-177",
|
|
25
25
|
"name": "render-component.ts"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"uid": "
|
|
28
|
+
"uid": "fca1-179",
|
|
29
29
|
"name": "index.ts"
|
|
30
30
|
}
|
|
31
31
|
]
|
|
@@ -38,119 +38,119 @@
|
|
|
38
38
|
"isRoot": true
|
|
39
39
|
},
|
|
40
40
|
"nodeParts": {
|
|
41
|
-
"
|
|
42
|
-
"renderedLength":
|
|
43
|
-
"gzipLength":
|
|
41
|
+
"fca1-173": {
|
|
42
|
+
"renderedLength": 142313,
|
|
43
|
+
"gzipLength": 24348,
|
|
44
44
|
"brotliLength": 0,
|
|
45
|
-
"mainUid": "
|
|
45
|
+
"mainUid": "fca1-172"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
47
|
+
"fca1-175": {
|
|
48
48
|
"renderedLength": 925,
|
|
49
49
|
"gzipLength": 444,
|
|
50
50
|
"brotliLength": 0,
|
|
51
|
-
"mainUid": "
|
|
51
|
+
"mainUid": "fca1-174"
|
|
52
52
|
},
|
|
53
|
-
"
|
|
53
|
+
"fca1-177": {
|
|
54
54
|
"renderedLength": 1365,
|
|
55
55
|
"gzipLength": 519,
|
|
56
56
|
"brotliLength": 0,
|
|
57
|
-
"mainUid": "
|
|
57
|
+
"mainUid": "fca1-176"
|
|
58
58
|
},
|
|
59
|
-
"
|
|
59
|
+
"fca1-179": {
|
|
60
60
|
"renderedLength": 1958,
|
|
61
61
|
"gzipLength": 709,
|
|
62
62
|
"brotliLength": 0,
|
|
63
|
-
"mainUid": "
|
|
63
|
+
"mainUid": "fca1-178"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"nodeMetas": {
|
|
67
|
-
"
|
|
67
|
+
"fca1-172": {
|
|
68
68
|
"id": "/packages/table-core/build/esm/index.js",
|
|
69
69
|
"moduleParts": {
|
|
70
|
-
"index.production.js": "
|
|
70
|
+
"index.production.js": "fca1-173"
|
|
71
71
|
},
|
|
72
72
|
"imported": [],
|
|
73
73
|
"importedBy": [
|
|
74
74
|
{
|
|
75
|
-
"uid": "
|
|
75
|
+
"uid": "fca1-178"
|
|
76
76
|
}
|
|
77
77
|
]
|
|
78
78
|
},
|
|
79
|
-
"
|
|
79
|
+
"fca1-174": {
|
|
80
80
|
"id": "/packages/svelte-table/src/placeholder.svelte",
|
|
81
81
|
"moduleParts": {
|
|
82
|
-
"index.production.js": "
|
|
82
|
+
"index.production.js": "fca1-175"
|
|
83
83
|
},
|
|
84
84
|
"imported": [
|
|
85
85
|
{
|
|
86
|
-
"uid": "
|
|
86
|
+
"uid": "fca1-181"
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"importedBy": [
|
|
90
90
|
{
|
|
91
|
-
"uid": "
|
|
91
|
+
"uid": "fca1-178"
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"
|
|
95
|
+
"fca1-176": {
|
|
96
96
|
"id": "/packages/svelte-table/src/render-component.ts",
|
|
97
97
|
"moduleParts": {
|
|
98
|
-
"index.production.js": "
|
|
98
|
+
"index.production.js": "fca1-177"
|
|
99
99
|
},
|
|
100
100
|
"imported": [
|
|
101
101
|
{
|
|
102
|
-
"uid": "
|
|
102
|
+
"uid": "fca1-181"
|
|
103
103
|
}
|
|
104
104
|
],
|
|
105
105
|
"importedBy": [
|
|
106
106
|
{
|
|
107
|
-
"uid": "
|
|
107
|
+
"uid": "fca1-178"
|
|
108
108
|
}
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
|
-
"
|
|
111
|
+
"fca1-178": {
|
|
112
112
|
"id": "/packages/svelte-table/src/index.ts",
|
|
113
113
|
"moduleParts": {
|
|
114
|
-
"index.production.js": "
|
|
114
|
+
"index.production.js": "fca1-179"
|
|
115
115
|
},
|
|
116
116
|
"imported": [
|
|
117
117
|
{
|
|
118
|
-
"uid": "
|
|
118
|
+
"uid": "fca1-172"
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
"uid": "
|
|
121
|
+
"uid": "fca1-174"
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
"uid": "
|
|
124
|
+
"uid": "fca1-180"
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
"uid": "
|
|
127
|
+
"uid": "fca1-176"
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
130
|
"importedBy": [],
|
|
131
131
|
"isEntry": true
|
|
132
132
|
},
|
|
133
|
-
"
|
|
133
|
+
"fca1-180": {
|
|
134
134
|
"id": "svelte/store",
|
|
135
135
|
"moduleParts": {},
|
|
136
136
|
"imported": [],
|
|
137
137
|
"importedBy": [
|
|
138
138
|
{
|
|
139
|
-
"uid": "
|
|
139
|
+
"uid": "fca1-178"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"isExternal": true
|
|
143
143
|
},
|
|
144
|
-
"
|
|
144
|
+
"fca1-181": {
|
|
145
145
|
"id": "svelte/internal",
|
|
146
146
|
"moduleParts": {},
|
|
147
147
|
"imported": [],
|
|
148
148
|
"importedBy": [
|
|
149
149
|
{
|
|
150
|
-
"uid": "
|
|
150
|
+
"uid": "fca1-174"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
"uid": "
|
|
153
|
+
"uid": "fca1-176"
|
|
154
154
|
}
|
|
155
155
|
],
|
|
156
156
|
"isExternal": true
|
|
@@ -1481,12 +1481,10 @@
|
|
|
1481
1481
|
};
|
|
1482
1482
|
|
|
1483
1483
|
//
|
|
1484
|
-
const defaultPageCount = -1;
|
|
1485
1484
|
const defaultPageIndex = 0;
|
|
1486
1485
|
const defaultPageSize = 10;
|
|
1487
1486
|
|
|
1488
1487
|
const getDefaultPaginationState = () => ({
|
|
1489
|
-
pageCount: defaultPageCount,
|
|
1490
1488
|
pageIndex: defaultPageIndex,
|
|
1491
1489
|
pageSize: defaultPageSize
|
|
1492
1490
|
});
|
|
@@ -1567,7 +1565,9 @@
|
|
|
1567
1565
|
});
|
|
1568
1566
|
},
|
|
1569
1567
|
setPageCount: updater => instance.setPagination(old => {
|
|
1570
|
-
|
|
1568
|
+
var _old$pageCount;
|
|
1569
|
+
|
|
1570
|
+
let newPageCount = functionalUpdate(updater, (_old$pageCount = old.pageCount) != null ? _old$pageCount : -1);
|
|
1571
1571
|
|
|
1572
1572
|
if (typeof newPageCount === 'number') {
|
|
1573
1573
|
newPageCount = Math.max(-1, newPageCount);
|
|
@@ -1635,7 +1635,7 @@
|
|
|
1635
1635
|
pageCount
|
|
1636
1636
|
} = instance.getState().pagination;
|
|
1637
1637
|
|
|
1638
|
-
if (pageCount
|
|
1638
|
+
if (typeof pageCount !== 'undefined') {
|
|
1639
1639
|
return pageCount;
|
|
1640
1640
|
}
|
|
1641
1641
|
|