eservices-core 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -353,8 +353,8 @@ export interface ButtonRow {
353
353
  callback: () => any;
354
354
  }
355
355
  import { WidgetTable, WidgetIcon } from "./../src/index";
356
- import { prettyDate, prettyDateWithTime } from "./../src/index";
356
+ import { prettyDate, prettyDateWithTime, asyncProcess } from "./../src/index";
357
357
  import type { IListCell } from "./../src/index";
358
358
  import { constants } from "./../src/index";
359
359
  import { useListActiveRow } from "./../src/index";
360
- export { constants, WidgetTable, WidgetIcon, prettyDate, prettyDateWithTime, IListCell, useListActiveRow };
360
+ export { constants, WidgetTable, WidgetIcon, prettyDate, prettyDateWithTime, asyncProcess, IListCell, useListActiveRow };
@@ -18,7 +18,8 @@ export { constants };
18
18
  METHODS
19
19
  ******/
20
20
  import { prettyDate, prettyDateWithTime } from './methods/pretty-date';
21
- export { prettyDate, prettyDateWithTime };
21
+ import asyncProcess from './methods/async-process';
22
+ export { prettyDate, prettyDateWithTime, asyncProcess };
22
23
  /****
23
24
  HOOKS
24
25
  ****/
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @description Функция используется для обёртки функции. В конечном итоге получаем реактивную обёртку с полями wait и
3
+ * call, которую нужно и запускать.
4
+ */
5
+ export default function asyncProcess<T extends unknown[], U>(process: (...args: T) => U): {
6
+ wait: boolean;
7
+ call: (...args: T) => Promise<U>;
8
+ };
@@ -1,6 +1,6 @@
1
1
  import { constants } from '../constants';
2
2
  import { RouteLocationRaw } from "vue-router";
3
- export interface IListCell<T extends IPrimitiveListData = IPrimitiveListData> {
3
+ export interface IListCell<T = IPrimitiveListData> {
4
4
  /**
5
5
  * @description Текстовая метка колонки
6
6
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-core",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Core library",
5
5
  "author": "",
6
6
  "scripts": {