@gradio/dataframe 0.12.1 → 0.12.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @gradio/dataframe
|
|
2
2
|
|
|
3
|
+
## 0.12.3
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- [#9949](https://github.com/gradio-app/gradio/pull/9949) [`cfb62bf`](https://github.com/gradio-app/gradio/commit/cfb62bfdb52d88295f27287f788fca977e37ae6d) - Allow dataframe column content to wrap. Thanks @hannahblair!
|
|
8
|
+
|
|
9
|
+
### Dependency updates
|
|
10
|
+
|
|
11
|
+
- @gradio/atoms@0.11.1
|
|
12
|
+
- @gradio/client@1.8.0
|
|
13
|
+
- @gradio/utils@0.8.0
|
|
14
|
+
- @gradio/button@0.3.7
|
|
15
|
+
- @gradio/upload@0.14.1
|
|
16
|
+
- @gradio/statustracker@0.9.5
|
|
17
|
+
|
|
18
|
+
## 0.12.2
|
|
19
|
+
|
|
20
|
+
### Fixes
|
|
21
|
+
|
|
22
|
+
- [#9892](https://github.com/gradio-app/gradio/pull/9892) [`7d77024`](https://github.com/gradio-app/gradio/commit/7d77024cb8f9cfd39a6468de9534e58dcfa69f49) - Fix dataframe height increasing on scroll. Thanks @abidlabs!
|
|
23
|
+
|
|
24
|
+
### Dependency updates
|
|
25
|
+
|
|
26
|
+
- @gradio/statustracker@0.9.4
|
|
27
|
+
- @gradio/button@0.3.6
|
|
28
|
+
- @gradio/atoms@0.11.0
|
|
29
|
+
- @gradio/upload@0.14.0
|
|
30
|
+
|
|
3
31
|
## 0.12.1
|
|
4
32
|
|
|
5
33
|
### Features
|
package/Dataframe.stories.svelte
CHANGED
|
@@ -181,12 +181,16 @@
|
|
|
181
181
|
play={async ({ canvasElement }) => {
|
|
182
182
|
const canvas = within(canvasElement);
|
|
183
183
|
|
|
184
|
-
const
|
|
185
|
-
userEvent.click(
|
|
186
|
-
|
|
187
|
-
|
|
184
|
+
const cell_400 = canvas.getAllByRole("cell")[5];
|
|
185
|
+
userEvent.click(cell_400);
|
|
186
|
+
|
|
187
|
+
const open_dialog_btn = within(cell_400).getByText("⋮");
|
|
188
|
+
await userEvent.click(open_dialog_btn);
|
|
188
189
|
|
|
189
190
|
const add_row_btn = canvas.getByText("Add row above");
|
|
190
191
|
await userEvent.click(add_row_btn);
|
|
192
|
+
|
|
193
|
+
const new_cell = canvas.getAllByRole("cell")[9];
|
|
194
|
+
userEvent.click(new_cell);
|
|
191
195
|
}}
|
|
192
196
|
/>
|
package/dist/shared/Table.svelte
CHANGED
|
@@ -1047,8 +1047,8 @@ function reset_selection() {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
th .header-content {
|
|
1050
|
-
white-space:
|
|
1051
|
-
overflow:
|
|
1052
|
-
|
|
1050
|
+
white-space: normal;
|
|
1051
|
+
overflow-wrap: break-word;
|
|
1052
|
+
word-break: break-word;
|
|
1053
1053
|
}
|
|
1054
1054
|
</style>
|
|
@@ -194,8 +194,6 @@ $:
|
|
|
194
194
|
}) : sortedItems.slice(0, max_height / sortedItems.length * average_height + 1).map((data, i) => {
|
|
195
195
|
return { index: i + start, data };
|
|
196
196
|
});
|
|
197
|
-
$:
|
|
198
|
-
actual_height = visible.length * average_height + 10;
|
|
199
197
|
onMount(() => {
|
|
200
198
|
rows = contents.children;
|
|
201
199
|
mounted = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradio/dataframe",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
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/atoms": "^0.
|
|
21
|
-
"@gradio/button": "^0.3.
|
|
20
|
+
"@gradio/atoms": "^0.11.1",
|
|
21
|
+
"@gradio/button": "^0.3.7",
|
|
22
22
|
"@gradio/markdown-code": "^0.2.1",
|
|
23
|
-
"@gradio/statustracker": "^0.9.
|
|
24
|
-
"@gradio/
|
|
25
|
-
"@gradio/
|
|
26
|
-
"@gradio/
|
|
23
|
+
"@gradio/statustracker": "^0.9.5",
|
|
24
|
+
"@gradio/client": "^1.8.0",
|
|
25
|
+
"@gradio/utils": "^0.8.0",
|
|
26
|
+
"@gradio/upload": "^0.14.1"
|
|
27
27
|
},
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
package/shared/Table.svelte
CHANGED