@tanstack/svelte-table 8.0.11 → 8.0.14

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":"0e43-163"},{"name":"svelte-table/src","children":[{"uid":"0e43-165","name":"placeholder.svelte"},{"uid":"0e43-167","name":"placeholder.ts"},{"uid":"0e43-169","name":"render-component.ts"},{"uid":"0e43-171","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"0e43-163":{"renderedLength":139119,"gzipLength":23690,"brotliLength":0,"mainUid":"0e43-162"},"0e43-165":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"0e43-164"},"0e43-167":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"0e43-166"},"0e43-169":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"0e43-168"},"0e43-171":{"renderedLength":3046,"gzipLength":993,"brotliLength":0,"mainUid":"0e43-170"}},"nodeMetas":{"0e43-162":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"0e43-163"},"imported":[],"importedBy":[{"uid":"0e43-170"}]},"0e43-164":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"0e43-165"},"imported":[{"uid":"0e43-172"}],"importedBy":[{"uid":"0e43-166"}]},"0e43-166":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"0e43-167"},"imported":[{"uid":"0e43-172"},{"uid":"0e43-164"}],"importedBy":[{"uid":"0e43-170"}]},"0e43-168":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"0e43-169"},"imported":[{"uid":"0e43-172"}],"importedBy":[{"uid":"0e43-170"}]},"0e43-170":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"0e43-171"},"imported":[{"uid":"0e43-162"},{"uid":"0e43-166"},{"uid":"0e43-172"},{"uid":"0e43-173"},{"uid":"0e43-168"}],"importedBy":[],"isEntry":true},"0e43-172":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"0e43-170"},{"uid":"0e43-166"},{"uid":"0e43-168"},{"uid":"0e43-164"}],"isExternal":true},"0e43-173":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"0e43-170"}],"isExternal":true}},"env":{"rollup":"2.75.7"},"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":"4b50-159"},{"name":"svelte-table/src","children":[{"uid":"4b50-161","name":"placeholder.svelte"},{"uid":"4b50-163","name":"placeholder.ts"},{"uid":"4b50-165","name":"render-component.ts"},{"uid":"4b50-167","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"4b50-159":{"renderedLength":134035,"gzipLength":22987,"brotliLength":0,"mainUid":"4b50-158"},"4b50-161":{"renderedLength":927,"gzipLength":445,"brotliLength":0,"mainUid":"4b50-160"},"4b50-163":{"renderedLength":246,"gzipLength":184,"brotliLength":0,"mainUid":"4b50-162"},"4b50-165":{"renderedLength":1458,"gzipLength":539,"brotliLength":0,"mainUid":"4b50-164"},"4b50-167":{"renderedLength":2915,"gzipLength":958,"brotliLength":0,"mainUid":"4b50-166"}},"nodeMetas":{"4b50-158":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"4b50-159"},"imported":[],"importedBy":[{"uid":"4b50-166"}]},"4b50-160":{"id":"/packages/svelte-table/src/placeholder.svelte","moduleParts":{"index.production.js":"4b50-161"},"imported":[{"uid":"4b50-168"}],"importedBy":[{"uid":"4b50-162"}]},"4b50-162":{"id":"/packages/svelte-table/src/placeholder.ts","moduleParts":{"index.production.js":"4b50-163"},"imported":[{"uid":"4b50-168"},{"uid":"4b50-160"}],"importedBy":[{"uid":"4b50-166"}]},"4b50-164":{"id":"/packages/svelte-table/src/render-component.ts","moduleParts":{"index.production.js":"4b50-165"},"imported":[{"uid":"4b50-168"}],"importedBy":[{"uid":"4b50-166"}]},"4b50-166":{"id":"/packages/svelte-table/src/index.ts","moduleParts":{"index.production.js":"4b50-167"},"imported":[{"uid":"4b50-158"},{"uid":"4b50-162"},{"uid":"4b50-168"},{"uid":"4b50-169"},{"uid":"4b50-164"}],"importedBy":[],"isEntry":true},"4b50-168":{"id":"svelte/internal","moduleParts":{},"imported":[],"importedBy":[{"uid":"4b50-166"},{"uid":"4b50-162"},{"uid":"4b50-164"},{"uid":"4b50-160"}],"isExternal":true},"4b50-169":{"id":"svelte/store","moduleParts":{},"imported":[],"importedBy":[{"uid":"4b50-166"}],"isExternal":true}},"env":{"rollup":"2.75.7"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
@@ -0,0 +1,205 @@
1
+ {
2
+ "version": 2,
3
+ "tree": {
4
+ "name": "root",
5
+ "children": [
6
+ {
7
+ "name": "index.production.js",
8
+ "children": [
9
+ {
10
+ "name": "packages",
11
+ "children": [
12
+ {
13
+ "name": "table-core/build/esm/index.js",
14
+ "uid": "4b50-171"
15
+ },
16
+ {
17
+ "name": "svelte-table/src",
18
+ "children": [
19
+ {
20
+ "uid": "4b50-173",
21
+ "name": "placeholder.svelte"
22
+ },
23
+ {
24
+ "uid": "4b50-175",
25
+ "name": "placeholder.ts"
26
+ },
27
+ {
28
+ "uid": "4b50-177",
29
+ "name": "render-component.ts"
30
+ },
31
+ {
32
+ "uid": "4b50-179",
33
+ "name": "index.ts"
34
+ }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
41
+ ],
42
+ "isRoot": true
43
+ },
44
+ "nodeParts": {
45
+ "4b50-171": {
46
+ "renderedLength": 134035,
47
+ "gzipLength": 22987,
48
+ "brotliLength": 0,
49
+ "mainUid": "4b50-170"
50
+ },
51
+ "4b50-173": {
52
+ "renderedLength": 927,
53
+ "gzipLength": 445,
54
+ "brotliLength": 0,
55
+ "mainUid": "4b50-172"
56
+ },
57
+ "4b50-175": {
58
+ "renderedLength": 246,
59
+ "gzipLength": 184,
60
+ "brotliLength": 0,
61
+ "mainUid": "4b50-174"
62
+ },
63
+ "4b50-177": {
64
+ "renderedLength": 1458,
65
+ "gzipLength": 539,
66
+ "brotliLength": 0,
67
+ "mainUid": "4b50-176"
68
+ },
69
+ "4b50-179": {
70
+ "renderedLength": 2915,
71
+ "gzipLength": 958,
72
+ "brotliLength": 0,
73
+ "mainUid": "4b50-178"
74
+ }
75
+ },
76
+ "nodeMetas": {
77
+ "4b50-170": {
78
+ "id": "/packages/table-core/build/esm/index.js",
79
+ "moduleParts": {
80
+ "index.production.js": "4b50-171"
81
+ },
82
+ "imported": [],
83
+ "importedBy": [
84
+ {
85
+ "uid": "4b50-178"
86
+ }
87
+ ]
88
+ },
89
+ "4b50-172": {
90
+ "id": "/packages/svelte-table/src/placeholder.svelte",
91
+ "moduleParts": {
92
+ "index.production.js": "4b50-173"
93
+ },
94
+ "imported": [
95
+ {
96
+ "uid": "4b50-180"
97
+ }
98
+ ],
99
+ "importedBy": [
100
+ {
101
+ "uid": "4b50-174"
102
+ }
103
+ ]
104
+ },
105
+ "4b50-174": {
106
+ "id": "/packages/svelte-table/src/placeholder.ts",
107
+ "moduleParts": {
108
+ "index.production.js": "4b50-175"
109
+ },
110
+ "imported": [
111
+ {
112
+ "uid": "4b50-180"
113
+ },
114
+ {
115
+ "uid": "4b50-172"
116
+ }
117
+ ],
118
+ "importedBy": [
119
+ {
120
+ "uid": "4b50-178"
121
+ }
122
+ ]
123
+ },
124
+ "4b50-176": {
125
+ "id": "/packages/svelte-table/src/render-component.ts",
126
+ "moduleParts": {
127
+ "index.production.js": "4b50-177"
128
+ },
129
+ "imported": [
130
+ {
131
+ "uid": "4b50-180"
132
+ }
133
+ ],
134
+ "importedBy": [
135
+ {
136
+ "uid": "4b50-178"
137
+ }
138
+ ]
139
+ },
140
+ "4b50-178": {
141
+ "id": "/packages/svelte-table/src/index.ts",
142
+ "moduleParts": {
143
+ "index.production.js": "4b50-179"
144
+ },
145
+ "imported": [
146
+ {
147
+ "uid": "4b50-170"
148
+ },
149
+ {
150
+ "uid": "4b50-174"
151
+ },
152
+ {
153
+ "uid": "4b50-180"
154
+ },
155
+ {
156
+ "uid": "4b50-181"
157
+ },
158
+ {
159
+ "uid": "4b50-176"
160
+ }
161
+ ],
162
+ "importedBy": [],
163
+ "isEntry": true
164
+ },
165
+ "4b50-180": {
166
+ "id": "svelte/internal",
167
+ "moduleParts": {},
168
+ "imported": [],
169
+ "importedBy": [
170
+ {
171
+ "uid": "4b50-178"
172
+ },
173
+ {
174
+ "uid": "4b50-174"
175
+ },
176
+ {
177
+ "uid": "4b50-176"
178
+ },
179
+ {
180
+ "uid": "4b50-172"
181
+ }
182
+ ],
183
+ "isExternal": true
184
+ },
185
+ "4b50-181": {
186
+ "id": "svelte/store",
187
+ "moduleParts": {},
188
+ "imported": [],
189
+ "importedBy": [
190
+ {
191
+ "uid": "4b50-178"
192
+ }
193
+ ],
194
+ "isExternal": true
195
+ }
196
+ },
197
+ "env": {
198
+ "rollup": "2.75.7"
199
+ },
200
+ "options": {
201
+ "gzip": true,
202
+ "brotli": false,
203
+ "sourcemap": false
204
+ }
205
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * svelte-table
3
+ *
4
+ * Copyright (c) TanStack
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ import * as _tanstack_table_core from '@tanstack/table-core';
12
+ import { RowData, TableOptions } from '@tanstack/table-core';
13
+ export * from '@tanstack/table-core';
14
+ import { Readable } from 'svelte/store';
15
+
16
+ declare function renderClient(Comp: any, props: any): any;
17
+ declare const renderComponent: typeof renderClient;
18
+
19
+ declare function flexRender(component: any, props: any): any;
20
+ declare type ReadableOrVal<T> = T | Readable<T>;
21
+ declare function createSvelteTable<TData extends RowData>(options: ReadableOrVal<TableOptions<TData>>): Readable<_tanstack_table_core.Table<TData>>;
22
+
23
+ export { createSvelteTable, flexRender, renderComponent };