# vue-dadata-textarea

> Vue component for hinting addresses using dadata.ru

Latest version **1.4.15** (published 2021-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-dadata-textarea
pnpm add vue-dadata-textarea
yarn add vue-dadata-textarea
bun add vue-dadata-textarea
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.15 |
| Published | 2021-04-15 |
| First published | 2021-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 327.4 KB |
| Known vulnerabilities | 0 (+26 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ivan Monastyrev |
| Maintainers | ai2cru |
| Keywords | vue, ts, typescript, dadata, suggestion |

## Links

- npm: https://www.npmjs.com/package/vue-dadata-textarea
- Repository: https://github.com/ai2cru/vue-dadata-textarea
- Homepage: https://github.com/ai2cru/vue-dadata-textarea#readme
- Issues: https://github.com/ai2cru/vue-dadata-textarea/issues
- npm.io page: https://npm.io/package/vue-dadata-textarea

## Dependencies (7)

- [vue](https://npm.io/package/vue.md) 2.6.11
- [axios](https://npm.io/package/axios.md) 0.19.2
- [core-js](https://npm.io/package/core-js.md) 3.6.4
- [vue-class-component](https://npm.io/package/vue-class-component.md) 7.2.2
- [vue-highlight-words](https://npm.io/package/vue-highlight-words.md) 1.2.0
- [vue-debounce-decorator](https://npm.io/package/vue-debounce-decorator.md) ^1.0.1
- [vue-property-decorator](https://npm.io/package/vue-property-decorator.md) 8.3.0

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.4.15 (latest) — 2021-04-15
- 1.4.14 — 2021-04-15
- 1.4.12 — 2021-04-15
- 1.4.11 — 2021-04-15
- 1.4.10 — 2021-04-15

## README

# Vue Dadata Textarea

![Publish](https://github.com/ai2cru/vue-dadata-textarea/workflows/Publish/badge.svg)

It's a vue component for hinting addresses using [DaData.ru](https://dadata.ru).

[Link to RU documentation](https://github.com/ai2cru/vue-dadata-textarea/tree/master/ru/README.md)

## Install

[npm package](https://www.npmjs.com/package/vue-dadata-textarea)

```bash
$ npm install vue-dadata-textarea --save
```

[yarn package](https://yarnpkg.com/en/package/vue-dadata-textarea)
```bash
$ yarn add vue-dadata-textarea
```

## Usage

### Global

```js
import VueDadataTextarea from 'vue-dadata-textarea'

Vue.use(VueDadataTextarea)
```

### Local

```html
<template>
  <div id="app">
    <vue-dadata token="dadata_api_key"></vue-dadata>
  </div>
</template>

<script>
import VueDadataTextarea from 'vue-dadata-textarea'

export default {
  name: 'VueDadataTest',
  components: {
    'vue-dadata': VueDadataTextarea
  }
}
</script>
```

### Properties

| Prop  | Required | Type | Description |
| ------------- | ------------- | ------------- | ------------- |
| token  | Yes  | string  | Auth token DaData.ru  |
| placeholder  | No  | string  | Text placeholder  |
| query  | No  | string  | Initial state input field  |
| autoload  | No  | boolean  | If `true`, then a request for tips will be initialed in the background in the created hook  |
| onChange  | No  | function(suggestion: DadataSuggestion) -> void  | Function called when selecting a tooltip  |
| autocomplete  | No  |  string  |  Autocomplete field |
| defaultClass  | No  |  string  |  Default class ofr component, default value - `vue-dadata` |
| classes  | No  |  string  |  Extra classes |
| inputName  | No  |  string  |  Input name attribute |
| inputType  | No  |  string  |  Input type; `input` or `textarea` |
| textareaRows  | No  |  Number  |  Rows number for textarea |

| fromBound  | No  |  string  |  Dadata bound type FROM |
| toBound  | No  |  string  |  Dadata bound type TO |
| highlightClassName  | No  |  string  |  CSS class name applied to highlighted text |
| unhighlightClassName  | No  |  string  |  CSS class name applied to unhighlighted text |
| highlightTag  | No  |  string  |  Type of tag to wrap around highlighted matches; defaults to `mark` but can also be a component |
| locationOptions  | No  |  object  |  Location options for choosing cities or countries |


## Dependencies

- [axios](https://github.com/axios/axios)
- [core-js](https://github.com/zloirock/core-js)
- [vue](https://github.com/vuejs/vue)
- [vue-class-component](https://github.com/vuejs/vue-class-component)
- [vue-property-decorator](https://github.com/kaorun343/vue-property-decorator)
- [vue-highlight-words](https://github.com/Astray-git/vue-highlight-words)
- [vue-debounce-decorator](https://github.com/trepz/vue-debounce-decorator)

## Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository [issues section](https://github.com/ikloster03/vue-dadata/issues).

## ToDo

[Show project Vue Dadata](https://github.com/ikloster03/vue-dadata/projects/1)

## Milestones

[Show milestones](https://github.com/ikloster03/vue-dadata/milestones)

## Contact me

- Site: [ikloster.ru](http://ikloster.ru)
- E-mail: <ikloster@yandex.ru>
- Twitter: [twitter.com/IvanMonastyrev](https://twitter.com/IvanMonastyrev)

## Contributors

- [Valery Roshett](https://github.com/Roshett)
- [Ilya Kiselev](https://github.com/kiselev-webdev)

## [CHANGELOG](https://github.com/ikloster03/vue-dadata/blob/master/CHANGELOG.md)

## [CONTRIBUTING](https://github.com/ikloster03/vue-dadata/blob/master/CONTRIBUTING.md)

## [LICENSE](https://github.com/ikloster03/vue-dadata/blob/master/LICENSE)

Copyright (c) 2019 Ivan Monastyrev <ikloster@yandex.ru>. Licensed under the [MIT license](https://github.com/ikloster03/vue-dadata/blob/master/LICENSE).

---
_Source: https://npm.io/package/vue-dadata-textarea · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
