@prefecthq/prefect-ui-library 3.0.1 → 3.0.3

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-DrOXvI63.mjs";
2
+ import { i as f, u as d, a as v, m as y } from "./index-JtmLGGhe.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-BVqNQC5v.mjs.map
38
+ //# sourceMappingURL=RunsPageWithDefaultFilter-BWxqnE1p.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunsPageWithDefaultFilter-BVqNQC5v.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-BWxqnE1p.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;;;"}
@@ -24647,6 +24647,7 @@ function WCe(t) {
24647
24647
  artifacts: () => ({ name: "workspace.artifacts", params: { ...t } }),
24648
24648
  dashboard: () => ({ name: "workspace.dashboard", params: { ...t } }),
24649
24649
  runs: (e) => ({ name: "workspace.runs", params: { ...t }, query: e }),
24650
+ /** @deprecated use workspace.runs instead */
24650
24651
  flowRuns: () => ({ name: "workspace.flow-runs", params: { ...t } }),
24651
24652
  flowRun: (e) => ({ name: "workspace.runs.flow-run", params: { flowRunId: e, ...t } }),
24652
24653
  taskRun: (e) => ({ name: "workspace.runs.task-run", params: { taskRunId: e, ...t } }),
@@ -24705,7 +24706,7 @@ function BCe(t) {
24705
24706
  {
24706
24707
  name: "workspace.runs",
24707
24708
  path: "",
24708
- component: () => import("./RunsPageWithDefaultFilter-BVqNQC5v.mjs"),
24709
+ component: () => import("./RunsPageWithDefaultFilter-BWxqnE1p.mjs"),
24709
24710
  props: { component: t.runs }
24710
24711
  },
24711
24712
  {
@@ -24723,7 +24724,19 @@ function BCe(t) {
24723
24724
  {
24724
24725
  path: "flow-runs",
24725
24726
  name: "workspace.flow-runs",
24726
- redirect: { name: "workspace.runs" }
24727
+ redirect: (e) => ({ name: "workspace.runs", query: e.query, params: e.params }),
24728
+ children: [
24729
+ {
24730
+ name: "workspace.flow-runs.flow-run",
24731
+ path: "flow-run/:flowRunId",
24732
+ redirect: (e) => ({ name: "workspace.runs.flow-run", query: e.query, params: e.params })
24733
+ },
24734
+ {
24735
+ name: "workspace.flow-runs.task-run",
24736
+ path: "task-run/:taskRunId",
24737
+ redirect: (e) => ({ name: "workspace.runs.task-run", query: e.query, params: e.params })
24738
+ }
24739
+ ]
24727
24740
  },
24728
24741
  {
24729
24742
  path: "flows",
@@ -29052,8 +29065,8 @@ const tse = function(t) {
29052
29065
  state: {
29053
29066
  name: s
29054
29067
  },
29055
- expectedStartTimeAfter: i,
29056
- expectedStartTimeBefore: u
29068
+ startTimeAfter: i,
29069
+ startTimeBefore: u
29057
29070
  }
29058
29071
  };
29059
29072
  }, rse = function(t) {
@@ -84389,4 +84402,4 @@ export {
84389
84402
  hle as y,
84390
84403
  gle as z
84391
84404
  };
84392
- //# sourceMappingURL=index-DrOXvI63.mjs.map
84405
+ //# sourceMappingURL=index-JtmLGGhe.mjs.map