@prefecthq/prefect-ui-library 1.4.6 → 1.5.0
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-d9d3a498.mjs} +17975 -17325
- package/dist/index-d9d3a498.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +645 -632
- 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/demo/compositions/useFlowMock.d.ts +4 -1
- package/dist/types/demo/sections/flows/FlowList.vue.d.ts +2 -0
- package/dist/types/demo/sections/flows/FlowListItem.vue.d.ts +2 -0
- package/dist/types/demo/services/mockWorkspaceDeploymentsApi.d.ts +6 -0
- package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +6 -0
- package/dist/types/demo/services/mockWorkspaceFlowsApi.d.ts +6 -0
- package/dist/types/demo/utilities/data.d.ts +2 -2
- package/dist/types/src/components/DeploymentList.vue.d.ts +43 -0
- package/dist/types/src/components/DeploymentListItem.vue.d.ts +23 -0
- package/dist/types/src/components/ExtraInfoModal.vue.d.ts +1 -0
- package/dist/types/src/components/FlowList.vue.d.ts +44 -0
- package/dist/types/src/components/FlowListItem.vue.d.ts +31 -0
- 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/components/ListItemMeta.vue.d.ts +24 -0
- package/dist/types/src/components/ListItemMetaFlowRun.vue.d.ts +18 -0
- package/dist/types/src/components/StateListItem.vue.d.ts +8 -6
- package/dist/types/src/components/index.d.ts +10 -4
- package/dist/types/src/compositions/index.d.ts +5 -0
- package/dist/types/src/compositions/useDeployments.d.ts +7 -0
- package/dist/types/src/compositions/useDeploymentsCount.d.ts +6 -0
- package/dist/types/src/compositions/useFlows.d.ts +4 -2
- package/dist/types/src/compositions/useFlowsCount.d.ts +6 -0
- package/dist/types/src/compositions/useLastFlowRun.d.ts +9 -0
- package/dist/types/src/compositions/useNextFlowRun.d.ts +9 -0
- package/dist/types/src/localization/index.d.ts +12 -0
- package/dist/types/src/localization/locale/en.d.ts +12 -0
- package/dist/types/src/models/StateType.d.ts +3 -0
- package/dist/{viewport.es-84fb8076-717d5319.mjs → viewport.es-14935be0-cad7f008.mjs} +10 -10
- package/dist/{viewport.es-84fb8076-717d5319.mjs.map → viewport.es-14935be0-cad7f008.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/index-fc10472d.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as c, J as b, X as O, f as k } from "./index-d9d3a498.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-cad7f008.mjs.map
|