@gradio/dataframe 0.7.0 → 0.8.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/CHANGELOG.md +36 -0
- package/Index.svelte +2 -0
- package/package.json +9 -8
- package/shared/Table.svelte +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @gradio/dataframe
|
|
2
2
|
|
|
3
|
+
## 0.8.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#8252](https://github.com/gradio-app/gradio/pull/8252) [`22df61a`](https://github.com/gradio-app/gradio/commit/22df61a26adf8023f6dd49c051979990e8d3879a) - Client node fix. Thanks @pngwn!
|
|
8
|
+
|
|
9
|
+
### Dependency updates
|
|
10
|
+
|
|
11
|
+
- @gradio/atoms@0.7.3
|
|
12
|
+
- @gradio/statustracker@0.5.2
|
|
13
|
+
- @gradio/markdown@0.7.2
|
|
14
|
+
- @gradio/client@0.19.0
|
|
15
|
+
- @gradio/upload@0.10.1
|
|
16
|
+
- @gradio/button@0.2.34
|
|
17
|
+
|
|
18
|
+
## 0.8.0
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- [#8121](https://github.com/gradio-app/gradio/pull/8121) [`f5b710c`](https://github.com/gradio-app/gradio/commit/f5b710c919b0ce604ea955f0d5f4faa91095ca4a) - chore(deps): update dependency eslint to v9. Thanks @renovate!
|
|
23
|
+
- [#8209](https://github.com/gradio-app/gradio/pull/8209) [`b9afe93`](https://github.com/gradio-app/gradio/commit/b9afe93915401df5bd6737c89395c2477acfa585) - Rename `eventSource_Factory` and `fetch_implementation`. Thanks @hannahblair!
|
|
24
|
+
|
|
25
|
+
### Fixes
|
|
26
|
+
|
|
27
|
+
- [#8179](https://github.com/gradio-app/gradio/pull/8179) [`6a218b4`](https://github.com/gradio-app/gradio/commit/6a218b4148095aaa0c58d8c20973ba01c8764fc2) - rework upload to be a class method + pass client into each component. Thanks @pngwn!
|
|
28
|
+
|
|
29
|
+
### Dependency updates
|
|
30
|
+
|
|
31
|
+
- @gradio/atoms@0.7.2
|
|
32
|
+
- @gradio/client@0.18.0
|
|
33
|
+
- @gradio/upload@0.10.0
|
|
34
|
+
- @gradio/utils@0.4.1
|
|
35
|
+
- @gradio/statustracker@0.5.1
|
|
36
|
+
- @gradio/button@0.2.33
|
|
37
|
+
- @gradio/markdown@0.7.1
|
|
38
|
+
|
|
3
39
|
## 0.7.0
|
|
4
40
|
|
|
5
41
|
### Highlights
|
package/Index.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/dataframe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
"dompurify": "^3.0.3",
|
|
18
18
|
"katex": "^0.16.7",
|
|
19
19
|
"marked": "^12.0.0",
|
|
20
|
-
"@gradio/atoms": "^0.7.
|
|
21
|
-
"@gradio/button": "^0.2.
|
|
22
|
-
"@gradio/
|
|
23
|
-
"@gradio/
|
|
24
|
-
"@gradio/
|
|
25
|
-
"@gradio/
|
|
20
|
+
"@gradio/atoms": "^0.7.3",
|
|
21
|
+
"@gradio/button": "^0.2.34",
|
|
22
|
+
"@gradio/client": "^0.19.0",
|
|
23
|
+
"@gradio/markdown": "^0.7.2",
|
|
24
|
+
"@gradio/upload": "^0.10.1",
|
|
25
|
+
"@gradio/statustracker": "^0.5.2",
|
|
26
|
+
"@gradio/utils": "^0.4.1"
|
|
26
27
|
},
|
|
27
28
|
"exports": {
|
|
28
29
|
".": "./Index.svelte",
|
|
@@ -30,6 +31,6 @@
|
|
|
30
31
|
"./package.json": "./package.json"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@gradio/preview": "^0.
|
|
34
|
+
"@gradio/preview": "^0.9.0"
|
|
34
35
|
}
|
|
35
36
|
}
|
package/shared/Table.svelte
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import EditableCell from "./EditableCell.svelte";
|
|
9
9
|
import type { SelectData } from "@gradio/utils";
|
|
10
10
|
import type { I18nFormatter } from "js/app/src/gradio_helper";
|
|
11
|
+
import { type Client } from "@gradio/client";
|
|
11
12
|
import VirtualTable from "./VirtualTable.svelte";
|
|
12
13
|
import type {
|
|
13
14
|
Headers,
|
|
@@ -38,6 +39,8 @@
|
|
|
38
39
|
export let height = 500;
|
|
39
40
|
export let line_breaks = true;
|
|
40
41
|
export let column_widths: string[] = [];
|
|
42
|
+
export let upload: Client["upload"];
|
|
43
|
+
export let stream_handler: Client["stream"];
|
|
41
44
|
|
|
42
45
|
let selected: false | [number, number] = false;
|
|
43
46
|
export let display_value: string[][] | null = null;
|
|
@@ -113,8 +116,8 @@
|
|
|
113
116
|
row_count[1] === "fixed"
|
|
114
117
|
? row_count[0]
|
|
115
118
|
: data_row_length < row_count[0]
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
? row_count[0]
|
|
120
|
+
: data_row_length
|
|
118
121
|
)
|
|
119
122
|
.fill(0)
|
|
120
123
|
.map((_, i) =>
|
|
@@ -122,8 +125,8 @@
|
|
|
122
125
|
col_count[1] === "fixed"
|
|
123
126
|
? col_count[0]
|
|
124
127
|
: data_row_length > 0
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
? _values[0].length
|
|
129
|
+
: headers.length
|
|
127
130
|
)
|
|
128
131
|
.fill(0)
|
|
129
132
|
.map((_, j) => {
|
|
@@ -722,6 +725,8 @@
|
|
|
722
725
|
</tbody>
|
|
723
726
|
</table>
|
|
724
727
|
<Upload
|
|
728
|
+
{upload}
|
|
729
|
+
{stream_handler}
|
|
725
730
|
flex={false}
|
|
726
731
|
center={false}
|
|
727
732
|
boundedheight={false}
|