{"id":19772193,"url":"https://github.com/recordevolution/widget-table","last_synced_at":"2026-01-18T05:48:48.033Z","repository":{"id":206704552,"uuid":"717407450","full_name":"RecordEvolution/widget-table","owner":"RecordEvolution","description":"Show a table or card display of the data","archived":false,"fork":false,"pushed_at":"2026-01-16T20:35:03.000Z","size":2260,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-17T09:14:17.053Z","etag":null,"topics":["dashboard-widget"],"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-11T12:02:11.000Z","updated_at":"2026-01-16T20:35:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"348dfae6-d3ef-4bf0-8674-95dd82b21fd5","html_url":"https://github.com/RecordEvolution/widget-table","commit_stats":null,"previous_names":["recordevolution/widget-table"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/RecordEvolution/widget-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/widget-table/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fwidget-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dashboard-widget"],"created_at":"2024-11-12T05:05:42.833Z","updated_at":"2026-01-18T05:48:48.027Z","avatar_url":"https://github.com/RecordEvolution.png","language":"TypeScript","readme":"# \\\u003cwidget-table\u003e\n\nA Lit 3.x web component for rendering data tables with sortable columns, powered by Vaadin Grid. Part of the IronFlock widget ecosystem.\n\n![screenshot](thumbnail.png)\n\n## Installation\n\n```bash\nnpm i @record-evolution/widget-table\n```\n\n**Peer Dependencies:** This widget requires `@vaadin/grid` to be installed in your application.\n\n## Usage\n\n```html\n\u003cscript type=\"module\"\u003e\n    import '@record-evolution/widget-table'\n\u003c/script\u003e\n\n\u003cwidget-table-1.2.0\u003e\u003c/widget-table-1.2.0\u003e\n```\n\n```javascript\nconst table = document.querySelector('widget-table-1.2.0')\ntable.inputData = {\n    title: 'Device Status',\n    subTitle: 'Current readings',\n    columns: [\n        {\n            header: 'Device',\n            type: 'string',\n            values: [{ value: 'Sensor A' }, { value: 'Sensor B' }]\n        },\n        {\n            header: 'Status',\n            type: 'state',\n            values: [{ value: 'ONLINE' }, { value: 'OFFLINE' }],\n            styling: { stateMap: \"'ONLINE': 'green', 'OFFLINE': 'red'\" }\n        },\n        {\n            header: 'Temperature',\n            type: 'number',\n            values: [{ value: '23.456' }, { value: '18.912' }],\n            styling: { precision: 1 }\n        }\n    ]\n}\n```\n\n## InputData Interface\n\n```ts\ninterface InputData {\n    title?: string\n    subTitle?: string\n    horizontalOverflow?: boolean\n    styling?: {\n        headerFontSize?: string // e.g. '14px'\n        cellPaddingHorizontal?: string // e.g. '16px' or '1rem'\n        cellPaddingVertical?: string // e.g. '8px' or '1rem'\n    }\n    columns?: Column[]\n}\n\ninterface Column {\n    header: string\n    type: 'string' | 'number' | 'boolean' | 'state' | 'button' | 'image'\n    values: { value: string; link?: string }[]\n    styling?: {\n        precision?: number // Decimal places for number type\n        stateMap?: string // e.g. \"'ONLINE': 'green', 'OFFLINE': 'red'\"\n        width?: string // Column width e.g. '150px'\n        fontSize?: string\n        fontWeight?: string // e.g. '800' for bold\n        color?: string // Font color\n        border?: string // e.g. '1px solid red'\n    }\n}\n```\n\n## Column Types\n\n| Type      | Description                                         |\n| --------- | --------------------------------------------------- |\n| `string`  | Plain text display                                  |\n| `number`  | Numeric value with optional precision formatting    |\n| `boolean` | Boolean display                                     |\n| `state`   | Status indicator with colored dot based on stateMap |\n| `button`  | Clickable button with optional link                 |\n| `image`   | Image display with optional link                    |\n\n## Features\n\n- **Sortable columns**: Click headers to sort ascending/descending\n- **Resizable columns**: Drag column borders to resize\n- **Horizontal overflow**: Enable scrolling for wide tables\n- **Theme support**: Integrates with IronFlock theming system\n- **State indicators**: Visual status dots with customizable color mapping\n\n## Theming\n\nThe widget respects CSS custom properties:\n\n- `--re-text-color`: Text color override\n- `--re-tile-background-color`: Background color override\n\nPass a theme object for ECharts-style theming:\n\n```javascript\ntable.theme = {\n    theme_name: 'dark',\n    theme_object: {\n        /* theme config */\n    }\n}\n```\n\n## Development\n\n```bash\nnpm run start    # Dev server at localhost:8000/demo/\nnpm run build    # Production build to dist/\nnpm run types    # Regenerate types from schema\nnpm run release  # Build, bump version, git push \u0026 tag\n```\n\n## Local Demo\n\n```bash\nnpm start\n```\n\nServes the demo at `demo/index.html` with sample data.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fwidget-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fwidget-table/lists"}