@prefecthq/prefect-ui-library 2.2.0 → 2.2.1

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-d0318743.mjs";
2
+ import { i as f, u as F, a as d, m as v, g as y } from "./index-c4db673e.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-2457f537.mjs.map
40
+ //# sourceMappingURL=FlowRunsPageWithDefaultFilter-cbe3ff97.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowRunsPageWithDefaultFilter-2457f537.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-cbe3ff97.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;;;"}
@@ -25785,7 +25785,7 @@ function WSe(t) {
25785
25785
  {
25786
25786
  name: "workspace.flow-runs",
25787
25787
  path: "",
25788
- component: () => import("./FlowRunsPageWithDefaultFilter-2457f537.mjs"),
25788
+ component: () => import("./FlowRunsPageWithDefaultFilter-cbe3ff97.mjs"),
25789
25789
  props: { component: t.flowRuns }
25790
25790
  },
25791
25791
  {
@@ -67884,9 +67884,9 @@ const __e = { class: "flow-run-graph" }, b_e = 2e3, w_e = /* @__PURE__ */ $({
67884
67884
  __name: "FlowRunGraph",
67885
67885
  props: {
67886
67886
  flowRun: {},
67887
- viewport: {},
67888
67887
  fullscreen: { type: Boolean },
67889
- selected: {}
67888
+ selected: {},
67889
+ viewport: {}
67890
67890
  },
67891
67891
  emits: ["update:viewport", "update:fullscreen", "update:selected"],
67892
67892
  async setup(t, { emit: e }) {
@@ -77371,4 +77371,4 @@ export {
77371
77371
  xO as y,
77372
77372
  moe as z
77373
77373
  };
77374
- //# sourceMappingURL=index-d0318743.mjs.map
77374
+ //# sourceMappingURL=index-c4db673e.mjs.map