@gradio/dataframe 0.9.1 → 0.10.0
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 +29 -0
- package/Dataframe.stories.svelte +0 -1
- package/package.json +14 -9
- package/shared/Table.svelte +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @gradio/dataframe
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- [#9128](https://github.com/gradio-app/gradio/pull/9128) [`747013b`](https://github.com/gradio-app/gradio/commit/747013bbacebae6bfdda554b45e541e80b2894e0) - Allow accessing the entire row of selected values in `gr.DataFrame`. Thanks @abidlabs!
|
|
8
|
+
- [#9118](https://github.com/gradio-app/gradio/pull/9118) [`e1c404d`](https://github.com/gradio-app/gradio/commit/e1c404da1143fb52b659d03e028bdba1badf443d) - setup npm-previews of all packages. Thanks @pngwn!
|
|
9
|
+
- [#9102](https://github.com/gradio-app/gradio/pull/9102) [`efdc323`](https://github.com/gradio-app/gradio/commit/efdc3231a7bde38cfe45d10086d0d36a24c1b9b4) - Initial SSR refactor. Thanks @pngwn!
|
|
10
|
+
|
|
11
|
+
### Dependency updates
|
|
12
|
+
|
|
13
|
+
- @gradio/utils@0.6.0
|
|
14
|
+
- @gradio/upload@0.12.3
|
|
15
|
+
- @gradio/atoms@0.8.0
|
|
16
|
+
- @gradio/button@0.2.50
|
|
17
|
+
- @gradio/client@1.5.1
|
|
18
|
+
- @gradio/markdown@0.9.3
|
|
19
|
+
- @gradio/statustracker@0.7.5
|
|
20
|
+
|
|
21
|
+
## 0.9.2
|
|
22
|
+
|
|
23
|
+
### Dependency updates
|
|
24
|
+
|
|
25
|
+
- @gradio/atoms@0.7.9
|
|
26
|
+
- @gradio/statustracker@0.7.4
|
|
27
|
+
- @gradio/client@1.5.0
|
|
28
|
+
- @gradio/upload@0.12.2
|
|
29
|
+
- @gradio/markdown@0.9.2
|
|
30
|
+
- @gradio/button@0.2.49
|
|
31
|
+
|
|
3
32
|
## 0.9.1
|
|
4
33
|
|
|
5
34
|
### Dependency updates
|
package/Dataframe.stories.svelte
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/dataframe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"dompurify": "^3.0.3",
|
|
18
18
|
"katex": "^0.16.7",
|
|
19
19
|
"marked": "^12.0.0",
|
|
20
|
-
"@gradio/
|
|
21
|
-
"@gradio/
|
|
22
|
-
"@gradio/client": "^1.
|
|
23
|
-
"@gradio/statustracker": "^0.7.
|
|
24
|
-
"@gradio/markdown": "^0.9.
|
|
25
|
-
"@gradio/upload": "^0.12.
|
|
26
|
-
"@gradio/utils": "^0.
|
|
20
|
+
"@gradio/button": "^0.2.50",
|
|
21
|
+
"@gradio/atoms": "^0.8.0",
|
|
22
|
+
"@gradio/client": "^1.5.1",
|
|
23
|
+
"@gradio/statustracker": "^0.7.5",
|
|
24
|
+
"@gradio/markdown": "^0.9.3",
|
|
25
|
+
"@gradio/upload": "^0.12.3",
|
|
26
|
+
"@gradio/utils": "^0.6.0"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": "./Index.svelte",
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
"./package.json": "./package.json"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@gradio/preview": "^0.
|
|
34
|
+
"@gradio/preview": "^0.11.0"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/gradio-app/gradio.git",
|
|
39
|
+
"directory": "js/dataframe"
|
|
35
40
|
}
|
|
36
41
|
}
|
package/shared/Table.svelte
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { BaseButton } from "@gradio/button";
|
|
8
8
|
import EditableCell from "./EditableCell.svelte";
|
|
9
9
|
import type { SelectData } from "@gradio/utils";
|
|
10
|
-
import type { I18nFormatter } from "js/
|
|
10
|
+
import type { I18nFormatter } from "js/core/src/gradio_helper";
|
|
11
11
|
import { type Client } from "@gradio/client";
|
|
12
12
|
import VirtualTable from "./VirtualTable.svelte";
|
|
13
13
|
import type {
|
|
@@ -65,7 +65,11 @@
|
|
|
65
65
|
if (selected !== false) {
|
|
66
66
|
const [row, col] = selected;
|
|
67
67
|
if (!isNaN(row) && !isNaN(col)) {
|
|
68
|
-
dispatch("select", {
|
|
68
|
+
dispatch("select", {
|
|
69
|
+
index: [row, col],
|
|
70
|
+
value: get_data_at(row, col),
|
|
71
|
+
row_value: data[row].map((d) => d.value)
|
|
72
|
+
});
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
}
|