{"id":21194727,"url":"https://github.com/advanced-rest-client/api-property-form-item","last_synced_at":"2025-06-14T16:05:59.521Z","repository":{"id":30234798,"uuid":"124346632","full_name":"advanced-rest-client/api-property-form-item","owner":"advanced-rest-client","description":"⛔️ DEPRECATED This component is being deprecated. Use `api-request` instead.","archived":false,"fork":false,"pushed_at":"2023-01-07T08:43:51.000Z","size":1026,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":3,"default_branch":"stage","last_synced_at":"2025-04-21T08:04:52.564Z","etag":null,"topics":["deprecated","obsolete"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/advanced-rest-client.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-08T06:22:56.000Z","updated_at":"2021-09-30T17:12:47.000Z","dependencies_parsed_at":"2023-01-14T16:35:51.597Z","dependency_job_id":null,"html_url":"https://github.com/advanced-rest-client/api-property-form-item","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/advanced-rest-client/api-property-form-item","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-rest-client%2Fapi-property-form-item","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-rest-client%2Fapi-property-form-item/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-rest-client%2Fapi-property-form-item/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-rest-client%2Fapi-property-form-item/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/advanced-rest-client","download_url":"https://codeload.github.com/advanced-rest-client/api-property-form-item/tar.gz/refs/heads/stage","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-rest-client%2Fapi-property-form-item/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259843327,"owners_count":22920311,"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":["deprecated","obsolete"],"created_at":"2024-11-20T19:24:07.497Z","updated_at":"2025-06-14T16:05:59.471Z","avatar_url":"https://github.com/advanced-rest-client.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@api-components/api-property-form-item.svg)](https://www.npmjs.com/package/@api-components/api-property-form-item)\n\n[![Build Status](https://travis-ci.org/advanced-rest-client/api-property-form-item.svg?branch=stage)](https://travis-ci.org/advanced-rest-client/api-property-form-item)\n\n## \u0026lt;api-property-form-item\u0026gt;\n\nAn input to use with forms to render inputs based in ARC view-model\n\n```html\n\u003capi-property-form-item model='{\"schema\":{\"inputLabel\": \"Enter number value\", \"inputType\": \"number\", \"minimum\": 1, \"maximum\": 100}}' name=\"numericModel\" value=\"1\"\u003e\u003c/api-property-form-item\u003e\n```\n\n## Deprecation notice\n\nThis element is moved to `api-forms` repository and `@api-components/api-forms` package. This element will be deprecated and archived once the migration finish.\n\n## Usage\n\n### Installation\n\n```sh\nnpm install --save @api-components/api-property-form-item\n```\n\n### In an html file\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\"\u003e\n      import '@api-components/api-property-form-item/api-property-form-item.js';\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003capi-property-form-item name=\"numericModel\" value=\"1\"\u003e\u003c/api-property-form-item\u003e\n    \u003cscript\u003e\n    {\n      document.querySelector('api-property-form-item').model = {\n        schema: {\n          inputLabel: 'Enter number value',\n          inputType: 'number',\n          minimum: 1,\n          maximum: 100\n        }\n      };\n    }\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n### In a LitElement\n\n```js\nimport { LitElement, html } from 'lit-element';\nimport '@api-components/api-property-form-item/api-property-form-item.js';\n\nclass SampleElement extends PolymerElement {\n  render() {\n    return html`\n    \u003capi-property-form-item\n      name=\"numericModel\"\n      value=\"1\"\n      .model=\"${this.inputModel}\"\n      @changed=\"${this._handleHande}\"\u003e\u003c/api-property-form-item\u003e\n    `;\n  }\n\n  _handleHande(e) {\n    this.inputValue = e.target.value;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n### Base styles\n\nThe element provides 3 basic styling options:\n\n-   Filled - Material design filled style, default style\n-   Outlined - Material design outlined style, use `outlined` property\n-   Legacy - Anypoint style, use `legacy` property\n\n```html\n\u003capi-property-form-item outlined\u003e\u003c/api-property-form-item\u003e\n\u003capi-property-form-item legacy\u003e\u003c/api-property-form-item\u003e\n```\n\n## Running the demo locally\n\n```sh\nnpm start\n```\n\n## Running the tests\n\n```sh\nnpm test\n```\n\n## API components\n\nThis components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvanced-rest-client%2Fapi-property-form-item","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvanced-rest-client%2Fapi-property-form-item","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvanced-rest-client%2Fapi-property-form-item/lists"}