Skip to content

ok: Add missing Angular and React FV wrappers - #3126

Open
fredvisser wants to merge 17 commits into
mainfrom
agents/add-missing-wrappers-ok-fv-components
Open

fredvisser wants to merge 17 commits into
mainfrom
agents/add-missing-wrappers-ok-fv-components

Conversation

@fredvisser

@fredvisser fredvisser commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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/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.

fredvisser and others added 3 commits November 16, 2026 08:42
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

3 open issues
What changed in this PR

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.
  • Adds binding tests, usage documentation, dependency metadata, and release change files.
File Description
packages/​react-workspace/​ok-react/​src/​fv/​toolbar/​index.ts Adds the React toolbar wrapper.
packages/​react-workspace/​ok-react/​src/​fv/​text-field/​index.ts Adds text-field bindings and mask types.
packages/​react-workspace/​ok-react/​src/​fv/​split-layout/​index.ts Adds split-layout bindings and events.
packages/​react-workspace/​ok-react/​src/​fv/​multi-select/​index.ts Adds multi-select bindings and option types.
packages/​react-workspace/​ok-react/​src/​fv/​filter-bar/​index.ts Adds filter-bar bindings and typed events.
packages/​react-workspace/​ok-react/​src/​fv/​edit-commit-bar/​index.ts Adds edit-commit action callbacks.
packages/​react-workspace/​ok-react/​src/​fv/​date-time-picker/​index.ts Adds date-time picker bindings.
packages/​react-workspace/​ok-react/​src/​fv/​bulk-edit-field/​index.ts Adds bulk-edit action callbacks.
packages/​blazor-workspace/​Tests/​OkBlazor.Tests/​Unit/​Components/​Fv/​OkFvBindingsTests.cs Tests properties, callbacks, and event filtering.
packages/​blazor-workspace/​package.json Includes JavaScript event tests in testing.
packages/​blazor-workspace/​OkBlazor/​wwwroot/​OkBlazor.lib.module.js Registers FV events and property interop.
packages/​blazor-workspace/​OkBlazor/​tests/​ok-fv-events.test.mjs Tests event serialization and property interop.
packages/​blazor-workspace/​OkBlazor/​Source/​Patterns/​EventHandlers.cs Declares Blazor FV event handlers.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Toolbar/​OkFvToolbar.razor.cs Defines toolbar parameters.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Toolbar/​OkFvToolbar.razor Renders toolbar bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​TextField/​OkFvTextField.razor.cs Defines text-field parameters and mask interop.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​TextField/​OkFvTextField.razor Renders text-field bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SummaryPanelTile/​OkFvSummaryPanelTile.razor.cs Defines summary-tile parameters.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SummaryPanelTile/​OkFvSummaryPanelTile.razor Renders summary-tile bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SummaryPanel/​OkFvSummaryPanel.razor.cs Defines summary-panel parameters and callback.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SummaryPanel/​OkFvSummaryPanel.razor Renders summary-panel bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Splitter/​OkFvSplitter.razor.cs Defines splitter parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Splitter/​OkFvSplitter.razor Renders splitter bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitLayout/​OkFvSplitLayout.razor.cs Defines split-layout parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitLayout/​OkFvSplitLayout.razor Renders split-layout bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitButtonAnchor/​OkFvSplitButtonAnchor.razor.cs Defines split-button anchor parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitButtonAnchor/​OkFvSplitButtonAnchor.razor Renders split-button anchor bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitButton/​OkFvSplitButton.razor.cs Defines split-button parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​SplitButton/​OkFvSplitButton.razor Renders split-button bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MultiSelect/​OkFvMultiSelect.razor.cs Adds selection binding and object-property interop.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MultiSelect/​OkFvMultiSelect.razor Renders multi-select bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MultiSelect/​FvMultiSelectOption.cs Defines options and selection event arguments.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MasterDetailListItem/​OkFvMasterDetailListItem.razor.cs Defines list-item parameters.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MasterDetailListItem/​OkFvMasterDetailListItem.razor Renders list-item bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MasterDetailList/​OkFvMasterDetailList.razor.cs Defines list parameters and filtered selection callback.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MasterDetailList/​OkFvMasterDetailList.razor Renders master-detail list bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​FvEventArgs.cs Defines shared FV event arguments.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​FilterBar/​OkFvFilterBar.razor.cs Adds query interop and filter callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​FilterBar/​OkFvFilterBar.razor Renders filter-bar bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​FilterBar/​FvFilterBarEventArgs.cs Defines query event arguments.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​EditCommitBar/​OkFvEditCommitBar.razor.cs Adds message interop and action callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​EditCommitBar/​OkFvEditCommitBar.razor Renders edit-commit bar bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​EditCommitBar/​FvCommitMessage.cs Defines the commit-message model.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​DateTimePicker/​OkFvDateTimePicker.razor.cs Defines picker parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​DateTimePicker/​OkFvDateTimePicker.razor Renders date-time picker bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​ContextHelp/​OkFvContextHelp.razor.cs Defines context-help parameters.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​ContextHelp/​OkFvContextHelp.razor Renders context-help bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​ChipSelector/​OkFvChipSelector.razor.cs Defines chip-selector parameters and callback.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​ChipSelector/​OkFvChipSelector.razor Renders chip-selector bindings.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Card/​OkFvCard.razor.cs Defines card parameters and content fragments.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​Card/​OkFvCard.razor Renders card bindings and named slots.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​BulkEditField/​OkFvBulkEditField.razor.cs Defines bulk-edit parameters and callbacks.
packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​BulkEditField/​OkFvBulkEditField.razor Renders bulk-edit bindings.
packages/​blazor-workspace/​OkBlazor/​README.md Documents object bindings and mask references.
packages/​angular-workspace/​ok-angular/​README.md Documents FV form support.
packages/​angular-workspace/​ok-angular/​package.json Declares the Angular forms peer dependency.
packages/​angular-workspace/​ok-angular/​fv/​toolbar/​public-api.ts Exports toolbar bindings.
packages/​angular-workspace/​ok-angular/​fv/​toolbar/​ok-fv-toolbar.module.ts Packages the toolbar directive.
packages/​angular-workspace/​ok-angular/​fv/​toolbar/​ok-fv-toolbar.directive.ts Adds toolbar property binding.
packages/​angular-workspace/​ok-angular/​fv/​toolbar/​ng-package.json Configures the toolbar entry point.
packages/​angular-workspace/​ok-angular/​fv/​text-field/​public-api.ts Exports text-field bindings and form support.
packages/​angular-workspace/​ok-angular/​fv/​text-field/​ok-fv-text-field.module.ts Packages text-field directives.
packages/​angular-workspace/​ok-angular/​fv/​text-field/​ok-fv-text-field.directive.ts Adds text-field property bindings.
packages/​angular-workspace/​ok-angular/​fv/​text-field/​ok-fv-text-field-value-accessor.directive.ts Adds text-field form integration.
packages/​angular-workspace/​ok-angular/​fv/​text-field/​ng-package.json Configures the text-field entry point.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​tests/​ok-fv-form-controls.spec.ts Tests FV form synchronization and state.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​public-api.ts Exports multi-select bindings and form support.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​ok-fv-multi-select.module.ts Packages multi-select directives.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​ok-fv-multi-select.directive.ts Adds multi-select properties and filtered events.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​ok-fv-multi-select-value-accessor.directive.ts Adds array-valued form integration.
packages/​angular-workspace/​ok-angular/​fv/​multi-select/​ng-package.json Configures the multi-select entry point.
packages/​angular-workspace/​ok-angular/​fv/​filter-bar/​public-api.ts Exports filter-bar bindings.
packages/​angular-workspace/​ok-angular/​fv/​filter-bar/​ok-fv-filter-bar.module.ts Packages the filter-bar directive.
packages/​angular-workspace/​ok-angular/​fv/​filter-bar/​ok-fv-filter-bar.directive.ts Adds filter properties and event outputs.
packages/​angular-workspace/​ok-angular/​fv/​filter-bar/​ng-package.json Configures the filter-bar entry point.
packages/​angular-workspace/​ok-angular/​fv/​date-time-picker/​public-api.ts Exports picker bindings and form support.
packages/​angular-workspace/​ok-angular/​fv/​date-time-picker/​ok-fv-date-time-picker.module.ts Packages picker directives.
packages/​angular-workspace/​ok-angular/​fv/​date-time-picker/​ok-fv-date-time-picker.directive.ts Adds picker properties and event outputs.
packages/​angular-workspace/​ok-angular/​fv/​date-time-picker/​ok-fv-date-time-picker-value-accessor.directive.ts Adds picker form integration.
packages/​angular-workspace/​ok-angular/​fv/​date-time-picker/​ng-package.json Configures the picker entry point.
package-lock.json Records the Angular forms peer dependency.
change/​@ni-ok-react-2cac8e0f-ea70-448d-a75f-9a536a1832f2.json Records the React minor release.
change/​@ni-ok-blazor-59f5b931-9f18-4c70-9103-f37bf7299663.json Records the Blazor minor release.
change/​@ni-ok-angular-8812a4c9-280a-4dc0-99ff-9e1c7550c348.json Records the Angular minor release.

Review effort: Balanced

Avoid duplicate Angular form updates, format splitter values invariantly, and keep Blazor input values synchronized with parent updates.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Medium severity Preserve custom event detail types in Angular outputs

packages/​angular-workspace/​ok-angular/​fv/​filter-bar/​ok-fv-filter-bar.directive.ts:56

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.

Medium severity Add two-way Value binding support to text and date-time pickers

packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​TextField/​OkFvTextField.razor.cs:36

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.

Medium severity Type component event targets instead of plain Event

packages/​react-workspace/​ok-react/​src/​fv/​multi-select/​index.ts:14

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.

3 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

1 open issue
2 previously missed issues

In code that hasn't changed since last review

Medium severity Preserve multi-select keyboard position across binding updates

packages/​blazor-workspace/​OkBlazor/​Source/​Fv/​MultiSelect/​OkFvMultiSelect.razor.cs:29

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.

Medium severity Filter bubbled pane events before forwarding layout callbacks

packages/​react-workspace/​ok-react/​src/​fv/​split-layout/​index.ts:11

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.

Review effort: Balanced

fredvisser and others added 5 commits November 16, 2026 20:04
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>
…v-components' into agents/add-missing-wrappers-ok-fv-components
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 fredvisser changed the title ok: Add FV framework wrappers ok: Add missing Angular and React FV wrappers Dec 2, 2026
@fredvisser
fredvisser requested a balanced review from Copilot December 2, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved wrapper defects can corrupt React split positions, make Angular directive reads return undefined, and reject supported Angular bindings during template checking.

9 open issues
1 resolved since last review

Review effort: Balanced

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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

No open issues 🎉

9 resolved since last review

Review effort: Balanced

fredvisser and others added 2 commits December 3, 2026 09:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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>
@fredvisser
fredvisser requested a balanced review from Copilot December 3, 2026 16:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

1 open issue

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Angular and React wrappers and opt-in Angular forms support.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@fredvisser
fredvisser marked this pull request as ready for review December 3, 2026 22:23
@fredvisser
fredvisser requested a review from jattasNI as a code owner December 3, 2026 22:23

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants