Skip to content

Commit

Permalink
grid updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tborychowski committed May 22, 2024
1 parent bae5892 commit df9e9ad
Show file tree
Hide file tree
Showing 18 changed files with 5,743 additions and 5,785 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ Changelog
=========


## v10.0.0 *(2024-05-15)*
## v10.0.0 *(2024-?-?)*
- Breaking change: Dropped `deepCopy` in favour of the native (and unwrapped) `structuredClone`.
- New component: `Grid`.
- Use `crypto` for `guid` generation in `utils`.


## v9.5.3 *(2024-05-18)*
- Fix `Combobox` issue for some edge cases.
Expand Down
4 changes: 2 additions & 2 deletions docs-src/components/grid/Grid.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.table-viewport {
.grid-viewport {
width: 500px;
max-width: 100%;
height: 500px;
height: 400px;
border: 2px dashed red;
padding: 5px;
}
19 changes: 17 additions & 2 deletions docs-src/components/grid/Grid.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h2>Grid</h2>
<p>Grid component is basically a table on steroids. </p>
<div class="table-viewport">
<div class="grid-viewport">
<Grid round title="Grid with data" {columns} {data} multiselect />
</div>

Expand Down Expand Up @@ -46,7 +46,22 @@ const data = [
{ id: 2, name: 'Jane Doe', date: '2020-01-02', price: 200 },
{ id: 3, name: 'Jim Doe', date: '2020-01-03', price: 300 },
{ id: 4, name: 'Jill Doe', date: '2020-01-04', price: 400 },
{ id: 5, name: 'Jack Doe', date: '2020-01-05', price: 500 }
{ id: 5, name: 'Jack Doe', date: '2020-01-05', price: 500 },
{ id: 6, name: 'John Smith', date: '2023-01-01', price: 100 },
{ id: 7, name: 'Jane Smith', date: '2023-01-02', price: 200 },
{ id: 8, name: 'Jim Smith', date: '2023-01-03', price: 300 },
{ id: 9, name: 'Jill Smith', date: '2023-01-04', price: 400 },
{ id: 10, name: 'Jack Smith', date: '2023-01-05', price: 500 },
{ id: 11, name: 'John Doe', date: '2020-01-01', price: 100 },
{ id: 12, name: 'Jane Doe', date: '2020-01-02', price: 200 },
{ id: 13, name: 'Jim Doe', date: '2020-01-03', price: 300 },
{ id: 14, name: 'Jill Doe', date: '2020-01-04', price: 400 },
{ id: 15, name: 'Jack Doe', date: '2020-01-05', price: 500 },
{ id: 16, name: 'John Smith', date: '2023-01-01', price: 100 },
{ id: 17, name: 'Jane Smith', date: '2023-01-02', price: 200 },
{ id: 18, name: 'Jim Smith', date: '2023-01-03', price: 300 },
{ id: 19, name: 'Jill Smith', date: '2023-01-04', price: 400 },
{ id: 20, name: 'Jack Smith', date: '2023-01-05', price: 500 }
];
// const data2 = [
Expand Down
4 changes: 2 additions & 2 deletions docs/docs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit df9e9ad

Please sign in to comment.