@prefecthq/graphs 1.0.0 → 1.0.2

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.
@@ -15,7 +15,7 @@ declare const _default: {
15
15
  expandedSubNodes?: ExpandedSubNodes<Record<string, unknown>> | undefined;
16
16
  }>>> & {
17
17
  onSelection?: ((value: NodeSelectionEvent | null) => any) | undefined;
18
- onSubFlowToggle?: ((value: string) => any) | undefined;
18
+ onSubNodeToggle?: ((value: string) => any) | undefined;
19
19
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
20
20
  $attrs: {
21
21
  [x: string]: unknown;
@@ -28,7 +28,7 @@ declare const _default: {
28
28
  }>;
29
29
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
30
30
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
31
- $emit: ((event: "selection", value: NodeSelectionEvent | null) => void) & ((event: "subFlowToggle", value: string) => void);
31
+ $emit: ((event: "selection", value: NodeSelectionEvent | null) => void) & ((event: "subNodeToggle", value: string) => void);
32
32
  $el: any;
33
33
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
34
34
  graphData: GraphTimelineNode[];
@@ -42,7 +42,7 @@ declare const _default: {
42
42
  expandedSubNodes?: ExpandedSubNodes<Record<string, unknown>> | undefined;
43
43
  }>>> & {
44
44
  onSelection?: ((value: NodeSelectionEvent | null) => any) | undefined;
45
- onSubFlowToggle?: ((value: string) => any) | undefined;
45
+ onSubNodeToggle?: ((value: string) => any) | undefined;
46
46
  }, {
47
47
  centerViewport: ({ skipAnimation }?: CenterViewportOptions) => void;
48
48
  moveViewportCenter: ({ xOffset, yOffset }: {
@@ -52,7 +52,7 @@ declare const _default: {
52
52
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
53
  selection: (value: NodeSelectionEvent | null) => void;
54
54
  } & {
55
- subFlowToggle: (value: string) => void;
55
+ subNodeToggle: (value: string) => void;
56
56
  }, string, {}, {}, string> & {
57
57
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
58
58
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -85,7 +85,7 @@ declare const _default: {
85
85
  expandedSubNodes?: ExpandedSubNodes<Record<string, unknown>> | undefined;
86
86
  }>>> & {
87
87
  onSelection?: ((value: NodeSelectionEvent | null) => any) | undefined;
88
- onSubFlowToggle?: ((value: string) => any) | undefined;
88
+ onSubNodeToggle?: ((value: string) => any) | undefined;
89
89
  } & import("vue").ShallowUnwrapRef<{
90
90
  centerViewport: ({ skipAnimation }?: CenterViewportOptions) => void;
91
91
  moveViewportCenter: ({ xOffset, yOffset }: {
@@ -108,7 +108,7 @@ declare const _default: {
108
108
  expandedSubNodes?: ExpandedSubNodes<Record<string, unknown>> | undefined;
109
109
  }>>> & {
110
110
  onSelection?: ((value: NodeSelectionEvent | null) => any) | undefined;
111
- onSubFlowToggle?: ((value: string) => any) | undefined;
111
+ onSubNodeToggle?: ((value: string) => any) | undefined;
112
112
  }, {
113
113
  centerViewport: ({ skipAnimation }?: CenterViewportOptions) => void;
114
114
  moveViewportCenter: ({ xOffset, yOffset }: {
@@ -118,7 +118,7 @@ declare const _default: {
118
118
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
119
119
  selection: (value: NodeSelectionEvent | null) => void;
120
120
  } & {
121
- subFlowToggle: (value: string) => void;
121
+ subNodeToggle: (value: string) => void;
122
122
  }, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
123
123
  export default _default;
124
124
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -17,7 +17,7 @@ export type InitTimelineScaleProps = {
17
17
  initialOverallTimeSpan: number;
18
18
  };
19
19
  export type TimelineNodesLayoutOptions = 'waterfall' | 'nearestParent';
20
- export type NodeSelectionEventTypes = 'task' | 'subFlow';
20
+ export type NodeSelectionEventTypes = 'task' | 'subFlowRun';
21
21
  export type NodeSelectionEvent = {
22
22
  id: string;
23
23
  type: NodeSelectionEventTypes;
@@ -83,6 +83,7 @@ export type CenterViewportOptions = {
83
83
  export type TextStyles = {
84
84
  nodeTextDefault: Partial<IBitmapTextStyle>;
85
85
  nodeTextInverse: Partial<IBitmapTextStyle>;
86
+ nodeTextSubdued: Partial<IBitmapTextStyle>;
86
87
  nodeTextStyles: TextStyle;
87
88
  timeMarkerLabel: Partial<IBitmapTextStyle>;
88
89
  playheadTimerLabel: Partial<IBitmapTextStyle>;
@@ -2,6 +2,7 @@ export * from './bitmapFonts';
2
2
  export * from './deselectLayer';
3
3
  export * from './initPixiApp';
4
4
  export * from './initViewport';
5
+ export * from './loadingIndicator';
5
6
  export * from './nodeSprites';
6
7
  export * from './roundedBorderRect';
7
8
  export * from './timelineEdge';
@@ -0,0 +1,19 @@
1
+ import { Container } from 'pixi.js';
2
+ import { GraphState } from '../models';
3
+ type LoadingIndicatorProps = {
4
+ graphState: GraphState;
5
+ };
6
+ export declare class LoadingIndicator extends Container {
7
+ private readonly graphState;
8
+ private readonly dimensionsObject;
9
+ private dots;
10
+ private readonly unWatchers;
11
+ constructor({ graphState, }: LoadingIndicatorProps);
12
+ private initWatchers;
13
+ private initDimensions;
14
+ private initDots;
15
+ private initAnimation;
16
+ private destroyDots;
17
+ destroy(): void;
18
+ }
19
+ export {};
@@ -38,6 +38,9 @@ export declare class TimelineNode extends Container {
38
38
  private subNodesToggle;
39
39
  private subNodesToggleWidth;
40
40
  private isSubNodesToggleFloating;
41
+ private isLoadingSubNodes;
42
+ private subNodesLoadingIndicator;
43
+ private noSubNodesMessage;
41
44
  private label;
42
45
  private apxLabelWidth;
43
46
  private isLabelInBox;
@@ -51,7 +54,6 @@ export declare class TimelineNode extends Container {
51
54
  private selectedRing;
52
55
  constructor({ nodeData, graphState, layout, layoutRows, }: TimelineNodeProps);
53
56
  private initWatchers;
54
- readonly initializePosition: () => void;
55
57
  private drawSubNodesOutline;
56
58
  private initBox;
57
59
  private drawBox;
@@ -67,10 +69,12 @@ export declare class TimelineNode extends Container {
67
69
  /**
68
70
  * Subnodes
69
71
  */
70
- expandSubNodes(): void;
71
- updateSubNodesContentPosition(): void;
72
+ private expandSubNodes;
73
+ private drawLoadingSubNodes;
74
+ private drawNoSubNodesMessage;
75
+ private updateSubNodesContentPosition;
72
76
  private initSubNodesTicker;
73
- collapseSubNodes(): Promise<void>;
77
+ private collapseSubNodes;
74
78
  /**
75
79
  * Update Functions
76
80
  */
@@ -85,6 +89,7 @@ export declare class TimelineNode extends Container {
85
89
  /**
86
90
  * Utilities
87
91
  */
92
+ readonly initializePosition: () => void;
88
93
  private getNodeWidth;
89
94
  private getNodeHeight;
90
95
  private getBoxBodyWidth;
@@ -93,7 +98,12 @@ export declare class TimelineNode extends Container {
93
98
  private checkIsLabelInBox;
94
99
  private getSelectedRingSize;
95
100
  private emitSelection;
101
+ private readonly getSubNodesData;
102
+ private getSubContentHeight;
103
+ private emitSubNodesToggle;
96
104
  private destroySubNodesContent;
105
+ private destroySubNodesLoadingIndicator;
106
+ private destroyNoSubNodesMessage;
97
107
  private destroyRunningNodeTicker;
98
108
  private killTweens;
99
109
  destroy(): void;
@@ -26,7 +26,6 @@ export declare class TimelineNodes extends Container {
26
26
  private initLayoutWorker;
27
27
  private initDeselectLayer;
28
28
  private renderLayout;
29
- private updateLayoutRows;
30
29
  private createNode;
31
30
  private addNodeEdges;
32
31
  /**
@@ -34,6 +33,7 @@ export declare class TimelineNodes extends Container {
34
33
  */
35
34
  update(newData: GraphTimelineNode[]): void;
36
35
  updateHideEdges(): void;
36
+ private updateLayoutRows;
37
37
  updateLayoutSetting(): void;
38
38
  /**
39
39
  * Node Selection
@@ -1,4 +1,4 @@
1
- import { P as c, R as b, T as C, C as P } from "./index-84d70f95.mjs";
1
+ import { P as c, R as b, T as C, C as P } from "./index-abc60fc8.mjs";
2
2
  import "vue";
3
3
  class u {
4
4
  constructor(t) {
@@ -1530,4 +1530,4 @@ export {
1530
1530
  O as Viewport,
1531
1531
  $ as Wheel
1532
1532
  };
1533
- //# sourceMappingURL=viewport.es-435cc2e6.mjs.map
1533
+ //# sourceMappingURL=viewport.es-20251669.mjs.map