Feature/roadmap 3.2#40
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Works the roadmap feature list. An audit first found that 6 of the 8 items were already shipped (the codebase had moved past the roadmap), so this PR verifies those in place and implements the two genuine gaps that remained — released under 3.3.2.
New (the two gaps):
registerAction(name, fn)/getAction(name), plus anaction(el, "name", param)string overload, so actions can be applied/looked up by name (plugins, declarative usage) instead of importing each one. The built-ins (clickOutside,longPress,copyOnClick,autoResize,trapFocus) are auto-registered, and the registry is shared across duplicate runtime copies (globalThisfirst-copy-wins, matching the reactive core). —src/core/rendering/action.tsbindFieldsupports<select multiple>— a change on a multiple-select now sets the bound field to the array of selected option values (viaselectedOptions) instead of just the first; single selects, text inputs, and checkboxes are unchanged. —src/ui/form.tsVerified already-shipped (no code change, confirmed in place):
bindField,show()typing (show<T extends Element>), shorthand tag syntax, toast severity (.info/.success/.warning/.error), router KeepAlive (KeepAlive+KeepAliveRoute+RouterOptions.keepAlive),defineComponentdocs.Docs: CHANGELOG 3.3.2 gains an "Added" section for the two features;
TODO.mdroadmap section marked complete with per-item locations.Tests:
tests/action-registry.test.ts(5) andtests/select-binding.test.ts(3), written test-first. Full suite: 323 files / 3962 pass.Known follow-up: reactive write-back of an array to a
<select multiple>'s selected options (the read side is done) — noted in TODO/roadmap.Related Issue
Closes #
Type of Change
Checklist