Files
metabuilder/packages/form_builder/scripts/functions.json
johndoe6345789 af80a8e761 feat(form_builder): add contact form with validation and submission handling
- Created contact-form.json defining the structure and validation for the contact form.
- Added package.json for form_builder package with dependencies and exports.
- Implemented functions.json for form field handlers and validation functions.
- Configured storybook for form_builder with various form field stories.
- Established style tokens for form fields including colors and spacing.
- Defined validation patterns and functions for form fields in validators.json.

feat(notification_center): introduce notification components and event handling

- Added ui.json for notification components including summary, toast, and list.
- Created schema.json for Notification entity with fields and relations.
- Implemented event handlers for notification events in handlers.json.
- Established package.json for notification_center with components and scripts.
- Developed functions.json for notification management and display functions.
- Configured storybook for notification_center with various notification stories.
- Defined style tokens for notifications including colors and spacing.
2026-01-02 15:34:42 +00:00

130 lines
3.3 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "form_builder",
"description": "Form field handlers and validation functions",
"functions": [
{
"id": "fields_handle_change",
"name": "handleChange",
"exported": true,
"description": "Handle field value change",
"category": "handlers",
"luaScript": "fields.lua"
},
{
"id": "fields_handle_blur",
"name": "handleBlur",
"exported": true,
"description": "Handle field blur event",
"category": "handlers",
"luaScript": "fields.lua"
},
{
"id": "fields_handle_search",
"name": "handleSearch",
"exported": true,
"description": "Handle search input change",
"category": "handlers",
"luaScript": "fields.lua"
},
{
"id": "fields_clear_search",
"name": "clearSearch",
"exported": true,
"description": "Clear search input",
"category": "handlers",
"luaScript": "fields.lua"
},
{
"id": "fields_toggle_password",
"name": "togglePasswordVisibility",
"exported": true,
"description": "Toggle password visibility",
"category": "handlers",
"luaScript": "fields.lua"
},
{
"id": "validate_field",
"name": "validateField",
"exported": true,
"description": "Validate a single form field",
"category": "validation",
"luaScript": "validate.lua"
},
{
"id": "validate_email",
"name": "validateEmail",
"exported": true,
"description": "Validate email address format",
"category": "validation",
"luaScript": "validate.lua"
},
{
"id": "validate_password",
"name": "validatePassword",
"exported": true,
"description": "Validate password strength",
"category": "validation",
"luaScript": "validate.lua"
},
{
"id": "validate_required",
"name": "validateRequired",
"exported": true,
"description": "Check if required field has value",
"category": "validation",
"luaScript": "validate.lua"
},
{
"id": "validate_form",
"name": "validateForm",
"exported": true,
"description": "Validate entire form",
"category": "validation",
"luaScript": "validate.lua"
},
{
"id": "contact_form_handle_submit",
"name": "handleSubmit",
"exported": true,
"description": "Handle contact form submission",
"category": "forms",
"luaScript": "contact_form.lua"
},
{
"id": "contact_form_validate",
"name": "validate",
"exported": true,
"description": "Validate contact form",
"category": "forms",
"luaScript": "contact_form.lua"
},
{
"id": "contact_form_create_state",
"name": "createInitialState",
"exported": true,
"description": "Create initial form state",
"category": "forms",
"luaScript": "contact_form.lua"
}
],
"exports": {
"functions": [
"handleChange",
"handleBlur",
"handleSearch",
"clearSearch",
"togglePasswordVisibility",
"validateField",
"validateEmail",
"validatePassword",
"validateRequired",
"validateForm",
"handleSubmit",
"validate",
"createInitialState"
]
}
}