DocumentFinder
=============

Модальное окно поиска и подстановки документов

Installation
-----------

```js
import DocumentFinder, {DocumentFinderType} from "@mdoffice/md-component/DocumentFinder";
```

Usage
-----
url прописан в коде на пользователя core

```js
const inputBeginNum = form.find('input[name="p_begin_doc_num"]');
const inputBeginDate = form.find('input[name="p_begin_doc_date"]');
const doc1 = DocumentFinder.create({
    elements: [
        {target: inputBeginNum, type: DocumentFinderType.DOC_NUM},
        {target: inputBeginDate, type: DocumentFinderType.DOC_DATE},
    ]
});
form.find('#doc-begin')
    .on('click', () => doc1.openModal({
        num: inputBeginNum.val(),
        date: inputBeginDate.val()
    }));
```
![image](https://user-images.githubusercontent.com/965849/177785254-1be09a98-5896-411a-b366-dead912254e2.png)
