@prefecthq/graphs 2.4.0 → 2.4.1
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/graphs.mjs +4060 -4146
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +40 -40
- package/dist/graphs.umd.js.map +1 -1
- package/dist/types/demo/components/AppNavigationBar.vue.d.ts +20 -13
- package/dist/types/src/components/RunGraph.vue.d.ts +4 -5
- package/dist/types/src/factories/circularProgressBar.d.ts +1 -1
- package/dist/types/src/factories/events.d.ts +4 -4
- package/dist/types/src/objects/events.d.ts +4 -4
- package/package.json +9 -9
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
prepend?(_: {
|
|
7
|
-
layout: "horizontal" | "vertical";
|
|
8
|
-
}): any;
|
|
9
|
-
}>;
|
|
10
|
-
export default _default;
|
|
11
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
-
new (): {
|
|
13
|
-
$slots: S;
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
prepend?(_: {
|
|
4
|
+
layout: "horizontal" | "vertical";
|
|
5
|
+
}): any;
|
|
14
6
|
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
15
9
|
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
12
|
+
layout?: "horizontal" | "vertical";
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
14
|
+
layout?: "horizontal" | "vertical";
|
|
15
|
+
}>>>, {}, {}>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
16
18
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
19
|
type __VLS_TypePropsToOption<T> = {
|
|
18
20
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -22,3 +24,8 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
22
24
|
required: true;
|
|
23
25
|
};
|
|
24
26
|
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -20,15 +20,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
20
|
fullscreen: boolean | null;
|
|
21
21
|
}, {}>;
|
|
22
22
|
export default _default;
|
|
23
|
-
|
|
24
23
|
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ?
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
26
25
|
default: D[K];
|
|
27
26
|
}> : P[K];
|
|
28
27
|
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
32
28
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
29
|
type __VLS_TypePropsToOption<T> = {
|
|
34
30
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -38,3 +34,6 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
38
34
|
required: true;
|
|
39
35
|
};
|
|
40
36
|
};
|
|
37
|
+
type __VLS_PrettifyLocal<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
@@ -4,6 +4,6 @@ type CircularProgressBarOptions = {
|
|
|
4
4
|
} & Partial<MaskedProgressBarOptions>;
|
|
5
5
|
export declare function circularProgressBarFactory(options?: CircularProgressBarOptions): Promise<{
|
|
6
6
|
element: CircularProgressBar;
|
|
7
|
-
render: (data: Partial<MaskedProgressBarOptions> & Pick<MaskedProgressBarOptions,
|
|
7
|
+
render: (data: Partial<MaskedProgressBarOptions> & Pick<MaskedProgressBarOptions, "lineWidth" | "radius" | "value">) => CircularProgressBar;
|
|
8
8
|
}>;
|
|
9
9
|
export {};
|
|
@@ -2,11 +2,11 @@ type Handler<T = any> = (...payload: T[]) => void;
|
|
|
2
2
|
type Events = Record<string, unknown>;
|
|
3
3
|
export declare function eventsFactory<T extends Events>(): {
|
|
4
4
|
on: <E extends keyof T>(event: E, handler: Handler<T[E]>) => () => void;
|
|
5
|
-
off: <
|
|
6
|
-
once: <
|
|
5
|
+
off: <E extends keyof T>(event: E, handler: Handler<T[E]>) => void;
|
|
6
|
+
once: <E extends keyof T>(event: E, handler: Handler<T[E]>) => void;
|
|
7
7
|
emit: {
|
|
8
|
-
<
|
|
9
|
-
<
|
|
8
|
+
<E extends keyof T>(event: undefined extends T[E] ? E : never): void;
|
|
9
|
+
<E extends keyof T>(event: E, payload: T[E]): void;
|
|
10
10
|
};
|
|
11
11
|
clear: () => void;
|
|
12
12
|
};
|
|
@@ -42,11 +42,11 @@ type Events = {
|
|
|
42
42
|
export type EventKey = keyof Events;
|
|
43
43
|
export declare const emitter: {
|
|
44
44
|
on: <E extends keyof Events>(event: E, handler: (...payload: Events[E][]) => void) => () => void;
|
|
45
|
-
off: <
|
|
46
|
-
once: <
|
|
45
|
+
off: <E extends keyof Events>(event: E, handler: (...payload: Events[E][]) => void) => void;
|
|
46
|
+
once: <E extends keyof Events>(event: E, handler: (...payload: Events[E][]) => void) => void;
|
|
47
47
|
emit: {
|
|
48
|
-
<
|
|
49
|
-
<
|
|
48
|
+
<E extends keyof Events>(event: undefined extends Events[E] ? E : never): void;
|
|
49
|
+
<E extends keyof Events>(event: E, payload: Events[E]): void;
|
|
50
50
|
};
|
|
51
51
|
clear: () => void;
|
|
52
52
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/graphs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.1",
|
|
5
5
|
"description": "Large scale graphs designed for Prefect",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"serve": "vite --host --mode=demo",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"@types/lodash.isequal": "4.5.8",
|
|
45
45
|
"@types/lodash.merge": "4.6.9",
|
|
46
46
|
"@types/lodash.throttle": "^4.1.9",
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"@vitejs/plugin-vue": "5.
|
|
47
|
+
"@types/node": "^22.0.0",
|
|
48
|
+
"@vitejs/plugin-vue": "5.1.3",
|
|
49
49
|
"auto-changelog": "^2.4.0",
|
|
50
|
-
"autoprefixer": "10.4.
|
|
50
|
+
"autoprefixer": "10.4.20",
|
|
51
51
|
"eslint": "8.57.0",
|
|
52
|
-
"postcss": "8.4.
|
|
53
|
-
"tailwindcss": "3.4.
|
|
52
|
+
"postcss": "8.4.47",
|
|
53
|
+
"tailwindcss": "3.4.10",
|
|
54
54
|
"tsc-alias": "1.8.10",
|
|
55
|
-
"typescript": "5.
|
|
56
|
-
"vite": "5.
|
|
55
|
+
"typescript": "5.6.2",
|
|
56
|
+
"vite": "5.4.6",
|
|
57
57
|
"vite-svg-loader": "^5.1.0",
|
|
58
|
-
"vue-tsc": "2.
|
|
58
|
+
"vue-tsc": "2.1.6"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@prefecthq/prefect-design": "^2.10.10",
|