@gradio/dataframe 0.5.0 → 0.6.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 +24 -1
- package/Dataframe.stories.svelte +38 -0
- package/Index.svelte +2 -0
- package/package.json +8 -8
- package/shared/EditableCell.svelte +4 -0
- package/shared/Table.svelte +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
# @gradio/dataframe
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- [#7298](https://github.com/gradio-app/gradio/pull/7298) [`e5344ba`](https://github.com/gradio-app/gradio/commit/e5344ba0cd63d21dbb525330bbc07ca2eca57832) - chore(deps): update dependency marked to v12. Thanks [@renovate](https://github.com/apps/renovate)!
|
|
8
|
+
- [#7154](https://github.com/gradio-app/gradio/pull/7154) [`aab2a75`](https://github.com/gradio-app/gradio/commit/aab2a75f0610dd7ed0b481264c6b9f01cfe92094) - Allow selecting texts in dataframe cells. Thanks [@shubhamofbce](https://github.com/shubhamofbce)!
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
|
|
12
|
+
- [#7283](https://github.com/gradio-app/gradio/pull/7283) [`757dba6`](https://github.com/gradio-app/gradio/commit/757dba66baf624eae11ff076f0e8d6bfc2314630) - Add `show_label` check to `gr.Dataframe`. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
13
|
+
|
|
14
|
+
## 0.5.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`5727b92`](https://github.com/gradio-app/gradio/commit/5727b92abc8a00a675bfc0a921b38de771af947b), [`ca8753b`](https://github.com/gradio-app/gradio/commit/ca8753bb3d829d0077f758ba8d0ddc866ff74d3d), [`bc2cdc1`](https://github.com/gradio-app/gradio/commit/bc2cdc1df95b38025486cf76df4a494b66d98585), [`c60ad4d`](https://github.com/gradio-app/gradio/commit/c60ad4d34ab5b56a89bf6796822977e51e7a4a32)]:
|
|
19
|
+
- @gradio/button@0.2.18
|
|
20
|
+
- @gradio/utils@0.2.1
|
|
21
|
+
- @gradio/markdown@0.6.1
|
|
22
|
+
- @gradio/upload@0.7.0
|
|
23
|
+
- @gradio/atoms@0.5.0
|
|
24
|
+
- @gradio/statustracker@0.4.4
|
|
25
|
+
|
|
3
26
|
## 0.5.0
|
|
4
27
|
|
|
5
28
|
### Features
|
|
6
29
|
|
|
7
|
-
- [#7018](https://github.com/gradio-app/gradio/pull/7018) [`ec28b4e`](https://github.com/gradio-app/gradio/commit/ec28b4e7c47a9233d9e3a725cc9fe8f9044dfa94) - Add `visible` and `interactive` params to `gr.Tab()`.
|
|
30
|
+
- [#7018](https://github.com/gradio-app/gradio/pull/7018) [`ec28b4e`](https://github.com/gradio-app/gradio/commit/ec28b4e7c47a9233d9e3a725cc9fe8f9044dfa94) - Add `visible` and `interactive` params to `gr.Tab()`. Thanks [@hannahblair](https://github.com/hannahblair)!
|
|
8
31
|
|
|
9
32
|
## 0.4.6
|
|
10
33
|
|
package/Dataframe.stories.svelte
CHANGED
|
@@ -39,6 +39,44 @@
|
|
|
39
39
|
}}
|
|
40
40
|
/>
|
|
41
41
|
|
|
42
|
+
<Story
|
|
43
|
+
name="Interactive dataframe with label"
|
|
44
|
+
args={{
|
|
45
|
+
value: {
|
|
46
|
+
data: [
|
|
47
|
+
["Cat", 5],
|
|
48
|
+
["Horse", 3],
|
|
49
|
+
["Snake", 1]
|
|
50
|
+
],
|
|
51
|
+
headers: ["Animal", "Votes"],
|
|
52
|
+
metadata: null
|
|
53
|
+
},
|
|
54
|
+
label: "Animals",
|
|
55
|
+
show_label: true,
|
|
56
|
+
col_count: [2, "dynamic"],
|
|
57
|
+
row_count: [3, "dynamic"]
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<Story
|
|
62
|
+
name="Interactive dataframe no label"
|
|
63
|
+
args={{
|
|
64
|
+
value: {
|
|
65
|
+
data: [
|
|
66
|
+
["Cat", 5],
|
|
67
|
+
["Horse", 3],
|
|
68
|
+
["Snake", 1]
|
|
69
|
+
],
|
|
70
|
+
headers: ["Animal", "Votes"],
|
|
71
|
+
metadata: null
|
|
72
|
+
},
|
|
73
|
+
label: "Animals",
|
|
74
|
+
show_label: false,
|
|
75
|
+
col_count: [2, "dynamic"],
|
|
76
|
+
row_count: [3, "dynamic"]
|
|
77
|
+
}}
|
|
78
|
+
/>
|
|
79
|
+
|
|
42
80
|
<Story
|
|
43
81
|
name="Static dataframe"
|
|
44
82
|
args={{
|
package/Index.svelte
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
export let col_count: [number, "fixed" | "dynamic"];
|
|
26
26
|
export let row_count: [number, "fixed" | "dynamic"];
|
|
27
27
|
export let label: string | null = null;
|
|
28
|
+
export let show_label = true;
|
|
28
29
|
export let wrap: boolean;
|
|
29
30
|
export let datatype: Datatype | Datatype[];
|
|
30
31
|
export let scale: number | null = null;
|
|
@@ -95,6 +96,7 @@
|
|
|
95
96
|
<Table
|
|
96
97
|
{root}
|
|
97
98
|
{label}
|
|
99
|
+
{show_label}
|
|
98
100
|
{row_count}
|
|
99
101
|
{col_count}
|
|
100
102
|
{value}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/dataframe",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Gradio UI packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"dequal": "^2.0.2",
|
|
17
17
|
"dompurify": "^3.0.3",
|
|
18
18
|
"katex": "^0.16.7",
|
|
19
|
-
"marked": "^
|
|
20
|
-
"@gradio/atoms": "^0.
|
|
21
|
-
"@gradio/button": "^0.2.
|
|
22
|
-
"@gradio/
|
|
23
|
-
"@gradio/
|
|
24
|
-
"@gradio/upload": "^0.
|
|
25
|
-
"@gradio/utils": "^0.2.
|
|
19
|
+
"marked": "^12.0.0",
|
|
20
|
+
"@gradio/atoms": "^0.5.1",
|
|
21
|
+
"@gradio/button": "^0.2.19",
|
|
22
|
+
"@gradio/markdown": "^0.6.2",
|
|
23
|
+
"@gradio/statustracker": "^0.4.5",
|
|
24
|
+
"@gradio/upload": "^0.7.1",
|
|
25
|
+
"@gradio/utils": "^0.2.2"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": "./Index.svelte",
|
package/shared/Table.svelte
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
export let datatype: Datatype | Datatype[];
|
|
21
21
|
export let label: string | null = null;
|
|
22
|
+
export let show_label = true;
|
|
22
23
|
export let headers: Headers = [];
|
|
23
24
|
let values: (string | number)[][];
|
|
24
25
|
export let value: { data: Data; headers: Headers; metadata: Metadata } | null;
|
|
@@ -643,7 +644,7 @@
|
|
|
643
644
|
/>
|
|
644
645
|
|
|
645
646
|
<div class:label={label && label.length !== 0} use:copy>
|
|
646
|
-
{#if label && label.length !== 0}
|
|
647
|
+
{#if label && label.length !== 0 && show_label}
|
|
647
648
|
<p>
|
|
648
649
|
{label}
|
|
649
650
|
</p>
|