@prefecthq/prefect-ui-library 3.0.7 → 3.0.8

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, shallowRef as c, watch as l, openBlock as s, createBlock as m, resolveDynamicComponent as p, createCommentVNode as i } from "vue";
2
- import { i as f, u as d, a as v, m as y } from "./index-DnG9I1AB.mjs";
2
+ import { i as f, u as d, a as v, m as y } from "./index-55M-ke7P.mjs";
3
3
  const a = (n) => {
4
4
  const { value: e, isCustom: t } = d();
5
5
  if (v(n.query) && t.value)
@@ -35,4 +35,4 @@ const a = (n) => {
35
35
  export {
36
36
  C as default
37
37
  };
38
- //# sourceMappingURL=RunsPageWithDefaultFilter-BfmDgDM5.mjs.map
38
+ //# sourceMappingURL=RunsPageWithDefaultFilter-_YydMLC_.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunsPageWithDefaultFilter-BfmDgDM5.mjs","sources":["../src/components/RunsPageWithDefaultFilter.vue"],"sourcesContent":["<template>\n <component :is=\"routeComponent\" v-if=\"routeComponent !== null\" />\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, shallowRef, watch } from 'vue'\n import { NavigationGuard, RouteComponent } from 'vue-router'\n import { isEmptyObject, mapper, isFunction } from '..'\n import { useDefaultSavedSearchFilter } from '@/compositions/useDefaultSavedSearchFilter'\n\n const setDefaultFlowRunsFilterQueryIfEmpty: NavigationGuard = (to) => {\n const { value: defaultFlowRunsSavedSearchFilter, isCustom } = useDefaultSavedSearchFilter()\n\n if (isEmptyObject(to.query) && isCustom.value) {\n try {\n const query = mapper.map('SavedSearchFilter', defaultFlowRunsSavedSearchFilter.value, 'LocationQuery')\n\n return { ...to, query }\n } catch (error) {\n console.error(error)\n }\n }\n\n return true\n }\n\n export default defineComponent({\n expose: [],\n beforeRouteEnter: setDefaultFlowRunsFilterQueryIfEmpty,\n beforeRouteUpdate: setDefaultFlowRunsFilterQueryIfEmpty,\n })\n</script>\n\n<script setup lang=\"ts\">\n type LazilyLoadedRouteComponent = () => Promise<{ default: RouteComponent }>\n const props = defineProps<{\n component: RouteComponent | LazilyLoadedRouteComponent,\n }>()\n\n const routeComponent = shallowRef<RouteComponent | null>(null)\n\n function isLazilyLoadedRouteComponent(component: RouteComponent | LazilyLoadedRouteComponent): component is LazilyLoadedRouteComponent {\n return isFunction(component)\n }\n\n watch(props.component, () => {\n if (isLazilyLoadedRouteComponent(props.component)) {\n props.component().then(component => {\n routeComponent.value = component.default\n })\n } else {\n routeComponent.value = props.component\n }\n }, { immediate: true })\n</script>"],"names":["setDefaultFlowRunsFilterQueryIfEmpty","to","defaultFlowRunsSavedSearchFilter","isCustom","useDefaultSavedSearchFilter","isEmptyObject","query","mapper","error","__default__","defineComponent","props","__props","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch"],"mappings":";;AAUE,MAAMA,IAAwD,CAACC,MAAO;AACpE,QAAM,EAAE,OAAOC,GAAkC,UAAAC,MAAaC,EAA4B;AAE1F,MAAIC,EAAcJ,EAAG,KAAK,KAAKE,EAAS;AAClC,QAAA;AACF,YAAMG,IAAQC,EAAO,IAAI,qBAAqBL,EAAiC,OAAO,eAAe;AAE9F,aAAA,EAAE,GAAGD,GAAI,OAAAK;aACTE,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IACrB;AAGK,SAAA;AACT,GAEeC,IAAAC,EAAgB;AAAA,EAC7B,QAAQ,CAAC;AAAA,EACT,kBAAkBV;AAAA,EAClB,mBAAmBA;AACrB,CAAC;;;;;;;AAKD,UAAMW,IAAQC,GAIRC,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAC7B;AAEM,WAAAE,EAAAP,EAAM,WAAW,MAAM;AACvB,MAAAI,EAA6BJ,EAAM,SAAS,IACxCA,EAAA,UAAA,EAAY,KAAK,CAAaK,MAAA;AAClC,QAAAH,EAAe,QAAQG,EAAU;AAAA,MAAA,CAClC,IAEDH,EAAe,QAAQF,EAAM;AAAA,IAC/B,GACC,EAAE,WAAW,GAAA,CAAM;;;"}
1
+ {"version":3,"file":"RunsPageWithDefaultFilter-_YydMLC_.mjs","sources":["../src/components/RunsPageWithDefaultFilter.vue"],"sourcesContent":["<template>\n <component :is=\"routeComponent\" v-if=\"routeComponent !== null\" />\n</template>\n\n<script lang=\"ts\">\n import { defineComponent, shallowRef, watch } from 'vue'\n import { NavigationGuard, RouteComponent } from 'vue-router'\n import { isEmptyObject, mapper, isFunction } from '..'\n import { useDefaultSavedSearchFilter } from '@/compositions/useDefaultSavedSearchFilter'\n\n const setDefaultFlowRunsFilterQueryIfEmpty: NavigationGuard = (to) => {\n const { value: defaultFlowRunsSavedSearchFilter, isCustom } = useDefaultSavedSearchFilter()\n\n if (isEmptyObject(to.query) && isCustom.value) {\n try {\n const query = mapper.map('SavedSearchFilter', defaultFlowRunsSavedSearchFilter.value, 'LocationQuery')\n\n return { ...to, query }\n } catch (error) {\n console.error(error)\n }\n }\n\n return true\n }\n\n export default defineComponent({\n expose: [],\n beforeRouteEnter: setDefaultFlowRunsFilterQueryIfEmpty,\n beforeRouteUpdate: setDefaultFlowRunsFilterQueryIfEmpty,\n })\n</script>\n\n<script setup lang=\"ts\">\n type LazilyLoadedRouteComponent = () => Promise<{ default: RouteComponent }>\n const props = defineProps<{\n component: RouteComponent | LazilyLoadedRouteComponent,\n }>()\n\n const routeComponent = shallowRef<RouteComponent | null>(null)\n\n function isLazilyLoadedRouteComponent(component: RouteComponent | LazilyLoadedRouteComponent): component is LazilyLoadedRouteComponent {\n return isFunction(component)\n }\n\n watch(props.component, () => {\n if (isLazilyLoadedRouteComponent(props.component)) {\n props.component().then(component => {\n routeComponent.value = component.default\n })\n } else {\n routeComponent.value = props.component\n }\n }, { immediate: true })\n</script>"],"names":["setDefaultFlowRunsFilterQueryIfEmpty","to","defaultFlowRunsSavedSearchFilter","isCustom","useDefaultSavedSearchFilter","isEmptyObject","query","mapper","error","__default__","defineComponent","props","__props","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch"],"mappings":";;AAUE,MAAMA,IAAwD,CAACC,MAAO;AACpE,QAAM,EAAE,OAAOC,GAAkC,UAAAC,MAAaC,EAA4B;AAE1F,MAAIC,EAAcJ,EAAG,KAAK,KAAKE,EAAS;AAClC,QAAA;AACF,YAAMG,IAAQC,EAAO,IAAI,qBAAqBL,EAAiC,OAAO,eAAe;AAE9F,aAAA,EAAE,GAAGD,GAAI,OAAAK;aACTE,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IACrB;AAGK,SAAA;AACT,GAEeC,IAAAC,EAAgB;AAAA,EAC7B,QAAQ,CAAC;AAAA,EACT,kBAAkBV;AAAA,EAClB,mBAAmBA;AACrB,CAAC;;;;;;;AAKD,UAAMW,IAAQC,GAIRC,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAC7B;AAEM,WAAAE,EAAAP,EAAM,WAAW,MAAM;AACvB,MAAAI,EAA6BJ,EAAM,SAAS,IACxCA,EAAA,UAAA,EAAY,KAAK,CAAaK,MAAA;AAClC,QAAAH,EAAe,QAAQG,EAAU;AAAA,MAAA,CAClC,IAEDH,EAAe,QAAQF,EAAM;AAAA,IAC/B,GACC,EAAE,WAAW,GAAA,CAAM;;;"}
@@ -24786,7 +24786,7 @@ function tOe(t) {
24786
24786
  {
24787
24787
  name: "workspace.runs",
24788
24788
  path: "",
24789
- component: () => import("./RunsPageWithDefaultFilter-BfmDgDM5.mjs"),
24789
+ component: () => import("./RunsPageWithDefaultFilter-_YydMLC_.mjs"),
24790
24790
  props: { component: t.runs }
24791
24791
  },
24792
24792
  {
@@ -69740,7 +69740,7 @@ var k8 = { exports: {} };
69740
69740
  var _Te = k8.exports;
69741
69741
  const vTe = /* @__PURE__ */ xh(_Te), T8 = {
69742
69742
  inter: {
69743
- fontFamily: "InterVariable",
69743
+ fontFamily: "Inter",
69744
69744
  fontSize: 16,
69745
69745
  lineHeight: 20,
69746
69746
  fill: 16777215
@@ -71939,73 +71939,73 @@ const Gxe = { class: "flex items-center gap-2" }, Hxe = /* @__PURE__ */ W({
71939
71939
  },
71940
71940
  emits: ["update:viewport", "update:fullscreen", "update:selected"],
71941
71941
  setup(t, { emit: e }) {
71942
- const n = t, r = le(), o = le(!1), s = S({
71942
+ const n = t, r = e, o = le(), s = le(!1), i = S({
71943
71943
  get() {
71944
- return n.fullscreen ?? o.value;
71944
+ return n.fullscreen ?? s.value;
71945
71945
  },
71946
- set(c) {
71947
- o.value = c, e("update:fullscreen", c);
71946
+ set(d) {
71947
+ s.value = d, r("update:fullscreen", d);
71948
71948
  }
71949
71949
  });
71950
- Dt(() => n.selected, (c) => fu(c)), Qe.on("itemSelected", (c) => e("update:selected", c)), Dt(() => n.viewport, (c) => jke(c));
71951
- const i = S(() => ({
71950
+ Dt(() => n.selected, (d) => fu(d)), Qe.on("itemSelected", (d) => r("update:selected", d)), Dt(() => n.viewport, (d) => jke(d));
71951
+ const u = S(() => ({
71952
71952
  root: {
71953
- "run-graph--fullscreen": s.value
71953
+ "run-graph--fullscreen": i.value
71954
71954
  }
71955
71955
  }));
71956
- Qe.on("viewportDateRangeUpdated", (c) => e("update:viewport", c));
71957
- function u() {
71956
+ Qe.on("viewportDateRangeUpdated", (d) => r("update:viewport", d));
71957
+ function l() {
71958
71958
  IS({ animate: !0 });
71959
71959
  }
71960
- function l() {
71961
- s.value = !s.value;
71960
+ function a() {
71961
+ i.value = !i.value;
71962
71962
  }
71963
71963
  vl(() => {
71964
- if (!r.value)
71964
+ if (!o.value)
71965
71965
  throw new Error("Stage does not exist");
71966
71966
  _xe({
71967
- stage: r.value,
71967
+ stage: o.value,
71968
71968
  props: n
71969
71969
  });
71970
71970
  }), R6(() => {
71971
71971
  vxe();
71972
- }), BA(["c", "f", "Escape"], a);
71973
- function a(c) {
71974
- if (!(G8(c.target) || c.metaKey || c.ctrlKey))
71975
- switch (c.key) {
71972
+ }), BA(["c", "f", "Escape"], c);
71973
+ function c(d) {
71974
+ if (!(G8(d.target) || d.metaKey || d.ctrlKey))
71975
+ switch (d.key) {
71976
71976
  case "c":
71977
- u();
71977
+ l();
71978
71978
  break;
71979
71979
  case "f":
71980
- l();
71980
+ a();
71981
71981
  break;
71982
71982
  case "Escape":
71983
- s.value && l();
71983
+ i.value && a();
71984
71984
  break;
71985
71985
  }
71986
71986
  }
71987
- return (c, d) => {
71988
- const p = E("p-button");
71987
+ return (d, p) => {
71988
+ const f = E("p-button");
71989
71989
  return k(), $("div", {
71990
- class: At(["run-graph", i.value.root])
71990
+ class: At(["run-graph", u.value.root])
71991
71991
  }, [
71992
71992
  q("div", {
71993
71993
  ref_key: "stage",
71994
- ref: r,
71994
+ ref: o,
71995
71995
  class: "run-graph__stage"
71996
71996
  }, null, 512),
71997
71997
  q("div", $xe, [
71998
- v(p, {
71998
+ v(f, {
71999
71999
  title: "Recenter graph (c)",
72000
72000
  icon: "Target",
72001
72001
  flat: "",
72002
- onClick: u
72002
+ onClick: l
72003
72003
  }),
72004
- v(p, {
72004
+ v(f, {
72005
72005
  title: "Toggle fullscreen (f)",
72006
72006
  icon: "ArrowsPointingOutIcon",
72007
72007
  flat: "",
72008
- onClick: l
72008
+ onClick: a
72009
72009
  }),
72010
72010
  v(Hxe)
72011
72011
  ])
@@ -85806,4 +85806,4 @@ export {
85806
85806
  Nle as y,
85807
85807
  Vle as z
85808
85808
  };
85809
- //# sourceMappingURL=index-DnG9I1AB.mjs.map
85809
+ //# sourceMappingURL=index-55M-ke7P.mjs.map