-
Couldn't load subscription status.
- Fork 6
Refactor tree #2715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Refactor tree #2715
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
65fa9b1
🍔
jpzwarte ef268dc
Merge branch 'main' into fix/2678-tree-unit-tests
jpzwarte c17a79e
🍋
jpzwarte d720c25
🍓
jpzwarte f4b3110
📬
jpzwarte 8029b36
🌭
jpzwarte b7c8a0d
⛄️
jpzwarte aa92762
🛳
jpzwarte 59673ca
😎
jpzwarte 0a84e30
🍫
jpzwarte b87aef7
🌁
jpzwarte 532be86
👑
jpzwarte ea597fc
Merge branch 'main' into fix/2678-tree-unit-tests
jpzwarte 98f92cc
🐤
jpzwarte 382cddb
🚤
jpzwarte 6eabedd
🔭
jpzwarte 8052095
🍕
jpzwarte ffe8a4a
📟
jpzwarte c6103d9
⭐️
jpzwarte d09413c
⛴
jpzwarte 476e834
🌭
jpzwarte 586484f
🌸
jpzwarte 3b74a09
🐙
jpzwarte 625a1f0
Merge branch 'main' into fix/2678-tree-unit-tests
jpzwarte dc347f8
🗻
jpzwarte 5d7f030
🐕
jpzwarte f371b6c
🦃
jpzwarte 14185ae
🐧
jpzwarte b16366f
🚍
jpzwarte 81613ba
🐝
jpzwarte 1bc3dc3
💪
jpzwarte 564b697
Merge branch 'main' into fix/2678-tree-unit-tests
jpzwarte 1a9ba20
🚦
jpzwarte 098512c
🍫
jpzwarte b91c363
🏝
jpzwarte 1fca471
😃
jpzwarte c04d977
🌹
jpzwarte a16055e
😎
jpzwarte 5fae754
🎤
jpzwarte 72b5061
🐋
jpzwarte ea8c64a
🍪
jpzwarte 4b78d4c
🚋
jpzwarte bbd489d
🍫
jpzwarte f9ae787
🚀
jpzwarte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@sl-design-system/tree': minor | ||
| --- | ||
|
|
||
| Replace `@lit-labs/virtualizer` with `@tanstack/lit-virtual` | ||
|
|
||
| This is a breaking change, but not worthy of a new major version, because the component still has draft status. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| '@sl-design-system/button-bar': minor | ||
| --- | ||
| ` | ||
| Add `fill` and `variant` properties, similar to `size` that will be applied | ||
| to all child buttons. This can especially be useful when embedding the button bar | ||
| in another component where the buttons are slotted. This way the developer doesn't | ||
| have to set the same properties on each button manually. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@sl-design-system/shared': patch | ||
| --- | ||
|
|
||
| Fix `scrollParent` to work with overflow elements that do not scroll (yet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
.yarn/patches/@tanstack-lit-virtual-npm-3.13.12-56dd05e0b4.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| diff --git a/dist/cjs/index.cjs b/dist/cjs/index.cjs | ||
| index 01a42de29d1f945abbefa4199f1337f9640a9020..de33416b0a327099bf0931358dcad4b131e616ce 100644 | ||
| --- a/dist/cjs/index.cjs | ||
| +++ b/dist/cjs/index.cjs | ||
| @@ -5,7 +5,6 @@ class VirtualizerControllerBase { | ||
| constructor(host, options) { | ||
| this.cleanup = () => { | ||
| }; | ||
| - (this.host = host).addController(this); | ||
| const resolvedOptions = { | ||
| ...options, | ||
| onChange: (instance, sync) => { | ||
| @@ -15,6 +14,7 @@ class VirtualizerControllerBase { | ||
| } | ||
| }; | ||
| this.virtualizer = new virtualCore.Virtualizer(resolvedOptions); | ||
| + (this.host = host).addController(this); | ||
| } | ||
| getVirtualizer() { | ||
| return this.virtualizer; | ||
| diff --git a/dist/esm/index.js b/dist/esm/index.js | ||
| index 385e7a480460f0468447e2cd8553baca48238c7f..e2baae311feadb842c2c826d4e805d7251867120 100644 | ||
| --- a/dist/esm/index.js | ||
| +++ b/dist/esm/index.js | ||
| @@ -3,7 +3,6 @@ class VirtualizerControllerBase { | ||
| constructor(host, options) { | ||
| this.cleanup = () => { | ||
| }; | ||
| - (this.host = host).addController(this); | ||
| const resolvedOptions = { | ||
| ...options, | ||
| onChange: (instance, sync) => { | ||
| @@ -13,6 +12,7 @@ class VirtualizerControllerBase { | ||
| } | ||
| }; | ||
| this.virtualizer = new Virtualizer(resolvedOptions); | ||
| + (this.host = host).addController(this); | ||
| } | ||
| getVirtualizer() { | ||
| return this.virtualizer; | ||
| diff --git a/src/index.ts b/src/index.ts | ||
| index 7a00af057f1b1da31ebfedd7dfd4544d99791ead..e36887fd05ca042241f474479b5e5754626fa8b8 100644 | ||
| --- a/src/index.ts | ||
| +++ b/src/index.ts | ||
| @@ -25,8 +25,6 @@ class VirtualizerControllerBase< | ||
| host: ReactiveControllerHost, | ||
| options: VirtualizerOptions<TScrollElement, TItemElement>, | ||
| ) { | ||
| - ;(this.host = host).addController(this) | ||
| - | ||
| const resolvedOptions: VirtualizerOptions<TScrollElement, TItemElement> = { | ||
| ...options, | ||
| onChange: (instance, sync) => { | ||
| @@ -35,6 +33,8 @@ class VirtualizerControllerBase< | ||
| }, | ||
| } | ||
| this.virtualizer = new Virtualizer(resolvedOptions) | ||
| + | ||
| + ;(this.host = host).addController(this) | ||
| } | ||
|
|
||
| public getVirtualizer() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.