@tanstack/svelte-table 8.2.2 → 8.2.3

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.
@@ -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":"a9b1-159"},{"name":"svelte-table/src","children":[{"uid":"a9b1-161","name":"placeholder.svelte"},{"uid":"a9b1-163","name":"placeholder.ts"},{"uid":"a9b1-165","name":"render-component.ts"},{"uid":"a9b1-167","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"a9b1-159":{"renderedLength":134594,"gzipLength":23188,"brotliLength":0,"mainUid":"a9b1-158"},"a9b1-161":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"a9b1-160"},"a9b1-163":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"a9b1-162"},"a9b1-165":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"a9b1-164"},"a9b1-167":{"renderedLength":2915,"gzipLength":958,"brotliLength":0,"mainUid":"a9b1-166"}},"nodeMetas":{"a9b1-158":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"a9b1-159"},"imported":[],"importedBy":[{"uid":"a9b1-166"}]},"a9b1-160":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"a9b1-161"},"imported":[{"uid":"a9b1-168"}],"importedBy":[{"uid":"a9b1-162"}]},"a9b1-162":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"a9b1-163"},"imported":[{"uid":"a9b1-168"},{"uid":"a9b1-160"}],"importedBy":[{"uid":"a9b1-166"}]},"a9b1-164":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"a9b1-165"},"imported":[{"uid":"a9b1-168"}],"importedBy":[{"uid":"a9b1-166"}]},"a9b1-166":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"a9b1-167"},"imported":[{"uid":"a9b1-158"},{"uid":"a9b1-162"},{"uid":"a9b1-168"},{"uid":"a9b1-169"},{"uid":"a9b1-164"}],"importedBy":[],"isEntry":true},"a9b1-168":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"a9b1-166"},{"uid":"a9b1-162"},{"uid":"a9b1-164"},{"uid":"a9b1-160"}],"isExternal":true},"a9b1-169":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"a9b1-166"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
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":"6aaf-159"},{"name":"svelte-table/src","children":[{"uid":"6aaf-161","name":"placeholder.svelte"},{"uid":"6aaf-163","name":"placeholder.ts"},{"uid":"6aaf-165","name":"render-component.ts"},{"uid":"6aaf-167","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"6aaf-159":{"renderedLength":134724,"gzipLength":23206,"brotliLength":0,"mainUid":"6aaf-158"},"6aaf-161":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"6aaf-160"},"6aaf-163":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"6aaf-162"},"6aaf-165":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"6aaf-164"},"6aaf-167":{"renderedLength":2915,"gzipLength":958,"brotliLength":0,"mainUid":"6aaf-166"}},"nodeMetas":{"6aaf-158":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6aaf-159"},"imported":[],"importedBy":[{"uid":"6aaf-166"}]},"6aaf-160":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"6aaf-161"},"imported":[{"uid":"6aaf-168"}],"importedBy":[{"uid":"6aaf-162"}]},"6aaf-162":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"6aaf-163"},"imported":[{"uid":"6aaf-168"},{"uid":"6aaf-160"}],"importedBy":[{"uid":"6aaf-166"}]},"6aaf-164":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"6aaf-165"},"imported":[{"uid":"6aaf-168"}],"importedBy":[{"uid":"6aaf-166"}]},"6aaf-166":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"6aaf-167"},"imported":[{"uid":"6aaf-158"},{"uid":"6aaf-162"},{"uid":"6aaf-168"},{"uid":"6aaf-169"},{"uid":"6aaf-164"}],"importedBy":[],"isEntry":true},"6aaf-168":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"6aaf-166"},{"uid":"6aaf-162"},{"uid":"6aaf-164"},{"uid":"6aaf-160"}],"isExternal":true},"6aaf-169":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"6aaf-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;
@@ -11,25 +11,25 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "a9b1-171"
14
+ "uid": "6aaf-171"
15
15
  },
16
16
  {
17
17
  "name": "svelte-table/src",
18
18
  "children": [
19
19
  {
20
- "uid": "a9b1-173",
20
+ "uid": "6aaf-173",
21
21
  "name": "placeholder.svelte"
22
22
  },
23
23
  {
24
- "uid": "a9b1-175",
24
+ "uid": "6aaf-175",
25
25
  "name": "placeholder.ts"
26
26
  },
27
27
  {
28
- "uid": "a9b1-177",
28
+ "uid": "6aaf-177",
29
29
  "name": "render-component.ts"
30
30
  },
31
31
  {
32
- "uid": "a9b1-179",
32
+ "uid": "6aaf-179",
33
33
  "name": "index.ts"
34
34
  }
35
35
  ]
@@ -42,153 +42,153 @@
42
42
  "isRoot": true
43
43
  },
44
44
  "nodeParts": {
45
- "a9b1-171": {
46
- "renderedLength": 134594,
47
- "gzipLength": 23188,
45
+ "6aaf-171": {
46
+ "renderedLength": 134724,
47
+ "gzipLength": 23206,
48
48
  "brotliLength": 0,
49
- "mainUid": "a9b1-170"
49
+ "mainUid": "6aaf-170"
50
50
  },
51
- "a9b1-173": {
51
+ "6aaf-173": {
52
52
  "renderedLength": 927,
53
53
  "gzipLength": 445,
54
54
  "brotliLength": 0,
55
- "mainUid": "a9b1-172"
55
+ "mainUid": "6aaf-172"
56
56
  },
57
- "a9b1-175": {
57
+ "6aaf-175": {
58
58
  "renderedLength": 246,
59
59
  "gzipLength": 184,
60
60
  "brotliLength": 0,
61
- "mainUid": "a9b1-174"
61
+ "mainUid": "6aaf-174"
62
62
  },
63
- "a9b1-177": {
63
+ "6aaf-177": {
64
64
  "renderedLength": 1458,
65
65
  "gzipLength": 539,
66
66
  "brotliLength": 0,
67
- "mainUid": "a9b1-176"
67
+ "mainUid": "6aaf-176"
68
68
  },
69
- "a9b1-179": {
69
+ "6aaf-179": {
70
70
  "renderedLength": 2915,
71
71
  "gzipLength": 958,
72
72
  "brotliLength": 0,
73
- "mainUid": "a9b1-178"
73
+ "mainUid": "6aaf-178"
74
74
  }
75
75
  },
76
76
  "nodeMetas": {
77
- "a9b1-170": {
77
+ "6aaf-170": {
78
78
  "id": "/packages/table-core/build/esm/index.js",
79
79
  "moduleParts": {
80
- "index.production.js": "a9b1-171"
80
+ "index.production.js": "6aaf-171"
81
81
  },
82
82
  "imported": [],
83
83
  "importedBy": [
84
84
  {
85
- "uid": "a9b1-178"
85
+ "uid": "6aaf-178"
86
86
  }
87
87
  ]
88
88
  },
89
- "a9b1-172": {
89
+ "6aaf-172": {
90
90
  "id": "/packages/svelte-table/src/placeholder.svelte",
91
91
  "moduleParts": {
92
- "index.production.js": "a9b1-173"
92
+ "index.production.js": "6aaf-173"
93
93
  },
94
94
  "imported": [
95
95
  {
96
- "uid": "a9b1-180"
96
+ "uid": "6aaf-180"
97
97
  }
98
98
  ],
99
99
  "importedBy": [
100
100
  {
101
- "uid": "a9b1-174"
101
+ "uid": "6aaf-174"
102
102
  }
103
103
  ]
104
104
  },
105
- "a9b1-174": {
105
+ "6aaf-174": {
106
106
  "id": "/packages/svelte-table/src/placeholder.ts",
107
107
  "moduleParts": {
108
- "index.production.js": "a9b1-175"
108
+ "index.production.js": "6aaf-175"
109
109
  },
110
110
  "imported": [
111
111
  {
112
- "uid": "a9b1-180"
112
+ "uid": "6aaf-180"
113
113
  },
114
114
  {
115
- "uid": "a9b1-172"
115
+ "uid": "6aaf-172"
116
116
  }
117
117
  ],
118
118
  "importedBy": [
119
119
  {
120
- "uid": "a9b1-178"
120
+ "uid": "6aaf-178"
121
121
  }
122
122
  ]
123
123
  },
124
- "a9b1-176": {
124
+ "6aaf-176": {
125
125
  "id": "/packages/svelte-table/src/render-component.ts",
126
126
  "moduleParts": {
127
- "index.production.js": "a9b1-177"
127
+ "index.production.js": "6aaf-177"
128
128
  },
129
129
  "imported": [
130
130
  {
131
- "uid": "a9b1-180"
131
+ "uid": "6aaf-180"
132
132
  }
133
133
  ],
134
134
  "importedBy": [
135
135
  {
136
- "uid": "a9b1-178"
136
+ "uid": "6aaf-178"
137
137
  }
138
138
  ]
139
139
  },
140
- "a9b1-178": {
140
+ "6aaf-178": {
141
141
  "id": "/packages/svelte-table/src/index.ts",
142
142
  "moduleParts": {
143
- "index.production.js": "a9b1-179"
143
+ "index.production.js": "6aaf-179"
144
144
  },
145
145
  "imported": [
146
146
  {
147
- "uid": "a9b1-170"
147
+ "uid": "6aaf-170"
148
148
  },
149
149
  {
150
- "uid": "a9b1-174"
150
+ "uid": "6aaf-174"
151
151
  },
152
152
  {
153
- "uid": "a9b1-180"
153
+ "uid": "6aaf-180"
154
154
  },
155
155
  {
156
- "uid": "a9b1-181"
156
+ "uid": "6aaf-181"
157
157
  },
158
158
  {
159
- "uid": "a9b1-176"
159
+ "uid": "6aaf-176"
160
160
  }
161
161
  ],
162
162
  "importedBy": [],
163
163
  "isEntry": true
164
164
  },
165
- "a9b1-180": {
165
+ "6aaf-180": {
166
166
  "id": "svelte/internal",
167
167
  "moduleParts": {},
168
168
  "imported": [],
169
169
  "importedBy": [
170
170
  {
171
- "uid": "a9b1-178"
171
+ "uid": "6aaf-178"
172
172
  },
173
173
  {
174
- "uid": "a9b1-174"
174
+ "uid": "6aaf-174"
175
175
  },
176
176
  {
177
- "uid": "a9b1-176"
177
+ "uid": "6aaf-176"
178
178
  },
179
179
  {
180
- "uid": "a9b1-172"
180
+ "uid": "6aaf-172"
181
181
  }
182
182
  ],
183
183
  "isExternal": true
184
184
  },
185
- "a9b1-181": {
185
+ "6aaf-181": {
186
186
  "id": "svelte/store",
187
187
  "moduleParts": {},
188
188
  "imported": [],
189
189
  "importedBy": [
190
190
  {
191
- "uid": "a9b1-178"
191
+ "uid": "6aaf-178"
192
192
  }
193
193
  ],
194
194
  "isExternal": true
@@ -1993,6 +1993,10 @@
1993
1993
 
1994
1994
  if (value) {
1995
1995
  preGroupedFlatRows.forEach(row => {
1996
+ if (!row.getCanSelect()) {
1997
+ return;
1998
+ }
1999
+
1996
2000
  rowSelection[row.id] = true;
1997
2001
  });
1998
2002
  } else {
@@ -2267,7 +2271,9 @@
2267
2271
  Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key]);
2268
2272
  }
2269
2273
 
2270
- selectedRowIds[id] = true;
2274
+ if (row.getCanSelect()) {
2275
+ selectedRowIds[id] = true;
2276
+ }
2271
2277
  } else {
2272
2278
  delete selectedRowIds[id];
2273
2279
  } // }