# DEPRECATED

### This package is deprecated and repository is archived. Current version is available via package `@targetprocess/ui-lists`, and its sources were moved to [targetprocess-ui-components](https://gitlab.tpondemand.net/frontend/targetprocess-ui-components/) monorepo.

# Targetprocess List UI Component 

[![pipeline status](https://tp.githost.io/sdk/targetprocess-ui-lists/badges/master/pipeline.svg)](https://tp.githost.io/sdk/targetprocess-ui-lists/commits/master) [![npm version](https://badge.fury.io/js/targetprocess-ui-lists.svg)](https://badge.fury.io/js/targetprocess-ui-lists)

A reusable component for rendering multi-level lists.

Primary goals:
 - Reusable and not opinionated about the data
 - Extendable (within sane limits, of course)
 - Configurable

## Installation

```bash
> npm install targetprocess-ui-lists
```

## Usage

WIP.

Here be dragons.

## Development 

Primary development platform is [Storybook](https://storybook.js.org/). To run a local dev server, use the following commands:

```bash
> yarn install # optional, first time only
> npm run storybook
```

This runs a development and live doc server on [http://localhost:8081](http://localhost:8081). All components and their usage patterns are described in their respective stories. Dev server acts as a file watcher and supports hot-reload of TypeScript/JavaScript and CSS modules.

## Testing

To run tests use

```bash
> npm run test
```

To find files with tests by specific pattern

```bash
> npm run test -- <pattern>
```

For example to run tests from ColumnHeader.tests.tsx

```bash
> npm run test -- ColumnHeader
```

To debug test in Chrome inspector write `debugger` command in test and run

```bash
> npm run test:debug
```

for specific file

```bash
> npm run test:debug -- ColumnHeader
```

## Release build

Generate a static build (for publishing).

*Production build*:
```bash
> yarn install
> npm run build:production
```

