@prefecthq/prefect-ui-library 2.2.4 → 2.2.5

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 l, watch as s, openBlock as i, createBlock as m, resolveDynamicComponent as c, createCommentVNode as p } from "vue";
2
- import { i as f, u as F, a as d, m as v, g as y } from "./index-b5f2e26b.mjs";
2
+ import { i as f, u as F, a as d, m as v, g as y } from "./index-35a42259.mjs";
3
3
  import "@prefecthq/vue-charts";
4
4
  import "@prefecthq/prefect-design";
5
5
  import "@prefecthq/vue-compositions";
@@ -37,4 +37,4 @@ const a = (n) => {
37
37
  export {
38
38
  k as default
39
39
  };
40
- //# sourceMappingURL=FlowRunsPageWithDefaultFilter-614b705e.mjs.map
40
+ //# sourceMappingURL=FlowRunsPageWithDefaultFilter-e4468e7f.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowRunsPageWithDefaultFilter-614b705e.mjs","sources":["../src/components/FlowRunsPageWithDefaultFilter.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, getQueryForFlowRunsFilter, isFunction } from '..'\n import { useDefaultSavedSearchFilter } from '@/compositions/useDefaultSavedSearchFilter'\n\n const setDefaultFlowRunsFilterQueryIfEmpty: NavigationGuard = (to) => {\n const { value: defaultFlowRunsSavedSearchFilter, isCustom } = useDefaultSavedSearchFilter()\n if (isEmptyObject(to.query) && isCustom.value) {\n const asFlowRunsFilter = mapper.map('SavedSearchFilter', defaultFlowRunsSavedSearchFilter.value, 'FlowRunsFilter')\n const asQueryParams = getQueryForFlowRunsFilter(asFlowRunsFilter)\n return { ...to, query: asQueryParams }\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","asFlowRunsFilter","mapper","asQueryParams","getQueryForFlowRunsFilter","__default__","defineComponent","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch","props"],"mappings":";;;;;;;AAUE,MAAMA,IAAwD,CAACC,MAAO;AACpE,QAAM,EAAE,OAAOC,GAAkC,UAAAC,MAAaC,EAA4B;AAC1F,MAAIC,EAAcJ,EAAG,KAAK,KAAKE,EAAS,OAAO;AAC7C,UAAMG,IAAmBC,EAAO,IAAI,qBAAqBL,EAAiC,OAAO,gBAAgB,GAC3GM,IAAgBC,EAA0BH,CAAgB;AAChE,WAAO,EAAE,GAAGL,GAAI,OAAOO,EAAc;AAAA,EACvC;AACO,SAAA;AACT,GAEeE,IAAAC,EAAgB;AAAA,EAC7B,QAAQ,CAAC;AAAA,EACT,kBAAkBX;AAAA,EAClB,mBAAmBA;AACrB,CAAC;;;;;;;iBASKY,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAC7B;AAEM,WAAAE,EAAAC,EAAM,WAAW,MAAM;AACvB,MAAAJ,EAA6BI,EAAM,SAAS,IACxCA,EAAA,UAAA,EAAY,KAAK,CAAaH,MAAA;AAClC,QAAAH,EAAe,QAAQG,EAAU;AAAA,MAAA,CAClC,IAEDH,EAAe,QAAQM,EAAM;AAAA,IAC/B,GACC,EAAE,WAAW,GAAA,CAAM;;;"}
1
+ {"version":3,"file":"FlowRunsPageWithDefaultFilter-e4468e7f.mjs","sources":["../src/components/FlowRunsPageWithDefaultFilter.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, getQueryForFlowRunsFilter, isFunction } from '..'\n import { useDefaultSavedSearchFilter } from '@/compositions/useDefaultSavedSearchFilter'\n\n const setDefaultFlowRunsFilterQueryIfEmpty: NavigationGuard = (to) => {\n const { value: defaultFlowRunsSavedSearchFilter, isCustom } = useDefaultSavedSearchFilter()\n if (isEmptyObject(to.query) && isCustom.value) {\n const asFlowRunsFilter = mapper.map('SavedSearchFilter', defaultFlowRunsSavedSearchFilter.value, 'FlowRunsFilter')\n const asQueryParams = getQueryForFlowRunsFilter(asFlowRunsFilter)\n return { ...to, query: asQueryParams }\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","asFlowRunsFilter","mapper","asQueryParams","getQueryForFlowRunsFilter","__default__","defineComponent","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch","props"],"mappings":";;;;;;;AAUE,MAAMA,IAAwD,CAACC,MAAO;AACpE,QAAM,EAAE,OAAOC,GAAkC,UAAAC,MAAaC,EAA4B;AAC1F,MAAIC,EAAcJ,EAAG,KAAK,KAAKE,EAAS,OAAO;AAC7C,UAAMG,IAAmBC,EAAO,IAAI,qBAAqBL,EAAiC,OAAO,gBAAgB,GAC3GM,IAAgBC,EAA0BH,CAAgB;AAChE,WAAO,EAAE,GAAGL,GAAI,OAAOO,EAAc;AAAA,EACvC;AACO,SAAA;AACT,GAEeE,IAAAC,EAAgB;AAAA,EAC7B,QAAQ,CAAC;AAAA,EACT,kBAAkBX;AAAA,EAClB,mBAAmBA;AACrB,CAAC;;;;;;;iBASKY,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAC7B;AAEM,WAAAE,EAAAC,EAAM,WAAW,MAAM;AACvB,MAAAJ,EAA6BI,EAAM,SAAS,IACxCA,EAAA,UAAA,EAAY,KAAK,CAAaH,MAAA;AAClC,QAAAH,EAAe,QAAQG,EAAU;AAAA,MAAA,CAClC,IAEDH,EAAe,QAAQM,EAAM;AAAA,IAC/B,GACC,EAAE,WAAW,GAAA,CAAM;;;"}
@@ -25851,7 +25851,7 @@ function GSe(t) {
25851
25851
  {
25852
25852
  name: "workspace.flow-runs",
25853
25853
  path: "",
25854
- component: () => import("./FlowRunsPageWithDefaultFilter-614b705e.mjs"),
25854
+ component: () => import("./FlowRunsPageWithDefaultFilter-e4468e7f.mjs"),
25855
25855
  props: { component: t.flowRuns }
25856
25856
  },
25857
25857
  {
@@ -37093,7 +37093,7 @@ const Lue = { class: "flow-run-filtered-list" }, Nue = { class: "flow-run-filter
37093
37093
  sort: l.value
37094
37094
  };
37095
37095
  }), { flowRuns: p, total: h, subscriptions: f, next: y } = Yi(d, {
37096
- interval: 3e3,
37096
+ interval: 3e4,
37097
37097
  mode: "infinite"
37098
37098
  }), v = E(() => f.executed && p.value.length === 0), { stuck: _ } = hV(i), b = E(() => ({
37099
37099
  header: {
@@ -77459,4 +77459,4 @@ export {
77459
77459
  MO as y,
77460
77460
  koe as z
77461
77461
  };
77462
- //# sourceMappingURL=index-b5f2e26b.mjs.map
77462
+ //# sourceMappingURL=index-35a42259.mjs.map