@prefecthq/prefect-ui-library 1.4.6 → 1.4.7
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/{index-fc10472d.mjs → index-c7254856.mjs} +15860 -15842
- package/dist/index-c7254856.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +240 -238
- package/dist/prefect-ui-library.umd.js +83 -83
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/FlowRunDeployment.vue.d.ts +15 -0
- package/dist/types/src/components/FlowRunTaskCount.vue.d.ts +2 -11
- package/dist/types/src/components/FlowRunTimeline.vue.d.ts +9 -2
- package/dist/types/src/components/FlowRunWorkPool.vue.d.ts +15 -0
- package/dist/types/src/components/FlowRunWorkQueue.vue.d.ts +17 -0
- package/dist/types/src/models/StateType.d.ts +3 -0
- package/dist/{viewport.es-84fb8076-717d5319.mjs → viewport.es-14935be0-d1813701.mjs} +10 -10
- package/dist/{viewport.es-84fb8076-717d5319.mjs.map → viewport.es-14935be0-d1813701.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-fc10472d.mjs.map +0 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { TimelineVisibleDateRange } from '@prefecthq/graphs';
|
|
1
2
|
import { FlowRun } from '../models';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
flowRun: FlowRun;
|
|
4
|
-
|
|
5
|
+
visibleDateRange?: TimelineVisibleDateRange | undefined;
|
|
6
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:visibleDateRange": (value: TimelineVisibleDateRange | undefined) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
9
|
flowRun: FlowRun;
|
|
6
|
-
|
|
10
|
+
visibleDateRange?: TimelineVisibleDateRange | undefined;
|
|
11
|
+
}>>> & {
|
|
12
|
+
"onUpdate:visibleDateRange"?: ((value: TimelineVisibleDateRange | undefined) => any) | undefined;
|
|
13
|
+
}, {}>;
|
|
7
14
|
export default _default;
|
|
8
15
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
16
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
workPoolName: string;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
workPoolName: string;
|
|
5
|
+
}>>>, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
workQueueName: string;
|
|
3
|
+
workPoolName?: string | null | undefined;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
workQueueName: string;
|
|
6
|
+
workPoolName?: string | null | undefined;
|
|
7
|
+
}>>>, {}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
11
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
12
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
13
|
+
} : {
|
|
14
|
+
type: import('vue').PropType<T[K]>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -2,6 +2,9 @@ export declare const stateType: readonly ["completed", "running", "scheduled", "
|
|
|
2
2
|
export type StateType = typeof stateType[number];
|
|
3
3
|
export type ServerStateType = Uppercase<StateType>;
|
|
4
4
|
export declare function isStateType(value: unknown): value is StateType;
|
|
5
|
+
export declare const pendingStateType: string[];
|
|
6
|
+
export type PendingStateType = typeof pendingStateType[number];
|
|
7
|
+
export declare function isPendingStateType(value: unknown): value is PendingStateType;
|
|
5
8
|
export declare const terminalStateType: string[];
|
|
6
9
|
export type TerminalStateType = typeof terminalStateType[number];
|
|
7
10
|
export type ServerTerminalStateType = Uppercase<TerminalStateType>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as c, J as b, X as O, f as k } from "./index-c7254856.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/vue-charts";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
@@ -975,7 +975,7 @@ class G extends d {
|
|
|
975
975
|
this.snapping = null, super.resume();
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
const
|
|
978
|
+
const J = {
|
|
979
979
|
percent: 0.1,
|
|
980
980
|
smooth: !1,
|
|
981
981
|
interrupt: !0,
|
|
@@ -987,9 +987,9 @@ const N = {
|
|
|
987
987
|
trackpadPinch: !1,
|
|
988
988
|
wheelZoom: !0
|
|
989
989
|
};
|
|
990
|
-
class
|
|
990
|
+
class N extends d {
|
|
991
991
|
constructor(t, e = {}) {
|
|
992
|
-
super(t), this.options = Object.assign({},
|
|
992
|
+
super(t), this.options = Object.assign({}, J, e), this.keyIsPressed = !1, this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
|
|
993
993
|
}
|
|
994
994
|
handleKeyPresses(t) {
|
|
995
995
|
window.addEventListener("keydown", (e) => {
|
|
@@ -1078,7 +1078,7 @@ class $ extends d {
|
|
|
1078
1078
|
return !this.parent.options.passiveWheel;
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
|
-
class
|
|
1081
|
+
class $ {
|
|
1082
1082
|
constructor(t) {
|
|
1083
1083
|
this.viewport = t, this.touches = [], this.addListeners();
|
|
1084
1084
|
}
|
|
@@ -1285,7 +1285,7 @@ class C extends k {
|
|
|
1285
1285
|
{ divWheel: document.body },
|
|
1286
1286
|
et,
|
|
1287
1287
|
t
|
|
1288
|
-
), this.screenWidth = this.options.screenWidth, this.screenHeight = this.options.screenHeight, this._worldWidth = this.options.worldWidth, this._worldHeight = this.options.worldHeight, this.forceHitArea = this.options.forceHitArea, this.threshold = this.options.threshold, this.options.divWheel = this.options.divWheel || document.body, this.options.disableOnContextMenu && this.options.divWheel.addEventListener("contextmenu", this._disableOnContextMenu), this.options.noTicker || (this.tickerFunction = () => this.update(this.options.ticker.elapsedMS), this.options.ticker.add(this.tickerFunction)), this.input = new
|
|
1288
|
+
), this.screenWidth = this.options.screenWidth, this.screenHeight = this.options.screenHeight, this._worldWidth = this.options.worldWidth, this._worldHeight = this.options.worldHeight, this.forceHitArea = this.options.forceHitArea, this.threshold = this.options.threshold, this.options.divWheel = this.options.divWheel || document.body, this.options.disableOnContextMenu && this.options.divWheel.addEventListener("contextmenu", this._disableOnContextMenu), this.options.noTicker || (this.tickerFunction = () => this.update(this.options.ticker.elapsedMS), this.options.ticker.add(this.tickerFunction)), this.input = new $(this), this.plugins = new tt(this);
|
|
1289
1289
|
}
|
|
1290
1290
|
destroy(t) {
|
|
1291
1291
|
!this.options.noTicker && this.tickerFunction && this.options.ticker.remove(this.tickerFunction), this.options.disableOnContextMenu && this.options.divWheel.removeEventListener("contextmenu", this._disableOnContextMenu), this.input.destroy(), super.destroy(t);
|
|
@@ -1494,7 +1494,7 @@ class C extends k {
|
|
|
1494
1494
|
return this.plugins.add("follow", new j(this, t, e)), this;
|
|
1495
1495
|
}
|
|
1496
1496
|
wheel(t) {
|
|
1497
|
-
return this.plugins.add("wheel", new
|
|
1497
|
+
return this.plugins.add("wheel", new N(this, t)), this;
|
|
1498
1498
|
}
|
|
1499
1499
|
animate(t) {
|
|
1500
1500
|
return this.plugins.add("animate", new u(this, t)), this;
|
|
@@ -1525,7 +1525,7 @@ export {
|
|
|
1525
1525
|
V as Decelerate,
|
|
1526
1526
|
M as Drag,
|
|
1527
1527
|
j as Follow,
|
|
1528
|
-
|
|
1528
|
+
$ as InputManager,
|
|
1529
1529
|
q as MouseEdges,
|
|
1530
1530
|
y as Pinch,
|
|
1531
1531
|
d as Plugin,
|
|
@@ -1533,6 +1533,6 @@ export {
|
|
|
1533
1533
|
Q as Snap,
|
|
1534
1534
|
G as SnapZoom,
|
|
1535
1535
|
C as Viewport,
|
|
1536
|
-
|
|
1536
|
+
N as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-14935be0-d1813701.mjs.map
|