{"id":19760091,"url":"https://github.com/singleware/ui-field","last_synced_at":"2025-12-31T01:13:04.233Z","repository":{"id":57160483,"uuid":"142795215","full_name":"Singleware/ui-field","owner":"Singleware","description":"UI field package.","archived":false,"fork":false,"pushed_at":"2020-05-03T15:57:36.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T23:18:04.047Z","etag":null,"topics":["browser","field","javascript","shadow-dom","singleware","typescript","user-interface","web-component"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Singleware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-29T21:00:29.000Z","updated_at":"2020-05-03T15:57:38.000Z","dependencies_parsed_at":"2022-09-09T07:00:56.003Z","dependency_job_id":null,"html_url":"https://github.com/Singleware/ui-field","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Singleware","download_url":"https://codeload.github.com/Singleware/ui-field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241090527,"owners_count":19907971,"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":["browser","field","javascript","shadow-dom","singleware","typescript","user-interface","web-component"],"created_at":"2024-11-12T03:35:16.716Z","updated_at":"2025-12-31T01:13:04.201Z","avatar_url":"https://github.com/Singleware.png","language":"JavaScript","readme":"# UI-Field\n\nCustom HTML element used to mirror field properties into the first element in its center slot, also provides the common field structures with label, prepend and append slots.\n\n### State Attributes\n\n| Name    | Description                                                    |\n| ------- | -------------------------------------------------------------- |\n| empty   | Automatically assigned when the center slot element is empty   |\n| checked | Automatically assigned when the center slot element is checked |\n| invalid | Automatically assigned when the center slot element is invalid |\n\n### Mirrored Properties\n\n| Name           | Description                                                       |\n| -------------- | ----------------------------------------------------------------- |\n| empty          | Get the `empty` state from the center slot element                |\n| type           | Get and set the element `type` in the center slot                 |\n| name           | Get and set the element `name` in the center slot                 |\n| value          | Get and set the element `value` in the center slot                |\n| checked        | Get and set the `checked` state in the center slot element        |\n| defaultValue   | Get and set the `defaultValue` in the center slot element         |\n| defaultChecked | Get and set the `defaultChecked` state in the center slot element |\n| required       | Get and set the `required` state in the center slot element       |\n| readOnly       | Get and set the `readOnly` state in the center slot element       |\n| disabled       | Get and set the `disabled` state in the center slot element       |\n\n### Properties\n\n| Name        | Description                                                     |\n| ----------- | --------------------------------------------------------------- |\n| label       | Get and set the field label                                     |\n| orientation | Get and set the field orientation. Use: `row` or `column` value |\n\n### Methods\n\n| Name              | Description                                                               |\n| ----------------- | ------------------------------------------------------------------------- |\n| focus             | Move the focus to the center slot element                                 |\n| reset             | Reset the current value from the center slot element to its default value |\n| checkValidity     | Get the validity of the center slot element                               |\n| setCustomValidity | Set a custom validity in the center slot element                          |\n\n### Slots\n\n| Name    | Description                                                              |\n| ------- | ------------------------------------------------------------------------ |\n| label   | Element to shows the field label                                         |\n| prepend | Element to show things before the center slot, like: icons, buttons, etc |\n| center  | Element to show the field target, like: inputs, selects, etc             |\n| append  | Element to show things after the center slot, like: icons, buttons, etc  |\n\n### Events\n\n| Name   | Description                          |\n| ------ | ------------------------------------ |\n| change | Dispatched when the field is changed |\n\n## Install\n\nUsing npm:\n\n```sh\nnpm i @singleware/ui-field\n```\n\n## License\n\n[MIT \u0026copy; Silas B. Domingos](https://balmante.eti.br)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fui-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingleware%2Fui-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fui-field/lists"}