{"id":15099451,"url":"https://github.com/marksolutions/mark-autocomplete","last_synced_at":"2026-03-03T06:36:11.834Z","repository":{"id":216160053,"uuid":"740554696","full_name":"marksolutions/mark-autocomplete","owner":"marksolutions","description":"Auto Complete web component using Lit","archived":false,"fork":false,"pushed_at":"2024-07-02T12:24:05.000Z","size":244,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-08T19:20:23.038Z","etag":null,"topics":["autocomplete","lit","lit-element","lit-html","web-component"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marksolutions.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-08T15:27:48.000Z","updated_at":"2024-07-02T12:23:44.000Z","dependencies_parsed_at":"2024-01-08T19:14:57.394Z","dependency_job_id":"5cd5fc75-787c-422c-9ad6-8ea709edf91a","html_url":"https://github.com/marksolutions/mark-autocomplete","commit_stats":null,"previous_names":["marksolutions/mark-autocomplete"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/marksolutions/mark-autocomplete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-autocomplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-autocomplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-autocomplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-autocomplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marksolutions","download_url":"https://codeload.github.com/marksolutions/mark-autocomplete/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marksolutions%2Fmark-autocomplete/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30034107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:09:21.518Z","status":"ssl_error","status_checked_at":"2026-03-03T06:08:47.858Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["autocomplete","lit","lit-element","lit-html","web-component"],"created_at":"2024-09-25T17:21:21.393Z","updated_at":"2026-03-03T06:36:11.818Z","avatar_url":"https://github.com/marksolutions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `\u003cmark-autocomplete\u003e` [![Published on npm](https://img.shields.io/npm/v/@markai/mark-autocomplete.svg)](https://www.npmjs.com/package/@markai/mark-autocomplete)\n\nThe `mark-autocomplete` web component provides a customizable autocomplete input field with suggestions.\n\n## Installation\n\nTo use `mark-autocomplete` in your project, you can install it via npm:\n\n```bash\nnpm i @markai/mark-autocomplete\n```\n\n## Usage\n\nImport the component in your JavaScript/TypeScript file:\n\n```javascript\nimport '@markai/mark-autocomplete';\n```\n\nThen, you can use it in your HTML:\n\n```html\n\u003cmark-autocomplete\u003e\u003c/mark-autocomplete\u003e\n```\n\n## API\n\n### Properties/Attributes\n\n| Name               | Type                   | Default     | Description                                                                                                                                  |\n| ------------------ | ---------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| `value`            | `string`               | `''`        | Contains the current value of the input field.                                                                                               |\n| `valueExpression`  | `string`               | `undefined` | Property of the local data source to use as the value property.                                                                              |\n| `items`            | `T[]`                  | `[]`        | List of selectable items.                                                                                                                    |\n| `selectedItem`     | `T`                    | `undefined` | An item corresponding to the current value.                                                                                                  |\n| `itemsProvider`    | `Promise\u003cT[]\u003e`         | `undefined` | Function to provide items based on a query string.                                                                                           |\n| `opened`           | `boolean`              | `false`     | Whether the suggestions list is opened or not.                                                                                               |\n| `maxViewableItems` | `number`               | `7`         | Maximum number of suggestions to be displayed without scrolling.                                                                             |\n| `highlightFirst`   | `boolean`              | `false`     | Whether or not it will always highlight the first result each time new suggestions are presented.                                            |\n| `itemTextProvider` | `(item: T) =\u003e string`  | `undefined` | Provides value that represents in list item                                                                                                  |\n| `textExpression`   | `string`               | `undefined` | An expression (dot-separated properties) to be applied on Item, to find it's value. When `itemTextProvider` is specified, this is ignored.   |\n| `renderItem`       | `() =\u003e TemplateResult` | `undefined` | Provides any Block element to represent list items. Integrator listens to the ‘click’ event to know whether the selection is changed or not. |\n\n### Events\n\n| Name     | Description                               |\n| -------- | ----------------------------------------- |\n| `change` | Triggered when the selected item changes. |\n\n### Methods\n\n| Name      | Description                  |\n| --------- | ---------------------------- |\n| `open()`  | Opens the suggestions list.  |\n| `close()` | Closes the suggestions list. |\n\n## License\n\n- This component is provided under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksolutions%2Fmark-autocomplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarksolutions%2Fmark-autocomplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarksolutions%2Fmark-autocomplete/lists"}