You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ok: Add missing Angular and React FV wrappers - #3126
Add missing FV component wrappers for Angular and React.
👩💻 Implementation
Adds Angular and React FV wrappers with typed event targets, and an opt-in Angular forms entry point for the FV text field, date-time picker, and multi-select. Angular forms consumers install @angular/forms at the same version as @angular/core. React type-test wiring into npm run validate is deferred to a follow-up PR.
🧪 Testing
The React type regression test is present but is not yet wired into npm run validate; that will be handled in a follow-up PR.
✅ Checklist
I have updated the project documentation to reflect my changes or determined no changes are needed.
Filter bubbled events to their originating wrapper, preserve event argument compatibility, and expose Maskito options through the Blazor text field.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Active issues leave Blazor controls stale after parent-driven updates, cause duplicate Angular form updates, and break splitter numeric settings under some cultures.
Adds missing FV component wrappers to the Angular, React, and Blazor packages, making the existing web components available through framework-specific bindings.
Changes:
Adds component wrappers, public exports, and Angular form value accessors.
Adds Blazor object-property forwarding, custom callbacks, and event-origin filtering.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
React and Angular event typings prevent payload-aware handlers from compiling, while Blazor text-field and date-time-picker wrappers lack the callbacks required for two-way binding.
No open issues 🎉
3 previously missed issues
In code that hasn't changed since last review
Preserve custom event detail types in Angular outputs
The web component dispatches both actions as CustomEvent<FvFilterBarEventDetail> with the query in detail.query, but these outputs erase that payload to Event. With strict Angular template checking, (editFilterEvent)="edit($event.detail.query)" and the equivalent clear binding therefore fail to compile. Please retain the custom-event payload type in the emitters and listener parameters.
Add two-way Value binding support to text and date-time pickers
Value has no matching ValueChanged callback, so consumers cannot use @bind-Value to synchronize the text field with a model. Follow packages/blazor-workspace/NimbleBlazor/CONTRIBUTING.md:65–76: use the input-binding base class and update its current value from the DOM handler while preserving OnChange. The same issue affects DateTimePicker/OkFvDateTimePicker.razor.cs:43–44; preserve its explicit input and change callbacks when adding binding support.
Type component event targets instead of plain Event
The unparameterized EventName makes both callback arguments plain Events, so a controlled handler such as onInput={e => setSelection(e.target.selectedValues)} fails TypeScript checking. Give both events a FvMultiSelect target type, following the exported event-interface pattern in fv/splitter/index.ts. Apply the same correction in fv/text-field/index.ts:10–11, fv/date-time-picker/index.ts:13–14, and fv/split-layout/index.ts:10–11 so their handlers can read value or position.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The publishing configuration incorrectly versions the NimbleBlazor dependency as OkBlazor’s 1.x version instead of 22.2.2, allowing consumers to resolve an older package than the wrappers were compiled against.
A parent rerender after @bind-SelectedValues changes resends unchanged Options, creating a new JavaScript array and causing FvMultiSelect.optionsChanged() to reset the active option to the first enabled item. Selecting a later option with Space therefore jumps the keyboard highlight back to the beginning. Compare a snapshot of option values before forwarding Options, preserving detection of in-place edits, and add a keyboard-selection regression test across binding updates.
Filter bubbled pane events before forwarding layout callbacks
Typing into a control slotted into either pane also bubbles input/change to these listeners. wrap forwards those events without filtering, so a resize handler such as setPosition(event.target.position) receives an input element (and undefined) despite the declared FvSplitLayout target type. Please filter out events whose target is not the layout before invoking these callbacks, as the Angular split-layout binding already does, and cover a nested input in a regression test.
Keep the FV wrappers while removing dependency and release changes that alter package metadata. Drop Angular forms integration and retain Blazor value callbacks without a NimbleBlazor project reference.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add dashboard-card wrappers and Angular form accessors while keeping the FV wrapper changes scoped to Angular and React.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fredvisser
changed the title
ok: Add FV framework wrappers
ok: Add missing Angular and React FV wrappers
Dec 2, 2026
Complete Angular proxy accessors and text-field inputs, and type React split-layout events through currentTarget.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed to evaluate omitted findings concerning date-time picker reset behavior and missing Angular input aliases across several wrappers.
Clear stale picker drafts when Angular writes the same value, and support attribute-style bindings alongside existing inputs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The Angular accessor calls resetDraft() without the required component release entry and peer dependency constraint, risking runtime failures for consumers using older component versions.
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
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.
Pull Request
🤨 Rationale
Add missing FV component wrappers for Angular and React.
👩💻 Implementation
Adds Angular and React FV wrappers with typed event targets, and an opt-in Angular forms entry point for the FV text field, date-time picker, and multi-select. Angular forms consumers install
@angular/formsat the same version as@angular/core. React type-test wiring intonpm run validateis deferred to a follow-up PR.🧪 Testing
The React type regression test is present but is not yet wired into
npm run validate; that will be handled in a follow-up PR.✅ Checklist