@milaboratories/uikit 1.2.28 → 1.2.30
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/CHANGELOG.md +12 -0
- package/dist/pl-uikit.js +2492 -2384
- package/dist/pl-uikit.umd.cjs +6 -6
- package/dist/src/components/PlLogView/PlLogView.vue.d.ts +25 -1
- package/dist/src/components/PlLogView/useLogHandle.d.ts +15 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -1
- package/src/components/PlFileInput/PlFileInput.vue +2 -2
- package/src/components/PlLogView/PlLogView.vue +20 -5
- package/src/components/PlLogView/useLogHandle.ts +93 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './pl-log-view.scss';
|
|
2
|
-
import type { ValueOrErrors } from '@platforma-sdk/model';
|
|
2
|
+
import type { AnyLogHandle, Platforma, ValueOrErrors } from '@platforma-sdk/model';
|
|
3
3
|
/**
|
|
4
4
|
* Log Viewer Component
|
|
5
5
|
*/
|
|
@@ -8,6 +8,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
* String contents
|
|
9
9
|
*/
|
|
10
10
|
value?: string;
|
|
11
|
+
/**
|
|
12
|
+
* AnyLogHandle
|
|
13
|
+
*/
|
|
14
|
+
logHandle?: AnyLogHandle;
|
|
15
|
+
/**
|
|
16
|
+
* Custom progress prefix (to filter logHandle results)
|
|
17
|
+
*/
|
|
18
|
+
progressPrefix?: string;
|
|
11
19
|
/**
|
|
12
20
|
* String contents
|
|
13
21
|
*/
|
|
@@ -16,11 +24,23 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
24
|
* Block output (Note: error and value take precedence over output property)
|
|
17
25
|
*/
|
|
18
26
|
output?: ValueOrErrors<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* @TODO
|
|
29
|
+
*/
|
|
30
|
+
mockPlatforma?: Platforma;
|
|
19
31
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
20
32
|
/**
|
|
21
33
|
* String contents
|
|
22
34
|
*/
|
|
23
35
|
value?: string;
|
|
36
|
+
/**
|
|
37
|
+
* AnyLogHandle
|
|
38
|
+
*/
|
|
39
|
+
logHandle?: AnyLogHandle;
|
|
40
|
+
/**
|
|
41
|
+
* Custom progress prefix (to filter logHandle results)
|
|
42
|
+
*/
|
|
43
|
+
progressPrefix?: string;
|
|
24
44
|
/**
|
|
25
45
|
* String contents
|
|
26
46
|
*/
|
|
@@ -29,5 +49,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
49
|
* Block output (Note: error and value take precedence over output property)
|
|
30
50
|
*/
|
|
31
51
|
output?: ValueOrErrors<unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* @TODO
|
|
54
|
+
*/
|
|
55
|
+
mockPlatforma?: Platforma;
|
|
32
56
|
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
57
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Reactive } from 'vue';
|
|
2
|
+
import type { AnyLogHandle, Platforma } from '@platforma-sdk/model';
|
|
3
|
+
type LogState = {
|
|
4
|
+
logHandle: AnyLogHandle;
|
|
5
|
+
lines: string;
|
|
6
|
+
lastOffset: number;
|
|
7
|
+
finished: boolean;
|
|
8
|
+
error: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare function useLogHandle(props: Reactive<{
|
|
11
|
+
logHandle: AnyLogHandle | undefined;
|
|
12
|
+
mockPlatforma?: Platforma;
|
|
13
|
+
progressPrefix?: string;
|
|
14
|
+
}>): import("vue").Ref<LogState | undefined, LogState | undefined>;
|
|
15
|
+
export {};
|