@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 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: "InterVariable",
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(), s = Bf(!1), n = un({
32874
+ const e = r, i = t, s = Bf(), n = Bf(!1), o = un({
32875
32875
  get() {
32876
- return e.fullscreen ?? s.value;
32876
+ return e.fullscreen ?? n.value;
32877
32877
  },
32878
- set(c) {
32879
- s.value = c, t("update:fullscreen", c);
32878
+ set(u) {
32879
+ n.value = u, i("update:fullscreen", u);
32880
32880
  }
32881
32881
  });
32882
- fu(() => e.selected, (c) => Ki(c)), Q.on("itemSelected", (c) => t("update:selected", c)), fu(() => e.viewport, (c) => OM(c));
32883
- const o = un(() => ({
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": n.value
32885
+ "run-graph--fullscreen": o.value
32886
32886
  }
32887
32887
  }));
32888
- Q.on("viewportDateRangeUpdated", (c) => t("update:viewport", c));
32889
- function a() {
32888
+ Q.on("viewportDateRangeUpdated", (u) => i("update:viewport", u));
32889
+ function h() {
32890
32890
  Rf({ animate: !0 });
32891
32891
  }
32892
- function h() {
32893
- n.value = !n.value;
32892
+ function l() {
32893
+ o.value = !o.value;
32894
32894
  }
32895
32895
  Cx(() => {
32896
- if (!i.value)
32896
+ if (!s.value)
32897
32897
  throw new Error("Stage does not exist");
32898
32898
  cP({
32899
- stage: i.value,
32899
+ stage: s.value,
32900
32900
  props: e
32901
32901
  });
32902
32902
  }), Ex(() => {
32903
32903
  uP();
32904
- }), Ig(["c", "f", "Escape"], l);
32905
- function l(c) {
32906
- if (!(gx(c.target) || c.metaKey || c.ctrlKey))
32907
- switch (c.key) {
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
- a();
32909
+ h();
32910
32910
  break;
32911
32911
  case "f":
32912
- h();
32912
+ l();
32913
32913
  break;
32914
32914
  case "Escape":
32915
- n.value && h();
32915
+ o.value && l();
32916
32916
  break;
32917
32917
  }
32918
32918
  }
32919
- return (c, u) => {
32920
- const d = rn("p-button");
32919
+ return (u, d) => {
32920
+ const f = rn("p-button");
32921
32921
  return pu(), Eg("div", {
32922
- class: Ix(["run-graph", o.value.root])
32922
+ class: Ix(["run-graph", a.value.root])
32923
32923
  }, [
32924
32924
  mu("div", {
32925
32925
  ref_key: "stage",
32926
- ref: i,
32926
+ ref: s,
32927
32927
  class: "run-graph__stage"
32928
32928
  }, null, 512),
32929
32929
  mu("div", DP, [
32930
- pe(d, {
32930
+ pe(f, {
32931
32931
  title: "Recenter graph (c)",
32932
32932
  icon: "Target",
32933
32933
  flat: "",
32934
- onClick: a
32934
+ onClick: h
32935
32935
  }),
32936
- pe(d, {
32936
+ pe(f, {
32937
32937
  title: "Toggle fullscreen (f)",
32938
32938
  icon: "ArrowsPointingOutIcon",
32939
32939
  flat: "",
32940
- onClick: h
32940
+ onClick: l
32941
32941
  }),
32942
32942
  pe(NP)
32943
32943
  ])