{"id":22814574,"url":"https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list","last_synced_at":"2025-03-30T22:17:05.343Z","repository":{"id":64102691,"uuid":"573026816","full_name":"kit-data-manager/webcomponent_typed-pid-maker_pid-list","owner":"kit-data-manager","description":"A list view, showing known PIDs of a Typed PID Maker instance.","archived":false,"fork":false,"pushed_at":"2023-12-01T06:28:37.000Z","size":140,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-06T08:12:02.885Z","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/kit-data-manager.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}},"created_at":"2022-12-01T14:42:42.000Z","updated_at":"2022-12-01T16:58:20.000Z","dependencies_parsed_at":"2025-02-06T03:01:27.444Z","dependency_job_id":null,"html_url":"https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kit-data-manager","download_url":"https://codeload.github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246385415,"owners_count":20768672,"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":"2024-12-12T13:09:20.225Z","updated_at":"2025-03-30T22:17:05.323Z","avatar_url":"https://github.com/kit-data-manager.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webcomponent_typed-pid-maker_pid-list\n\n[![Build](https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list/actions/workflows/build.yml/badge.svg)](https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list/actions/workflows/build.yml) [![Node.js Package](https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/kit-data-manager/webcomponent_typed-pid-maker_pid-list/actions/workflows/npm-publish.yml) [![](https://data.jsdelivr.com/v1/package/npm/@kit-data-manager/webcomponent_typed-pid-maker_pid-list/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@kit-data-manager/webcomponent_typed-pid-maker_pid-list)\n\nThis is a webcomponent to use in HTML or more complex web projects.\n\n- [NPMjs project page](https://www.npmjs.com/package/@kit-data-manager/webcomponent_typed-pid-maker_pid-list)\n\n## Integration\n\nIf the dependency is up set properly (instructions will follow), the component can be used like this:\n\n```html\n\u003chead\u003e\n    ...\n    \u003c!-- add the code !--\u003e\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/@kit-data-manager/webcomponent_typed-pid-maker_pid-list@latest/dist/typid-known-pids-table.umd.js\"\u003e\u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- use the component !--\u003e\n    \u003ctypid-known-pids-table base-url=\"http://localhost:8090/\"\u003e\n\u003c/body\u003e\n```\n\n## Attributes\n\n- `base-url`: string, base-url to your Typed PID Maker instance\n- `onrowclick`: string or function([UIEvent](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent), [RowComponent](https://tabulator.info/docs/5.4/components#component-row)) (optional)\n\n    As described, above, it can either be a function, or a string with instructions. The latter option makes it similar to [onclick](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/onclick). The function gets the event and the row as a parameter, which means you can access the row data. Here are two examples:\n\n    ```html\n    \u003c!-- as instruction string !--\u003e\n    \u003ctypid-known-pids-table\n        base-url=\"http://localhost:8090/\"\n        onrowclick=\"console.log('catched event!')\"\u003e\n    ```\n\n    ```html\n    \u003c!-- as a function, accessing row data !--\u003e\n    \u003ctypid-known-pids-table\n        base-url=\"http://localhost:8090/\"\n        onrowclick=\"(function() { console.log('hello world') })()\"\u003e\n    ```\n\n    In the second example, the function is still represented as a string. This means the function needs to call itself, which is why the `()` operator is needed in the end. From Javascript, you may directly assign a function like in the following example:\n\n    ```javascript\n    var component = document.getElementsByTagName(\"typid-known-pids-table\")[0]\n    component.onRowClick = function(event, row) {\n        console.log(event)\n        console.log(row.getData().pid)\n    }\n    ```\n\n    Its default value is the following function, which will open a PID in a public instance of the FAIRDOscope:\n\n    ```typescript\n    (_event, row) =\u003e {\n        window.open(\n        'https://kit-data-manager.github.io/fairdoscope/?pid=' + row.getData().pid,\n        '_blank'\n        )\n    }\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkit-data-manager%2Fwebcomponent_typed-pid-maker_pid-list/lists"}