npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@penta-b/customfield-smartform-gridfield

v1.0.1

Published

Grid custom field for Penta-b Editing Plugin smart forms: renders a repeatable-row grid backed by nested form-designer fields and syncs its rows into the form data under the field's mnaKey.

Readme

Grid Custom Field

A Penta-b MNA smart-forms custom field (gridfield) for Editing Plugin forms. It renders a repeatable-row grid whose columns are the nested form-designer fields configured for the field (text, dropdown, date, etc.), with built-in sorting, filtering, and pagination, and saves each row's data into the form data under the field's mnaKey.

Designer configuration

The field type is registered as gridfield (component name customGrid). Its schema is built from getFormDesignerFieldsWithConfig(), so any field type available in the form designer can be placed as a column inside a grid row.

| Setting | Meaning | | --- | --- | | mnaKey | Key the grid's row data is saved under. | | nested fields | The fields placed inside the grid definition become the grid's columns; each row is one instance of that nested field set. | | fieldValidationsTypes | gridValidate, maxGridRows, minGridRows — row-count and per-row validation. |

Fields listed in an internal exclusion list (richTextArea, attachment, multiattachment, rating, colorpicker, wizard, grid, tabs, accordion, disclaimer, apidisclaimer) are skipped for column filtering/sorting since they don't have a sensible scalar representation.

Saved value shape

initialData (or the existing data[mnaKey]) is parsed as JSON and stored as an array of row objects, one per grid row, keyed by each column's own mnaKey.

Installing as an npm package

The package ships the prebuilt UMD bundle (dist/build/customField-smartForm-gridField.js) as its entry point. Importing it registers the field with the smart-forms loader as a side effect:

import "@penta-b/customfield-smartform-gridfield";

react, react-dom, redux, react-redux, @penta-b/ma-lib and @penta-b/mna-penta-smart-forms are peer dependencies — the host application must provide them (they are marked as webpack externals and are not bundled).

To test locally without publishing:

npm run plugin:prod
npm pack                                            # produces penta-b-customfield-smartform-gridfield-1.0.0.tgz
npm install ../customfield-smartform-gridfield-1.0.0.tgz   # from the consuming app

To publish (runs the build automatically via prepublishOnly):

npm publish

Development

  • npm run plugin:dev — development build.
  • npm run plugin:devServer — dev server (webpack-dev-server).
  • npm run plugin:prod — UMD bundle to dist/build/customField-smartForm-gridField.js.
  • npm run storybook — Storybook on port 6006.