Skip to content

fix(*): add mustCoerceToInt to relevant props - 21.1.x#17191

Open
IMinchev64 wants to merge 2 commits into21.1.xfrom
iminchev/add-coerceToInt-to-props-21.1.x
Open

fix(*): add mustCoerceToInt to relevant props - 21.1.x#17191
IMinchev64 wants to merge 2 commits into21.1.xfrom
iminchev/add-coerceToInt-to-props-21.1.x

Conversation

@IMinchev64
Copy link
Copy Markdown
Contributor

Attribute is needed so the metadata descriptions which are used by Blazor can be updated which would resolve the enum values as numbers instead of strings.

Related to: https://infragistics.visualstudio.com/Indigo_Platform/_workitems/edit/34678

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

Copilot AI review requested due to automatic review settings April 16, 2026 11:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Blazor-facing metadata hints (/* mustCoerceToInt */) to selected enum-typed properties so generated metadata resolves enum values as numbers (instead of strings) for Blazor consumption.

Changes:

  • Annotate IDimensionsChange.dimensionCollectionType (pivot grid) for numeric enum coercion in metadata.
  • Annotate IPinningConfig.columns/rows (grid pinning) for numeric enum coercion in metadata.
  • Annotate PositionSettings alignment properties and filtering tree enum properties for numeric enum coercion in metadata.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
projects/igniteui-angular/grids/core/src/pivot-grid.interface.ts Adds mustCoerceToInt to the pivot dimension-collection type in IDimensionsChange.
projects/igniteui-angular/grids/core/src/common/grid.interface.ts Adds mustCoerceToInt to pinning config enum properties (columns, rows).
projects/igniteui-angular/core/src/services/overlay/utilities.ts Adds mustCoerceToInt to overlay positioning alignment enum properties in PositionSettings.
projects/igniteui-angular/core/src/data-operations/filtering-expressions-tree.ts Adds mustCoerceToInt to filtering tree enum properties (operator, type).

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants