@tanstack/svelte-table 8.1.2 → 8.2.1
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/svelte-table/src/placeholder.svelte.js +1 -1
- package/build/cjs/table-core/build/esm/index.js +6 -8
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -9
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +48 -48
- package/build/umd/index.development.js +7 -9
- 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":"5ea7-159"},{"name":"svelte-table/src","children":[{"uid":"5ea7-161","name":"placeholder.svelte"},{"uid":"5ea7-163","name":"placeholder.ts"},{"uid":"5ea7-165","name":"render-component.ts"},{"uid":"5ea7-167","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"5ea7-159":{"renderedLength":134397,"gzipLength":23086,"brotliLength":0,"mainUid":"5ea7-158"},"5ea7-161":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"5ea7-160"},"5ea7-163":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"5ea7-162"},"5ea7-165":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"5ea7-164"},"5ea7-167":{"renderedLength":2915,"gzipLength":958,"brotliLength":0,"mainUid":"5ea7-166"}},"nodeMetas":{"5ea7-158":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"5ea7-159"},"imported":[],"importedBy":[{"uid":"5ea7-166"}]},"5ea7-160":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"5ea7-161"},"imported":[{"uid":"5ea7-168"}],"importedBy":[{"uid":"5ea7-162"}]},"5ea7-162":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"5ea7-163"},"imported":[{"uid":"5ea7-168"},{"uid":"5ea7-160"}],"importedBy":[{"uid":"5ea7-166"}]},"5ea7-164":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"5ea7-165"},"imported":[{"uid":"5ea7-168"}],"importedBy":[{"uid":"5ea7-166"}]},"5ea7-166":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"5ea7-167"},"imported":[{"uid":"5ea7-158"},{"uid":"5ea7-162"},{"uid":"5ea7-168"},{"uid":"5ea7-169"},{"uid":"5ea7-164"}],"importedBy":[],"isEntry":true},"5ea7-168":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"5ea7-166"},{"uid":"5ea7-162"},{"uid":"5ea7-164"},{"uid":"5ea7-160"}],"isExternal":true},"5ea7-169":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"5ea7-166"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"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,25 +11,25 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "5ea7-171"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "svelte-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "5ea7-173",
|
|
21
21
|
"name": "placeholder.svelte"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "5ea7-175",
|
|
25
25
|
"name": "placeholder.ts"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
"uid": "
|
|
28
|
+
"uid": "5ea7-177",
|
|
29
29
|
"name": "render-component.ts"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
|
-
"uid": "
|
|
32
|
+
"uid": "5ea7-179",
|
|
33
33
|
"name": "index.ts"
|
|
34
34
|
}
|
|
35
35
|
]
|
|
@@ -42,160 +42,160 @@
|
|
|
42
42
|
"isRoot": true
|
|
43
43
|
},
|
|
44
44
|
"nodeParts": {
|
|
45
|
-
"
|
|
46
|
-
"renderedLength":
|
|
47
|
-
"gzipLength":
|
|
45
|
+
"5ea7-171": {
|
|
46
|
+
"renderedLength": 134397,
|
|
47
|
+
"gzipLength": 23086,
|
|
48
48
|
"brotliLength": 0,
|
|
49
|
-
"mainUid": "
|
|
49
|
+
"mainUid": "5ea7-170"
|
|
50
50
|
},
|
|
51
|
-
"
|
|
51
|
+
"5ea7-173": {
|
|
52
52
|
"renderedLength": 927,
|
|
53
53
|
"gzipLength": 445,
|
|
54
54
|
"brotliLength": 0,
|
|
55
|
-
"mainUid": "
|
|
55
|
+
"mainUid": "5ea7-172"
|
|
56
56
|
},
|
|
57
|
-
"
|
|
57
|
+
"5ea7-175": {
|
|
58
58
|
"renderedLength": 246,
|
|
59
59
|
"gzipLength": 184,
|
|
60
60
|
"brotliLength": 0,
|
|
61
|
-
"mainUid": "
|
|
61
|
+
"mainUid": "5ea7-174"
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"5ea7-177": {
|
|
64
64
|
"renderedLength": 1458,
|
|
65
65
|
"gzipLength": 539,
|
|
66
66
|
"brotliLength": 0,
|
|
67
|
-
"mainUid": "
|
|
67
|
+
"mainUid": "5ea7-176"
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"5ea7-179": {
|
|
70
70
|
"renderedLength": 2915,
|
|
71
71
|
"gzipLength": 958,
|
|
72
72
|
"brotliLength": 0,
|
|
73
|
-
"mainUid": "
|
|
73
|
+
"mainUid": "5ea7-178"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"nodeMetas": {
|
|
77
|
-
"
|
|
77
|
+
"5ea7-170": {
|
|
78
78
|
"id": "/packages/table-core/build/esm/index.js",
|
|
79
79
|
"moduleParts": {
|
|
80
|
-
"index.production.js": "
|
|
80
|
+
"index.production.js": "5ea7-171"
|
|
81
81
|
},
|
|
82
82
|
"imported": [],
|
|
83
83
|
"importedBy": [
|
|
84
84
|
{
|
|
85
|
-
"uid": "
|
|
85
|
+
"uid": "5ea7-178"
|
|
86
86
|
}
|
|
87
87
|
]
|
|
88
88
|
},
|
|
89
|
-
"
|
|
89
|
+
"5ea7-172": {
|
|
90
90
|
"id": "/packages/svelte-table/src/placeholder.svelte",
|
|
91
91
|
"moduleParts": {
|
|
92
|
-
"index.production.js": "
|
|
92
|
+
"index.production.js": "5ea7-173"
|
|
93
93
|
},
|
|
94
94
|
"imported": [
|
|
95
95
|
{
|
|
96
|
-
"uid": "
|
|
96
|
+
"uid": "5ea7-180"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"importedBy": [
|
|
100
100
|
{
|
|
101
|
-
"uid": "
|
|
101
|
+
"uid": "5ea7-174"
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
},
|
|
105
|
-
"
|
|
105
|
+
"5ea7-174": {
|
|
106
106
|
"id": "/packages/svelte-table/src/placeholder.ts",
|
|
107
107
|
"moduleParts": {
|
|
108
|
-
"index.production.js": "
|
|
108
|
+
"index.production.js": "5ea7-175"
|
|
109
109
|
},
|
|
110
110
|
"imported": [
|
|
111
111
|
{
|
|
112
|
-
"uid": "
|
|
112
|
+
"uid": "5ea7-180"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"uid": "
|
|
115
|
+
"uid": "5ea7-172"
|
|
116
116
|
}
|
|
117
117
|
],
|
|
118
118
|
"importedBy": [
|
|
119
119
|
{
|
|
120
|
-
"uid": "
|
|
120
|
+
"uid": "5ea7-178"
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
|
-
"
|
|
124
|
+
"5ea7-176": {
|
|
125
125
|
"id": "/packages/svelte-table/src/render-component.ts",
|
|
126
126
|
"moduleParts": {
|
|
127
|
-
"index.production.js": "
|
|
127
|
+
"index.production.js": "5ea7-177"
|
|
128
128
|
},
|
|
129
129
|
"imported": [
|
|
130
130
|
{
|
|
131
|
-
"uid": "
|
|
131
|
+
"uid": "5ea7-180"
|
|
132
132
|
}
|
|
133
133
|
],
|
|
134
134
|
"importedBy": [
|
|
135
135
|
{
|
|
136
|
-
"uid": "
|
|
136
|
+
"uid": "5ea7-178"
|
|
137
137
|
}
|
|
138
138
|
]
|
|
139
139
|
},
|
|
140
|
-
"
|
|
140
|
+
"5ea7-178": {
|
|
141
141
|
"id": "/packages/svelte-table/src/index.ts",
|
|
142
142
|
"moduleParts": {
|
|
143
|
-
"index.production.js": "
|
|
143
|
+
"index.production.js": "5ea7-179"
|
|
144
144
|
},
|
|
145
145
|
"imported": [
|
|
146
146
|
{
|
|
147
|
-
"uid": "
|
|
147
|
+
"uid": "5ea7-170"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
|
-
"uid": "
|
|
150
|
+
"uid": "5ea7-174"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
|
-
"uid": "
|
|
153
|
+
"uid": "5ea7-180"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"uid": "
|
|
156
|
+
"uid": "5ea7-181"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
"uid": "
|
|
159
|
+
"uid": "5ea7-176"
|
|
160
160
|
}
|
|
161
161
|
],
|
|
162
162
|
"importedBy": [],
|
|
163
163
|
"isEntry": true
|
|
164
164
|
},
|
|
165
|
-
"
|
|
165
|
+
"5ea7-180": {
|
|
166
166
|
"id": "svelte/internal",
|
|
167
167
|
"moduleParts": {},
|
|
168
168
|
"imported": [],
|
|
169
169
|
"importedBy": [
|
|
170
170
|
{
|
|
171
|
-
"uid": "
|
|
171
|
+
"uid": "5ea7-178"
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
"uid": "
|
|
174
|
+
"uid": "5ea7-174"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
"uid": "
|
|
177
|
+
"uid": "5ea7-176"
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
|
-
"uid": "
|
|
180
|
+
"uid": "5ea7-172"
|
|
181
181
|
}
|
|
182
182
|
],
|
|
183
183
|
"isExternal": true
|
|
184
184
|
},
|
|
185
|
-
"
|
|
185
|
+
"5ea7-181": {
|
|
186
186
|
"id": "svelte/store",
|
|
187
187
|
"moduleParts": {},
|
|
188
188
|
"imported": [],
|
|
189
189
|
"importedBy": [
|
|
190
190
|
{
|
|
191
|
-
"uid": "
|
|
191
|
+
"uid": "5ea7-178"
|
|
192
192
|
}
|
|
193
193
|
],
|
|
194
194
|
"isExternal": true
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
"env": {
|
|
198
|
-
"rollup": "2.
|
|
198
|
+
"rollup": "2.76.0"
|
|
199
199
|
},
|
|
200
200
|
"options": {
|
|
201
201
|
"gzip": true,
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
}
|
|
30
30
|
function noop() {//
|
|
31
31
|
}
|
|
32
|
-
function makeStateUpdater(key,
|
|
32
|
+
function makeStateUpdater(key, instance) {
|
|
33
33
|
return updater => {
|
|
34
|
-
|
|
34
|
+
instance.setState(old => {
|
|
35
35
|
return { ...old,
|
|
36
36
|
[key]: functionalUpdate(updater, old[key])
|
|
37
37
|
};
|
|
@@ -2891,9 +2891,9 @@
|
|
|
2891
2891
|
header: props => props.header.column.id,
|
|
2892
2892
|
footer: props => props.header.column.id,
|
|
2893
2893
|
cell: props => {
|
|
2894
|
-
var
|
|
2894
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2895
2895
|
|
|
2896
|
-
return (
|
|
2896
|
+
return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null ? void 0 : _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
|
|
2897
2897
|
},
|
|
2898
2898
|
...table._features.reduce((obj, feature) => {
|
|
2899
2899
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3423,9 +3423,7 @@
|
|
|
3423
3423
|
let facetedMinMaxValues = [firstValue, firstValue];
|
|
3424
3424
|
|
|
3425
3425
|
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
|
|
3426
|
+
const value = facetedRowModel.flatRows[i].getValue(columnId);
|
|
3429
3427
|
|
|
3430
3428
|
if (value < facetedMinMaxValues[0]) {
|
|
3431
3429
|
facetedMinMaxValues[0] = value;
|
|
@@ -3575,7 +3573,7 @@
|
|
|
3575
3573
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3576
3574
|
|
|
3577
3575
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3578
|
-
const row = createRow(table, id,
|
|
3576
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3579
3577
|
Object.assign(row, {
|
|
3580
3578
|
groupingColumnId: columnId,
|
|
3581
3579
|
groupingValue,
|
|
@@ -3769,7 +3767,7 @@
|
|
|
3769
3767
|
});
|
|
3770
3768
|
}
|
|
3771
3769
|
|
|
3772
|
-
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.
|
|
3770
|
+
/* packages/svelte-table/src/placeholder.svelte generated by Svelte v3.49.0 */
|
|
3773
3771
|
|
|
3774
3772
|
function create_fragment$1(ctx) {
|
|
3775
3773
|
let t;
|