open-index/open-npm huggingface dataset:
npm package: @fortit/base
Description: ## Installation
Latest version: 1.0.1

# `base` [![Published on npm](https://img.shields.io/npm/v/@fortit/base.svg)](https://www.npmjs.com/package/@fortit/base)

## Installation

```sh
npm i @fortit/base
```

## API

### Slots

None

### Properties/Attributes

None

### Methods

| Name                                                                                                            | Description                                        |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| `debounce = (callback: DebounceCallbackFunction, debounceTime = 300) => void`                                   | Debounce a function call                           |
| `dynMsg = (key: string) => string`                                                                              | Return message string from `client/i18n/messages`. |
| `formatCurrency = (number: string \| number, locale = 'de-CH', style = 'currency', currency = 'CHF') => string` | Format number to `CHF 12'560`.            |
| `formatDate = (timestamp?: number) => string`                                                                   | Format timestamp to `dd.MM.yyyy`.                  |
| `formatDateTime = (timestamp?: number) => string`                                                               | Format timestamp to `dd.MM.yyyy HH:mm`.            |

### Events

None
npm package: @fortit/fwc-chip-list
Description: ## Installation
Latest version: 1.0.1

# `<fwc-chip-list>` [![Published on npm](https://img.shields.io/npm/v/@fortit/fwc-chip-list.svg)](https://www.npmjs.com/package/@fortit/fwc-chip-list)

## Installation

```sh
npm i @fortit/fwc-chip-list
```

## Example usage

### Standard

```html
<script type="module">
  import '@fortit/fwc-chip-list';
</script>

<fwc-chip-list
  icon="quiz"
  .all="${this.allItems}"
  .selected="${this.selectedItems}"
></fwc-chip-list>
```

## API

### Slots

None

### Properties/Attributes

| Name       | Type               | Default | Description                        |
| ---------- | ------------------ | ------- | ---------------------------------- |
| `added`    | `any[]` (readonly) | `[]`    | Array of added items               |
| `all`      | `any[]`            | `[]`    | Array of all items (id, name)      |
| `icon`     | `string`           | `''`    | Icon to display left               |
| `removed`  | `any[]` (readonly) | `[]`    | Array of removed items             |
| `selected` | `any[]`            | `[]`    | Array of selected items (id, name) |

### Methods

None

### Events
 
None

## Additional references

- [Angular Material](https://material.angular.io/components/chips/examples)
npm package: @fortit/fwc-data-table
Description: ## Installation
Latest version: 1.0.1

# `<fwc-data-table>` [![Published on npm](https://img.shields.io/npm/v/@fortit/fwc-data-table.svg)](https://www.npmjs.com/package/@fortit/fwc-data-table)

## Installation

```sh
npm i @fortit/fwc-data-table
```

## Example usage

### Standard

```html
<script type="module">
  import {DataTable} from '@fortit/fwc-data-table';

  export class MyDataTable extends DataTable {
    ...
  }
</script>
```

## API

### Slots

None

### Properties/Attributes

None

### Methods

| Name                                        | Description                                |
| ------------------------------------------- | ------------------------------------------ |
| `setData<T>(datas: T[]) => void`            | Set an array of items to render the table. |
| `sort(field: string) => void`               | Sorting items at the specific column.      |
| `setFilter(field = '', value = '') => void` | Filter items at the specific column.       |

### Events

None

## Additional references

- [Material Design](https://material.io/components/data-tables)