# lyo.oslc-ui
**Repository Path**: mirrors_eclipse/lyo.oslc-ui
## Basic Information
- **Project Name**: lyo.oslc-ui
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: EPL-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-10-15
- **Last Updated**: 2025-09-20
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# OSLC UI
[](https://github.com/eclipse/lyo)
[](https://forum.open-services.net/)
- [How to use](#how-to-use)
- [oslc-selector](#oslc-selector)
- [oslc-preview](#oslc-preview)
- [Development](#development)
- [Dev server](#dev-server)
- [Code scaffolding](#code-scaffolding)
- [Build](#build)
- [Running unit tests](#running-unit-tests)
- [Running end-to-end tests](#running-end-to-end-tests)
- [Further help](#further-help)
- [Contributing](#contributing)
## How to use
1. After cloning this git repository, go the root folder of the repo.
2. run `npm run build:elements-prod` to build the project. This will produce a `dist` with artefacts
3. Copy the `dist` folder to under `/src/main/webapp/static/` of your web project. That is, you will have a number of js/css files under the folder `/src/main/webapp/static/dist/oslc-ui`
4. Add the following dependency to your Java app:
```
org.eclipse.lyo.serveroslc-ui-model4.1.0-SNAPSHOT
```
### oslc-selector
Add the following code to your html page:
```html
```
Usage example in a page:
```html
">
" type="module">
" nomodule defer>
" nomodule defer>
" type="module">
" type="module">
" nomodule defer>
```
- Note that `<%= selectionUri %>` is jsp-code that points to the Selection DelegatedUI. You can use any other logic to define this URI.
- Note also that `fields='["oslc:label"]'` can be any list of values from the json result returned.
The selected items can then be retrieved using the [OSLC 3.0 Delegated Dialogs](https://docs.oasis-open-projects.org/oslc-op/core/v3.0/ps01/dialogs.html#client_responsibilities) API.
### oslc-preview
``
## Development
### Dev server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
### Code scaffolding
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
### Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
### Running unit tests
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
### Running end-to-end tests
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.5.
## Contributing
See [contributing](https://github.com/eclipse/lyo#contributing) under the main [Eclipse Lyo](https://github.com/eclipse/lyo) repository.