# @dbp-toolkit/person-profile

> You can install this component via npm:

Latest version **0.2.6** (published 2023-03-03) · LGPL-2.1-or-later license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @dbp-toolkit/person-profile
pnpm add @dbp-toolkit/person-profile
yarn add @dbp-toolkit/person-profile
bun add @dbp-toolkit/person-profile
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2023-03-03 |
| First published | 2020-12-21 |
| Weekly downloads | 0 |
| License | LGPL-2.1-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | lazka, pbek, dbp-deploy |

## Links

- npm: https://www.npmjs.com/package/@dbp-toolkit/person-profile
- Repository: https://github.com/digital-blueprint/toolkit
- Homepage: https://github.com/digital-blueprint/toolkit/tree/main/packages/person-profile
- Issues: https://github.com/digital-blueprint/toolkit/issues
- npm.io page: https://npm.io/package/@dbp-toolkit/person-profile

## Dependencies (6)

- [lit](https://npm.io/package/lit.md) ^2.0.0
- [jquery](https://npm.io/package/jquery.md) ^3.4.1
- [@dbp-toolkit/auth](https://npm.io/package/@dbp-toolkit/auth.md) ^0.3.2
- [@dbp-toolkit/common](https://npm.io/package/@dbp-toolkit/common.md) ^0.3.5
- [@open-wc/scoped-elements](https://npm.io/package/@open-wc/scoped-elements.md) ^2.1.0
- [@dbp-toolkit/person-select](https://npm.io/package/@dbp-toolkit/person-select.md) ^0.3.2

## Recent versions

- 0.2.6 (latest) — 2023-03-03
- 0.2.5 — 2022-06-23
- 0.2.4 — 2022-04-05
- 0.2.3 — 2021-06-16
- 0.2.2 — 2021-02-22
- 0.2.1 — 2021-02-17
- 0.2.0 — 2021-02-10
- 0.1.3 — 2021-01-27
- 0.1.2 — 2021-01-26
- 0.1.1 — 2020-12-22
- 0.1.0 — 2020-12-21

## README

# Person Profile Web Component

You can install this component via npm:

```bash
npm i @dbp-toolkit/person-profile
```

## Usage

```html
<dbp-person-profile></dbp-person-profile>
<script type="module" src="node_modules/@dbp-toolkit/person-profile/dist/dbp-person-profile.js"></script>
```

Or directly via CDN:

```html
<dbp-person-profile></dbp-person-profile>
<script type="module" src="https://unpkg.com/@dbp-toolkit/person-profile@0.2.2/dist/dbp-person-profile.js"></script>
```

## Attributes

- `lang` (optional, default: `de`): set to `de` or `en` for German or English
    - example `<dbp-person-profile lang="de"></dbp-person-profile>`
- `entry-point-url` (optional, default is the TU Graz entry point url): entry point url to access the api
    - example `<dbp-person-profile entry-point-url="http://127.0.0.1:8000"></dbp-person-profile>`
- `value` (optional): api path of person to preload the selector with
    - example `<dbp-person-profile value="/base/people/testuser"></dbp-person-profile>`
- `auth` object: you need to set that object property for the auth token
    - example auth property: `{token: "THE_BEARER_TOKEN"}`
    - note: most often this should be an attribute that is not set directly, but subscribed at a provider

## Local development

```bash
# get the source
git clone git@github.com:digital-blueprint/toolkit.git
cd toolkit/packages/person-profile

# install dependencies
yarn install

# constantly build dist/bundle.js and run a local web-server on port 8002 
yarn run watch

# run tests
yarn test

# build local packages in dist directory
yarn run build
```

Jump to <http://localhost:8002> and you should get a Single Sign On login page.

---
_Source: https://npm.io/package/@dbp-toolkit/person-profile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
