feat(flex-fields): add Matrix and Table built-in field types - #231
Merged
Conversation
Ports Matrix (polymorphic block repeater) and Table (homogeneous grid) from Dignite.Site's Dignite.FlexFields.Site into the kernel as built-ins, alongside Text/Number/DateTime/Select/Boolean/Tree, with the wire format unchanged so fields already stored under the Site implementation keep working. Adds the shared composite-type contracts (ICompositeFieldType, INormalizesValue, InlineFieldDefinition, CompositeFieldNesting) to Abstractions, SSR views to .Web, and matching ff-matrix-*/ff-table-* components to @dignite/ng.flex-fields (FieldTypeDefinition gains a composite flag). The demo seeds both types, normalizes composite values on save, and rejects over-deep nesting. Also widens the demo's field designer modal and cleans up the Matrix/Table control styling (item spacing, icon-only remove/add buttons, no redundant per-cell label in Table since the column header already names it).
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.
Summary
Dignite.FlexFields.Siteintoflex-fieldsas built-in field types, alongside Text/Number/DateTime/Select/Boolean/Tree — wire format unchanged, so fields already stored under the Site implementation keep working.ICompositeFieldType,INormalizesValue,InlineFieldDefinition,CompositeFieldNesting) toDignite.Abp.FlexFields.Abstractions, SSR views to.Web, and matchingff-matrix-*/ff-table-*components to@dignite/ng.flex-fields(FieldTypeDefinitiongains acompositeflag).Test plan
dotnet build Dignite.Abp.FlexFields.slnx— 0 errorsdotnet test Dignite.Abp.FlexFields.slnx— 302 passed (Tests 127, Web.Tests 20, EF.Tests 83, MongoDB.Tests 72)yarn lint --max-warnings=0— all four Angular projects passyarn test --watch=false— 296 tests passedyarn build:lib,build:lib:file-explorer,build:lib:ckeditor,build:prod— all succeed