{"id":29549605,"url":"https://github.com/recordevolution/widget-form","last_synced_at":"2026-04-02T17:57:06.193Z","repository":{"id":301515562,"uuid":"1007164113","full_name":"RecordEvolution/widget-form","owner":"RecordEvolution","description":"Widget for data entry in IronFlock dashboards","archived":false,"fork":false,"pushed_at":"2025-07-10T14:33:48.000Z","size":411,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T19:59:27.891Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RecordEvolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T14:59:40.000Z","updated_at":"2025-07-10T14:33:50.000Z","dependencies_parsed_at":"2025-07-10T19:59:32.597Z","dependency_job_id":"8d6a1aed-bebe-4e29-95ef-5c90c99bad2b","html_url":"https://github.com/RecordEvolution/widget-form","commit_stats":null,"previous_names":["recordevolution/widget-tableedit","recordevolution/widget-form"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/RecordEvolution/widget-form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/widget-form/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-form/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265685524,"owners_count":23811191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-18T00:33:47.093Z","updated_at":"2026-04-02T17:57:06.183Z","avatar_url":"https://github.com/RecordEvolution.png","language":"TypeScript","readme":"# widget-form\n\nA Lit 3.x web component for creating dynamic forms with configurable fields. Part of the IronFlock widget ecosystem.\n\n![screenshot](thumbnail.png)\n\n## Installation\n\n```bash\nnpm i @record-evolution/widget-form\n```\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\n    import '@record-evolution/widget-form'\n\u003c/script\u003e\n\n\u003cwidget-form-1.0.9\u003e\u003c/widget-form-1.0.9\u003e\n```\n\n\u003e **Note:** The version number is part of the custom element tag name.\n\n## Properties\n\n| Property    | Type        | Description                   |\n| ----------- | ----------- | ----------------------------- |\n| `inputData` | `InputData` | Form configuration and fields |\n| `theme`     | `Theme`     | Theme object for styling      |\n\n## Events\n\n| Event         | Detail                        | Description                      |\n| ------------- | ----------------------------- | -------------------------------- |\n| `data-submit` | Array of field/value mappings | Fired when the form is submitted |\n\n## Configuration\n\nThe form is configured via the `inputData` property:\n\n```ts\ninterface InputData {\n    title?: string\n    subTitle?: string\n    formButton?: boolean // Show button to open form dialog\n    formFields?: FormField[]\n}\n```\n\n### Field Types\n\nEach form field supports the following types:\n\n| Type          | Description                    |\n| ------------- | ------------------------------ |\n| `textfield`   | Single-line text input         |\n| `numberfield` | Numeric input with min/max     |\n| `checkbox`    | Boolean checkbox               |\n| `textarea`    | Multi-line text input          |\n| `dropdown`    | Select from predefined options |\n| `datetime`    | Date/time picker               |\n\n### Field Configuration\n\n```ts\ninterface FormField {\n    label: string\n    type: 'dropdown' | 'textfield' | 'numberfield' | 'checkbox' | 'textarea' | 'datetime'\n    hiddenField?: boolean // Hide field but still submit value\n    required?: boolean // Field must be filled\n    description?: string // Hint text shown below field\n    targetColumn?: TargetColumn // Database column mapping\n    defaultValue?: string\n    min?: number // For numberfield\n    max?: number // For numberfield\n    validation?: string // Regex for textfield\n    values?: DropdownValue[] // For dropdown type\n}\n```\n\n## Development\n\n```bash\n# Start dev server\nnpm run start\n\n# Build for production\nnpm run build\n\n# Generate types from schema\nnpm run types\n\n# Build, bump version, and publish\nnpm run release\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fwidget-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-form/lists"}