@prefecthq/graphs 2.3.2 → 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 +6474 -5891
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +41 -41
- 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/consts.d.ts +4 -4
- package/dist/types/src/factories/circularProgressBar.d.ts +1 -1
- package/dist/types/src/factories/events.d.ts +4 -4
- package/dist/types/src/factories/node.d.ts +3 -3
- package/dist/types/src/factories/nodeTaskRun.d.ts +3 -3
- package/dist/types/src/models/RunGraph.d.ts +4 -0
- package/dist/types/src/objects/events.d.ts +4 -4
- package/package.json +12 -12
|
@@ -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
|
+
} & {};
|
|
@@ -21,10 +21,10 @@ export declare const DEFAULT_VIEWPORT_Z_INDEX = 1;
|
|
|
21
21
|
export declare const DEFAULT_ROOT_EVENT_Z_INDEX = 2;
|
|
22
22
|
export declare const DEFAULT_ROOT_FLOW_STATE_Z_INDEX = 3;
|
|
23
23
|
export declare const DEFAULT_ROOT_ARTIFACT_Z_INDEX = 4;
|
|
24
|
-
export declare const
|
|
24
|
+
export declare const DEFAULT_NESTED_GRAPH_BORDER_Z_INDEX = 0;
|
|
25
|
+
export declare const DEFAULT_NESTED_GRAPH_NODES_Z_INDEX = 2;
|
|
25
26
|
export declare const DEFAULT_SUBFLOW_EVENT_Z_INDEX = 1;
|
|
26
27
|
export declare const DEFAULT_SUBFLOW_STATE_Z_INDEX = 2;
|
|
27
|
-
export declare const DEFAULT_SUBFLOW_NODES_Z_INDEX = 2;
|
|
28
28
|
export declare const DEFAULT_SUBFLOW_ARTIFACT_Z_INDEX = 3;
|
|
29
|
-
export declare const
|
|
30
|
-
export declare const
|
|
29
|
+
export declare const DEFAULT_NESTED_GRAPH_NODE_Z_INDEX = 4;
|
|
30
|
+
export declare const DEFAULT_NODE_LABEL_Z_INDEX = 5;
|
|
@@ -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
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Container } from 'pixi.js';
|
|
2
2
|
import { BoundsContainer } from '../models/boundsContainer';
|
|
3
3
|
import { Pixels } from '../models/layout';
|
|
4
|
-
import { RunGraphNode } from '../models/RunGraph';
|
|
4
|
+
import { RunGraphData, RunGraphNode } from '../models/RunGraph';
|
|
5
5
|
export type NodeContainerFactory = Awaited<ReturnType<typeof nodeContainerFactory>>;
|
|
6
|
-
export declare function nodeContainerFactory(node: RunGraphNode): Promise<{
|
|
6
|
+
export declare function nodeContainerFactory(node: RunGraphNode, nestedGraphData: RunGraphData | undefined): Promise<{
|
|
7
7
|
element: BoundsContainer;
|
|
8
|
-
render: (newNodeData: RunGraphNode) => Promise<BoundsContainer>;
|
|
8
|
+
render: (newNodeData: RunGraphNode, newNested: RunGraphData | undefined) => Promise<BoundsContainer>;
|
|
9
9
|
bar: Container<import("pixi.js").DisplayObject>;
|
|
10
10
|
setPosition: ({ x, y }: Pixels) => void;
|
|
11
11
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BoundsContainer } from '../models/boundsContainer';
|
|
2
|
-
import { RunGraphNode } from '../models/RunGraph';
|
|
2
|
+
import { RunGraphData, RunGraphNode } from '../models/RunGraph';
|
|
3
3
|
export type TaskRunContainer = Awaited<ReturnType<typeof taskRunContainerFactory>>;
|
|
4
|
-
export declare function taskRunContainerFactory(): Promise<{
|
|
4
|
+
export declare function taskRunContainerFactory(node: RunGraphNode, nestedGraphData: RunGraphData | undefined): Promise<{
|
|
5
5
|
kind: "task-run";
|
|
6
6
|
element: BoundsContainer;
|
|
7
|
-
render: (
|
|
7
|
+
render: (newNodeData: RunGraphNode, newNestedGraph: RunGraphData | undefined) => Promise<BoundsContainer>;
|
|
8
8
|
bar: import("pixi.js").Container<import("pixi.js").DisplayObject>;
|
|
9
9
|
}>;
|
|
@@ -17,6 +17,10 @@ export type RunGraphData = {
|
|
|
17
17
|
artifacts?: RunGraphArtifact[];
|
|
18
18
|
states?: RunGraphStateEvent[];
|
|
19
19
|
events?: RunGraphEvent[];
|
|
20
|
+
/**
|
|
21
|
+
* A map of nested task run graphs keyed by the id of the task run with RunGraphNodes that were created
|
|
22
|
+
*/
|
|
23
|
+
nested_task_run_graphs?: Map<string, RunGraphData>;
|
|
20
24
|
};
|
|
21
25
|
export type RunGraphNodes = Map<string, RunGraphNode>;
|
|
22
26
|
export type RunGraphNode = {
|
|
@@ -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
|
+
"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.
|
|
54
|
-
"tsc-alias": "1.8.
|
|
55
|
-
"typescript": "5.
|
|
56
|
-
"vite": "5.
|
|
52
|
+
"postcss": "8.4.47",
|
|
53
|
+
"tailwindcss": "3.4.10",
|
|
54
|
+
"tsc-alias": "1.8.10",
|
|
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",
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@pixi-essentials/cull": "2.0.0",
|
|
68
68
|
"@pixi/ui": "^1.0.1",
|
|
69
|
-
"d3": "7.
|
|
69
|
+
"d3": "7.9.0",
|
|
70
70
|
"date-fns": "3.6.0",
|
|
71
71
|
"fontfaceobserver": "^2.3.0",
|
|
72
72
|
"gsap": "^3.12.2",
|
|
73
73
|
"lodash.isequal": "4.5.0",
|
|
74
74
|
"lodash.merge": "4.6.2",
|
|
75
75
|
"lodash.throttle": "^4.1.1",
|
|
76
|
-
"pixi-viewport": "5.0.
|
|
76
|
+
"pixi-viewport": "5.0.3",
|
|
77
77
|
"pixi.js": "7.3.2"
|
|
78
78
|
}
|
|
79
79
|
}
|