# About

## About:

The About Page provides detailed information about the product.

## Usage

The About Page is a part of an overarching concept to fulfil legal guidelines beside of providing additional information about the product (e.g. version).

## Code

The component has 3 modes which can be selected using the `licenseInfo` parameter.

- [`api`](<https://element.siemens.io/components/pages/about/#license-via-api>) (preferred): License texts are lazy loaded separately for each component. Requires a service to provide license data. With the parameter `licenseInfo.icon` you can set a custom license file icon.
- [`text`](<https://element.siemens.io/components/pages/about/#license-text>): Plain text input to dump all license texts
- [`iframe`](<https://element.siemens.io/components/pages/about/#license-iframe>) (avoid): Embedded page to display the licenses from another source.

### Usage

```
import { SiAboutComponent } from '@siemens/element-ng/about';

@Component({
  imports: [SiAboutComponent,...]
})
```

Please use the appropriate input properties for the legal artifact links like `Corporate Information` or `Acceptable Use Policy`. This ensures the same order in all applications.

### License via API

The API variant allows fast and neat navigation through the different license files. By clicking on the subsystems and components, the license details are loaded lazily via API and revealed when loaded.

Just set the `licenseInfo.api` parameter to the API endpoint which provides the license data.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiAboutComponent } from '@siemens/element-ng/about';

@Component({
  selector: 'app-sample',
  imports: [SiAboutComponent],
  templateUrl: './si-about-api.html'
})
export class SampleComponent {}
```

Template:

```html
<si-about
  aboutTitle="About"
  icon="./assets/images/element-logo.svg"
  appName="Application title"
  [licenseInfo]="{ title: 'License', api: 'assets/licenses/licenses.json' }"
  [subheading]="['app version v0.1.2.alpha4']"
  [acceptableUsePolicyLink]="{
    title: 'Acceptable Use Policy',
    href: 'https://www.examples.org/sw-terms/aup'
  }"
  [imprintLink]="{
    title: 'Corporate Information',
    href: 'http://www.examples.org/corporate-information'
  }"
  [privacyLink]="{
    title: 'Privacy Notice',
    href: 'http://www.examples.org/privacy-notice'
  }"
  [cookieNoticeLink]="{
    title: 'Cookie Notice',
    href: 'https://www.examples.org/cookie-notice'
  }"
  [termsLink]="{
    title: 'Terms of Use',
    href: 'http://www.examples.org/terms-of-use'
  }"
  [links]="[
    { title: 'Some other link', href: 'http://www.examples.org' },
    { title: 'More information about stuff', href: 'http://www.examples.org' }
  ]"
  [copyrightDetails]="{
    startYear: 2016,
    lastUpdateYear: 2021
  }"
/>
```

#### License data format

The JSON based API supported by the about dialog is structured into three levels of endpoints:

1. **Endpoint:** `/api/licenses/`
2. **MIME Type**: `application/json`
3. **Description**: Top-level index listing all subsystems
4. **Result**:

   ```
   [
     { "name": "OS", "href": "/api/licenses/os/" },
     { "name": "Dummy", "href": "/api/licenses/Dummy/" }
   ]
   ```
5. **Endpoint:** `/api/licenses/<subsystem>`
6. **MIME Type**: `application/json`
7. **Description**: Subsystem-level index listing all components
8. **Result**:

   ```
   [{ "name": "boost 1.66", "href": "/api/licenses/os/boost_1.66.copyright" }]
   ```
9. **Endpoint:** `/api/licenses/<subsystem>/<component>`
10. **MIME Type**: `text/plain`
11. **Description**: Literal content of the component’s copyright or acknowledgement file
12. **Result**:

    ```
    Boost copyright text
    ```

### License Text

Use the `licenseInfo.text` parameter to display the provided license text as plain text.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiAboutComponent } from '@siemens/element-ng/about';

@Component({
  selector: 'app-sample',
  imports: [SiAboutComponent],
  templateUrl: './si-about-text.html'
})
export class SampleComponent {
  actionLink = { title: 'Link with action', action: () => alert('Link clicked!') };
}
```

Template:

```html
<si-about
  aboutTitle="About"
  iconName="element-winecellar"
  appName="Application title"
  [licenseInfo]="{ title: 'License', text: 'This is a text for some licenses' }"
  [subheading]="['app version v0.1.2.alpha4']"
  [acceptableUsePolicyLink]="{
    title: 'Acceptable Use Policy',
    href: 'https://www.examples.org/sw-terms/aup'
  }"
  [imprintLink]="{
    title: 'Corporate Information',
    href: 'http://www.examples.org/corporate-information'
  }"
  [privacyLink]="{
    title: 'Privacy Notice',
    href: 'http://www.examples.org/privacy-notice'
  }"
  [cookieNoticeLink]="{
    title: 'Cookie Notice',
    href: 'https://www.examples.org/cookie-notice'
  }"
  [termsLink]="{
    title: 'Terms of Use',
    href: 'http://www.examples.org/terms-of-use'
  }"
  [links]="[
    { title: 'Some other link', href: 'http://www.examples.org' },
    { title: 'More information about stuff', href: 'http://www.examples.org' },
    actionLink
  ]"
  [copyrightDetails]="{
    startYear: 2016,
    lastUpdateYear: 2021
  }"
/>
```

### License introduction text and API

If your application requires showing a disclaimer in addition to the component licenses provided via API, you can combine the parameters `licenseInfo.text` and `licenseInfo.api`.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiAboutComponent } from '@siemens/element-ng/about';

@Component({
  selector: 'app-sample',
  imports: [SiAboutComponent],
  templateUrl: './si-about-text-api.html'
})
export class SampleComponent {
  licenseIntro = `Provide a disclaimer here about the third-party software
licenses provided in the component list below.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet
clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit
amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
sit amet.`;
}
```

Template:

```html
<si-about
  aboutTitle="About"
  icon="./assets/images/element-logo.svg"
  appName="Application title"
  [licenseInfo]="{ title: 'License', text: licenseIntro, api: 'assets/licenses/licenses.json' }"
  [subheading]="['app version v0.1.2.alpha4']"
  [acceptableUsePolicyLink]="{
    title: 'Acceptable Use Policy',
    href: 'https://www.examples.org/sw-terms/aup'
  }"
  [imprintLink]="{
    title: 'Corporate Information',
    href: 'http://www.examples.org/corporate-information'
  }"
  [privacyLink]="{
    title: 'Privacy Notice',
    href: 'http://www.examples.org/privacy-notice'
  }"
  [cookieNoticeLink]="{
    title: 'Cookie Notice',
    href: 'https://www.examples.org/cookie-notice'
  }"
  [termsLink]="{
    title: 'Terms of Use',
    href: 'http://www.examples.org/terms-of-use'
  }"
  [links]="[
    { title: 'Some other link', href: 'http://www.examples.org' },
    { title: 'More information about stuff', href: 'http://www.examples.org' }
  ]"
  [copyrightDetails]="{
    startYear: 2016,
    lastUpdateYear: 2021
  }"
/>
```

### License Iframe

You can also use a URL in the `licenseInfo.iframe` parameter to show an embedded page containing license information.

#### Example

Component:

```typescript
/**
 * Copyright (c) Siemens 2016 - 2026
 * SPDX-License-Identifier: MIT
 */
import { Component } from '@angular/core';
import { SiAboutComponent } from '@siemens/element-ng/about';

@Component({
  selector: 'app-sample',
  imports: [SiAboutComponent],
  templateUrl: './si-about-iframe.html'
})
export class SampleComponent {}
```

Template:

```html
<si-about
  aboutTitle="About"
  icon="./assets/images/element-logo.svg"
  appName="Application title"
  [licenseInfo]="{
    title: 'License',
    iframe: 'https://spdx.org/licenses/MIT.html'
  }"
  [subheading]="['app version v0.1.2.alpha4']"
  [acceptableUsePolicyLink]="{
    title: 'Acceptable Use Policy',
    href: 'https://www.examples.org/sw-terms/aup'
  }"
  [imprintLink]="{
    title: 'Corporate Information',
    href: 'http://www.examples.org/corporate-information'
  }"
  [privacyLink]="{
    title: 'Privacy Notice',
    href: 'http://www.examples.org/privacy-notice'
  }"
  [cookieNoticeLink]="{
    title: 'Cookie Notice',
    href: 'https://www.examples.org/cookie-notice'
  }"
  [termsLink]="{
    title: 'Terms of Use',
    href: 'http://www.examples.org/terms-of-use'
  }"
  [links]="[
    { title: 'Some other link', href: 'http://www.examples.org' },
    { title: 'More information about stuff', href: 'http://www.examples.org' }
  ]"
  [copyrightDetails]="{
    startYear: 2016,
    lastUpdateYear: 2021
  }"
/>
```

### Security considerations

The `licenseInfo.iframe` URL is marked as a trusted resource URL and is not sanitized by Angular. Only pass URLs from trusted sources.

### [SiAboutComponent](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L31-L146>)

**Kind:** component

**Selector:** `si-about`

```
import { SiAboutComponent } from '@siemens/element-ng/about';
```

```
component SiAboutComponent implements OnInit
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [aboutTitle](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L48-L48>) (required) | `string` |  | Title shown above the about information. |
| [acceptableUsePolicyLink](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L72-L72>) | `Link \| undefined` |  | Link to `Acceptable Use Policy`. |
| [appName](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L64-L64>) (required) | `string` |  | Title of this application. |
| [cookieNoticeLink](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L84-L84>) | `Link \| undefined` |  | Link to `Cookie Notice`. |
| [copyrightDetails](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L98-L98>) | `CopyrightDetails \| undefined` |  | Copyright information to be displayed. Alternatively, you can use the [SI\_COPYRIGHT\_DETAILS](<../../../api/siemens/element-ng/types/SI_COPYRIGHT_DETAILS/index.html#t:SI_COPYRIGHT_DETAILS>) global inject. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L56-L56>) | `string \| undefined` |  | Path to the application logo. Use for image |
| [iconName](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L60-L60>) | `string \| undefined` |  | Name of element icon. Use as alternative to image |
| [imprintLink](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L76-L76>) | `Link \| undefined` |  | Link to `Corporate Information`. |
| [licenseInfo](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L52-L52>) (required) | `LicenseInfo` |  | Define mode to display the licenses. See [LicenseInfo](<index.html#t:LicenseInfo>) |
| [links](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L94-L94>) | `Link[]` | `[]` | Additional links listed in the about section. |
| [logoAlt](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L43-L43>) | `TranslatableString` | `` $localize`:@@SI_ABOUT.LOGO_ALT:{{appName}} logo` `` | Alt text for the application logo. Supports `{{appName}}` placeholder for interpolation. |
| [privacyLink](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L80-L80>) | `Link \| undefined` |  | Link to `Privacy Notice`. |
| [subheading](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L68-L68>) | `string[] \| undefined` |  | Sub titles of the application. Shown as a list below the application name. (Optional) |
| [termsLink](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about.component.ts#L88-L88>) | `Link \| undefined` |  | Link to `Terms of Use`. |

### Types Documentation

### [CopyrightDetails](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L7-L21>)

**Kind:** interface

```
import type { CopyrightDetails } from '@siemens/element-ng/copyright-notice';
```

```
interface CopyrightDetails
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [company](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L20-L20>) (optional) | `string` | The company name to be displayed in the copyright notice (not to be translated). If empty (recommended), the company name from the theme will be used. |
| [lastUpdateYear](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L15-L15>) (optional) | `number` | The year when the app was last updated. Must be left blank if it equals [startYear](<index.html#t:CopyrightDetails.startYear>) |
| [startYear](<https://github.com/siemens/element/blob/main/projects/element-ng/copyright-notice/si-copyright-notice.ts#L11-L11>) | `number` | The year when the app was first released. |

### [LicenseInfo](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L6-L28>)

**Kind:** interface

```
import type { LicenseInfo } from '@siemens/element-ng/about';
```

```
interface LicenseInfo
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [api](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L23-L23>) (optional) | `string` | URL to license REST end point. License texts are lazy loaded separately for each component. Requires a service to provide license data. |
| [icon](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L27-L27>) (optional) | `string` | In API View, custom license file icon. |
| [iframe](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L18-L18>) (optional) | `string` | URL to license file to be shown in iFrame. |
| [text](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L14-L14>) (optional) | `string` | License to be shown as plain text in `<pre>` element. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/about/si-about-data.model.ts#L10-L10>) | `string` | Title of the License Info. |

### [Link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L8-L51>)

**Kind:** interface

```
import type { Link } from '@siemens/element-ng/link';
```

```
interface Link
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [action](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L42-L42>) (optional) | `string \| ((param?: any) => void \| any)` | A function that will be invoked when clicking on the menu item. When passed as a string, use together with SiLinkActionService to receive events. This is meant for repetitive things in lists/tables/etc. |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L50-L50>) (optional) | `boolean` | A boolean that lets the link know whether it is disabled or not. |
| [href](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L22-L22>) (optional) | `string` | Defines a href URI that the menu item will be linked to. Will be used to set the href attribute of the a element. Will only be used if link and function is not set. |
| [isActive](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L46-L46>) (optional) | `boolean` | A boolean that lets the link know whether it is active or not. It is useful when action() is executed instead of link route. |
| [link](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L32-L32>) (optional) | `string \| any[]` | Defines the link of the menu item within the application using the angular router link concept. Accepts an array of `any` as per \[routerLink API definition\][https://angular.dev/api/router/RouterLink](<https://angular.dev/api/router/RouterLink>). |
| [navigationExtras](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L36-L36>) (optional) | `NavigationExtras` | The navigation extras provide additional routing options when using the router link. |
| [target](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L27-L27>) (optional) | `string` | The target attribute specifies where to open the linked document. If no target is specified, the link will open in the current tab. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L12-L12>) (optional) | `TranslatableString` | The title of the menu item. Can be either the title to be displayed or the translation key. |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/element-ng/link/link.model.ts#L17-L17>) (optional) | `TranslatableString` | The optional tooltip of the link. Can be either the text to be displayed or the translation key. |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
