@prefecthq/prefect-ui-library 2.0.16 → 2.0.17

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-b6961f37.mjs";
2
+ import { i as f, u as F, a as d, m as v, g as y } from "./index-04f2413a.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-c2928893.mjs.map
40
+ //# sourceMappingURL=FlowRunsPageWithDefaultFilter-755dfdfa.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowRunsPageWithDefaultFilter-c2928893.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-755dfdfa.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;;;"}
@@ -25490,7 +25490,7 @@ function pbe(n) {
25490
25490
  {
25491
25491
  name: "workspace.flow-runs",
25492
25492
  path: "",
25493
- component: () => import("./FlowRunsPageWithDefaultFilter-c2928893.mjs"),
25493
+ component: () => import("./FlowRunsPageWithDefaultFilter-755dfdfa.mjs"),
25494
25494
  props: { component: n.flowRuns }
25495
25495
  },
25496
25496
  {
@@ -38644,7 +38644,9 @@ const tae = { class: "flow-run-sub-flows" }, nae = { class: "flow-run-sub-flows_
38644
38644
  parentFlowRunId: [e.flowRunId]
38645
38645
  },
38646
38646
  sort: a.value
38647
- }), { flowRuns: l, total: i, subscriptions: p, next: h } = Ga(u), d = E(() => !p.loading && l.value.length === 0);
38647
+ }), { flowRuns: l, total: i, subscriptions: p, next: h } = Ga(u, {
38648
+ mode: "infinite"
38649
+ }), d = E(() => !p.loading && l.value.length === 0);
38648
38650
  function f() {
38649
38651
  t.value = [], r.value = "";
38650
38652
  }
@@ -52366,7 +52368,7 @@ function Ehe(n) {
52366
52368
  globalThis.__PIXI_APP__ = n;
52367
52369
  }
52368
52370
  async function Mhe() {
52369
- const { Viewport: n } = await import("./viewport.es-88169ec4-fa855dbb.mjs");
52371
+ const { Viewport: n } = await import("./viewport.es-88169ec4-24304354.mjs");
52370
52372
  return n;
52371
52373
  }
52372
52374
  async function Phe(n, e) {
@@ -63712,4 +63714,4 @@ export {
63712
63714
  uJ as y,
63713
63715
  SP as z
63714
63716
  };
63715
- //# sourceMappingURL=index-b6961f37.mjs.map
63717
+ //# sourceMappingURL=index-04f2413a.mjs.map