# @advanced-rest-client/variables-editor

> A variables editor element is an UI element to display existing variables and forms to edit them

Latest version **3.0.5** (published 2019-10-04) · Apache-2.0 license · 0 weekly downloads

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

## Install

```sh
npm install @advanced-rest-client/variables-editor
pnpm add @advanced-rest-client/variables-editor
yarn add @advanced-rest-client/variables-editor
bun add @advanced-rest-client/variables-editor
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2019-10-04 |
| First published | 2019-03-30 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 111.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | jarrodek |
| Keywords | advanced-rest-client, settings |

## Links

- npm: https://www.npmjs.com/package/@advanced-rest-client/variables-editor
- Repository: https://github.com/advanced-rest-client/variables-editor
- Homepage: https://github.com/advanced-rest-client/variables-editor#readme
- Issues: https://github.com/advanced-rest-client/variables-editor/issues
- npm.io page: https://npm.io/package/@advanced-rest-client/variables-editor

## Dependencies (14)

- [lit-html](https://npm.io/package/lit-html.md) ^1.1.2
- [lit-element](https://npm.io/package/lit-element.md) ^2.2.1
- [@advanced-rest-client/arc-icons](https://npm.io/package/@advanced-rest-client/arc-icons.md) ^3.0.0
- [@advanced-rest-client/uuid-generator](https://npm.io/package/@advanced-rest-client/uuid-generator.md) ^3.0.0
- [@anypoint-web-components/anypoint-item](https://npm.io/package/@anypoint-web-components/anypoint-item.md) ^1.0.4
- [@anypoint-web-components/anypoint-tabs](https://npm.io/package/@anypoint-web-components/anypoint-tabs.md) ^0.1.7
- [@anypoint-web-components/anypoint-input](https://npm.io/package/@anypoint-web-components/anypoint-input.md) ^0.2.6
- [@anypoint-web-components/anypoint-button](https://npm.io/package/@anypoint-web-components/anypoint-button.md) ^1.0.10
- [@anypoint-web-components/anypoint-dialog](https://npm.io/package/@anypoint-web-components/anypoint-dialog.md) ^0.1.1
- [@anypoint-web-components/anypoint-switch](https://npm.io/package/@anypoint-web-components/anypoint-switch.md) ^0.1.3
- [@anypoint-web-components/anypoint-listbox](https://npm.io/package/@anypoint-web-components/anypoint-listbox.md) ^1.0.3
- [@advanced-rest-client/environment-selector](https://npm.io/package/@advanced-rest-client/environment-selector.md) ^3.0.2
- [@advanced-rest-client/variables-consumer-mixin](https://npm.io/package/@advanced-rest-client/variables-consumer-mixin.md) ^3.0.5
- [@anypoint-web-components/anypoint-dropdown-menu](https://npm.io/package/@anypoint-web-components/anypoint-dropdown-menu.md) ^0.1.11

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 3.0.5 (latest) — 2019-10-04
- 3.0.4 — 2019-10-04
- 3.0.3 — 2019-10-01
- 3.0.2 — 2019-09-27
- 3.0.1 — 2019-09-13
- 3.0.0 — 2019-09-12
- 3.0.0-preview.1 — 2019-03-30

## README

[![Published on NPM](https://img.shields.io/npm/v/@advanced-rest-client/variables-editor.svg)](https://www.npmjs.com/package/@advanced-rest-client/variables-editor)

[![Build Status](https://travis-ci.org/advanced-rest-client/variables-editor.svg?branch=stage)](https://travis-ci.org/advanced-rest-client/variables-editor)

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/advanced-rest-client/variables-editor)

# variables-editor

A variables editor element is an UI element to display existing variables and forms to edit them.

## Required component

This component works with:

-   variables-model - Storing / restoring data from the data store
-   variables-manager - Managing environments and variables
-   variables-evaluator - Evaluates variables into values

This components can be replaced with other logic with compatible API.

## Jexl dependency

`variables-editor` requires Jexl library to be installed in the application and included into the document.
This is not done inside the `variables-editor` element as each element using Jexl would have to include it's own copy
and at build time it would produce multiple copies of the library.

This element, when installed locally, installs Jexl and produces local copy of the library to be used with demo page.

## Usage

### Installation
```
npm install --save @advanced-rest-client/variables-editor
```

```js
import { LitElement, html } from 'lit-element';
import './node_odules/@advanced-rest-client/variables-editor/variables-editor.js';

class SampleElement extends LitElement {
  render() {
    return html`
    <variables-editor></variables-editor>

    <variables-model></variables-model>
    <variables-manager></variables-manager>
    <variables-evaluator></variables-evaluator>
    `;
  }
}
customElements.define('sample-element', SampleElement);
```


## Development

```sh
git clone https://github.com/advanced-rest-client/variables-editor
cd variables-editor
npm install
```

### Running the demo locally

```sh
npm start
```

### Running the tests

```sh
npm test
```

## API components

This components is a part of [API components ecosystem](https://elements.advancedrestclient.com/)

---
_Source: https://npm.io/package/@advanced-rest-client/variables-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
