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.
- package/dist/eservices-core.cjs.js +2 -2
- package/dist/eservices-core.es.js +245 -232
- package/dist/eservices-core.umd.js +3 -3
- package/dist/frontend/core/index.d.ts +2 -2
- package/dist/frontend/src/index.d.ts +2 -1
- package/dist/frontend/src/methods/async-process.d.ts +8 -0
- package/dist/frontend/src/types/list-type.d.ts +1 -1
- package/dist/frontend/tests/unit/methods/async-process.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
|
3
|
+
export interface IListCell<T = IPrimitiveListData> {
|
|
4
4
|
/**
|
|
5
5
|
* @description Текстовая метка колонки
|
|
6
6
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|