@prefecthq/graphs 2.2.15 → 2.2.16
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 +29 -29
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +2 -2
- package/dist/graphs.umd.js.map +1 -1
- package/dist/types/demo/App.vue.d.ts +1 -1
- package/dist/types/demo/components/AppComponentNavigationItems.vue.d.ts +1 -1
- package/dist/types/demo/components/AppNavigationBar.vue.d.ts +1 -1
- package/dist/types/demo/sections/WelcomePage.vue.d.ts +1 -1
- package/dist/types/demo/sections/components/RunGraphDemo.vue.d.ts +1 -1
- package/dist/types/src/components/RunGraph.vue.d.ts +1 -1
- package/dist/types/src/components/RunGraphSettings.vue.d.ts +1 -1
- package/dist/types/tailwind.config.d.ts +1 -0
- package/package.json +4 -3
package/dist/graphs.mjs
CHANGED
|
@@ -30653,7 +30653,7 @@ var jb = { exports: {} };
|
|
|
30653
30653
|
var cR = jb.exports;
|
|
30654
30654
|
const uR = /* @__PURE__ */ Wn(cR), Jb = {
|
|
30655
30655
|
inter: {
|
|
30656
|
-
fontFamily: "
|
|
30656
|
+
fontFamily: "Inter",
|
|
30657
30657
|
fontSize: 16,
|
|
30658
30658
|
lineHeight: 20,
|
|
30659
30659
|
fill: 16777215
|
|
@@ -32871,73 +32871,73 @@ const kP = { class: "flex items-center gap-2" }, NP = /* @__PURE__ */ Cg({
|
|
|
32871
32871
|
},
|
|
32872
32872
|
emits: ["update:viewport", "update:fullscreen", "update:selected"],
|
|
32873
32873
|
setup(r, { emit: t }) {
|
|
32874
|
-
const e = r, i = Bf(),
|
|
32874
|
+
const e = r, i = t, s = Bf(), n = Bf(!1), o = un({
|
|
32875
32875
|
get() {
|
|
32876
|
-
return e.fullscreen ??
|
|
32876
|
+
return e.fullscreen ?? n.value;
|
|
32877
32877
|
},
|
|
32878
|
-
set(
|
|
32879
|
-
|
|
32878
|
+
set(u) {
|
|
32879
|
+
n.value = u, i("update:fullscreen", u);
|
|
32880
32880
|
}
|
|
32881
32881
|
});
|
|
32882
|
-
fu(() => e.selected, (
|
|
32883
|
-
const
|
|
32882
|
+
fu(() => e.selected, (u) => Ki(u)), Q.on("itemSelected", (u) => i("update:selected", u)), fu(() => e.viewport, (u) => OM(u));
|
|
32883
|
+
const a = un(() => ({
|
|
32884
32884
|
root: {
|
|
32885
|
-
"run-graph--fullscreen":
|
|
32885
|
+
"run-graph--fullscreen": o.value
|
|
32886
32886
|
}
|
|
32887
32887
|
}));
|
|
32888
|
-
Q.on("viewportDateRangeUpdated", (
|
|
32889
|
-
function
|
|
32888
|
+
Q.on("viewportDateRangeUpdated", (u) => i("update:viewport", u));
|
|
32889
|
+
function h() {
|
|
32890
32890
|
Rf({ animate: !0 });
|
|
32891
32891
|
}
|
|
32892
|
-
function
|
|
32893
|
-
|
|
32892
|
+
function l() {
|
|
32893
|
+
o.value = !o.value;
|
|
32894
32894
|
}
|
|
32895
32895
|
Cx(() => {
|
|
32896
|
-
if (!
|
|
32896
|
+
if (!s.value)
|
|
32897
32897
|
throw new Error("Stage does not exist");
|
|
32898
32898
|
cP({
|
|
32899
|
-
stage:
|
|
32899
|
+
stage: s.value,
|
|
32900
32900
|
props: e
|
|
32901
32901
|
});
|
|
32902
32902
|
}), Ex(() => {
|
|
32903
32903
|
uP();
|
|
32904
|
-
}), Ig(["c", "f", "Escape"],
|
|
32905
|
-
function
|
|
32906
|
-
if (!(gx(
|
|
32907
|
-
switch (
|
|
32904
|
+
}), Ig(["c", "f", "Escape"], c);
|
|
32905
|
+
function c(u) {
|
|
32906
|
+
if (!(gx(u.target) || u.metaKey || u.ctrlKey))
|
|
32907
|
+
switch (u.key) {
|
|
32908
32908
|
case "c":
|
|
32909
|
-
|
|
32909
|
+
h();
|
|
32910
32910
|
break;
|
|
32911
32911
|
case "f":
|
|
32912
|
-
|
|
32912
|
+
l();
|
|
32913
32913
|
break;
|
|
32914
32914
|
case "Escape":
|
|
32915
|
-
|
|
32915
|
+
o.value && l();
|
|
32916
32916
|
break;
|
|
32917
32917
|
}
|
|
32918
32918
|
}
|
|
32919
|
-
return (
|
|
32920
|
-
const
|
|
32919
|
+
return (u, d) => {
|
|
32920
|
+
const f = rn("p-button");
|
|
32921
32921
|
return pu(), Eg("div", {
|
|
32922
|
-
class: Ix(["run-graph",
|
|
32922
|
+
class: Ix(["run-graph", a.value.root])
|
|
32923
32923
|
}, [
|
|
32924
32924
|
mu("div", {
|
|
32925
32925
|
ref_key: "stage",
|
|
32926
|
-
ref:
|
|
32926
|
+
ref: s,
|
|
32927
32927
|
class: "run-graph__stage"
|
|
32928
32928
|
}, null, 512),
|
|
32929
32929
|
mu("div", DP, [
|
|
32930
|
-
pe(
|
|
32930
|
+
pe(f, {
|
|
32931
32931
|
title: "Recenter graph (c)",
|
|
32932
32932
|
icon: "Target",
|
|
32933
32933
|
flat: "",
|
|
32934
|
-
onClick:
|
|
32934
|
+
onClick: h
|
|
32935
32935
|
}),
|
|
32936
|
-
pe(
|
|
32936
|
+
pe(f, {
|
|
32937
32937
|
title: "Toggle fullscreen (f)",
|
|
32938
32938
|
icon: "ArrowsPointingOutIcon",
|
|
32939
32939
|
flat: "",
|
|
32940
|
-
onClick:
|
|
32940
|
+
onClick: l
|
|
32941
32941
|
}),
|
|
32942
32942
|
pe(NP)
|
|
32943
32943
|
])
|