Skip to content

Commit dcc6955

Browse files
Version Packages (#298)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 772699e commit dcc6955

11 files changed

+61
-82
lines changed

.changeset/cool-onions-crash.md

-17
This file was deleted.

.changeset/few-brooms-reflect.md

-29
This file was deleted.

.changeset/gold-pumpkins-tell.md

-5
This file was deleted.

.changeset/green-planes-provide.md

-5
This file was deleted.

.changeset/healthy-horses-dream.md

-5
This file was deleted.

.changeset/old-pianos-rush.md

-5
This file was deleted.

.changeset/small-scissors-accept.md

-5
This file was deleted.

.changeset/swift-yaks-grow.md

-5
This file was deleted.

.changeset/two-planes-lay.md

-5
This file was deleted.

packages/svelte-ux/CHANGELOG.md

+60
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,65 @@
11
# svelte-ux
22

3+
## 0.62.0
4+
5+
### Minor Changes
6+
7+
- Breaking change: `tableOrderStore` now takes in the full event with `e.detail.column` instead of just `column` to simplify usage. ([`341b51a47df0db4774a6470ecbcee36e21002188`](https://github.com/techniq/svelte-ux/commit/341b51a47df0db4774a6470ecbcee36e21002188))
8+
9+
## Before
10+
11+
```svelte
12+
<Table on:headerClick={(e) => tableOrder.onHeaderClick(e.detail.column)} />
13+
```
14+
15+
## After
16+
17+
```svelte
18+
<Table on:headerClick={tableOrder.onHeaderClick} />
19+
```
20+
21+
- Breaking change: Simplify Table ordering by passing instance of `tableOrderStore` instead of `orderBy`, `orderDirection`, and handling `on:headerClick`. Also fixes display of clickable headers when order is not used, and improves sort arrow size. ([`e72a154524d0a8583717f58617984b1ea46f187b`](https://github.com/techniq/svelte-ux/commit/e72a154524d0a8583717f58617984b1ea46f187b))
22+
23+
## Before
24+
25+
```svelte
26+
<script>
27+
const order = tableOrderStore();
28+
</script>
29+
30+
<Table
31+
orderBy={$order.by}
32+
orderDirection={$order.direction}
33+
on:headerClick={order.onHeaderClick}
34+
/>
35+
```
36+
37+
## After
38+
39+
```svelte
40+
<script>
41+
const order = tableOrderStore();
42+
</script>
43+
44+
<Table {order} />
45+
```
46+
47+
- Breaking change: [Paginate] Rename `items` to `data` and `pageItems` slot prop to `pageData` to better integrate with `Table`. Maintain `data` type to `pageData`. ([`fc50ca2d5670596dd9c125725fff1ad38c07e723`](https://github.com/techniq/svelte-ux/commit/fc50ca2d5670596dd9c125725fff1ad38c07e723))
48+
49+
### Patch Changes
50+
51+
- Add support for the Map iterable type in the entries function ([#300](https://github.com/techniq/svelte-ux/pull/300))
52+
53+
- [Dialog / Drawer] Only stop keydown event propagation for `Escape` key (allow arrow keys, etc) ([`4b9824f6e2a7fef4621c0aeaf3a4f3080ba8e124`](https://github.com/techniq/svelte-ux/commit/4b9824f6e2a7fef4621c0aeaf3a4f3080ba8e124))
54+
55+
- [tableOrderStore] Support passing `columns` to simplify creating initialHandler for complex columns (using value, orderBy, etc) ([`772699ea0940cea2b350e10a9848df69cade1b15`](https://github.com/techniq/svelte-ux/commit/772699ea0940cea2b350e10a9848df69cade1b15))
56+
57+
- Improve types for Table, Paginate, Selection, Steps, and InfiniteScroll ([`fc50ca2d5670596dd9c125725fff1ad38c07e723`](https://github.com/techniq/svelte-ux/commit/fc50ca2d5670596dd9c125725fff1ad38c07e723))
58+
59+
- Add `isEmptyObject()` util ([`e2b97b616cd1bdbfd5a6d480c829351a66b30251`](https://github.com/techniq/svelte-ux/commit/e2b97b616cd1bdbfd5a6d480c829351a66b30251))
60+
61+
- [tableOrderStore] Use `initialDirection` when changing column sorted by ([`8ea0a4dd4680dc31495b5d4b521b11624760f5e2`](https://github.com/techniq/svelte-ux/commit/8ea0a4dd4680dc31495b5d4b521b11624760f5e2))
62+
363
## 0.61.10
464

565
### Patch Changes

packages/svelte-ux/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": "Sean Lynch <[email protected]>",
55
"license": "MIT",
66
"repository": "techniq/svelte-ux",
7-
"version": "0.61.10",
7+
"version": "0.62.0",
88
"scripts": {
99
"dev": "vite dev",
1010
"build": "vite build",

0 commit comments

Comments
 (0)