@prefecthq/prefect-ui-library 2.10.1 → 2.10.2
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.
- package/dist/{FlowRunsPageWithDefaultFilter-BLZb8xVV.mjs → FlowRunsPageWithDefaultFilter-B-n-pBrr.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-BLZb8xVV.mjs.map → FlowRunsPageWithDefaultFilter-B-n-pBrr.mjs.map} +1 -1
- package/dist/{index-D7gE2dA7.mjs → index--5Zw8w2K.mjs} +27 -27
- package/dist/{index-D7gE2dA7.mjs.map → index--5Zw8w2K.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +1 -1
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/compositions/useFlowRuns.d.ts +3 -3
- package/dist/types/src/compositions/useLastFlowRun.d.ts +3 -2
- package/dist/types/src/compositions/useNextFlowRun.d.ts +3 -2
- package/package.json +1 -1
- package/src/compositions/useFlowRuns.ts +4 -4
- package/src/compositions/useLastFlowRun.ts +4 -3
- package/src/compositions/useNextFlowRun.ts +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, shallowRef as l, watch as c, 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
|
|
2
|
+
import { i as f, u as d, a as v, m as y } from "./index--5Zw8w2K.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=FlowRunsPageWithDefaultFilter-
|
|
38
|
+
//# sourceMappingURL=FlowRunsPageWithDefaultFilter-B-n-pBrr.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-B-n-pBrr.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, 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;;;"}
|
|
@@ -20296,16 +20296,16 @@ function TCe(t) {
|
|
|
20296
20296
|
});
|
|
20297
20297
|
cF(s);
|
|
20298
20298
|
}
|
|
20299
|
-
function Rd(t) {
|
|
20300
|
-
const
|
|
20301
|
-
if (!
|
|
20299
|
+
function Rd(t, e) {
|
|
20300
|
+
const n = _e(), r = ze(), s = Se(() => {
|
|
20301
|
+
if (!r.read.flow_run)
|
|
20302
20302
|
return null;
|
|
20303
|
-
const
|
|
20304
|
-
return
|
|
20305
|
-
}),
|
|
20303
|
+
const l = qe(t);
|
|
20304
|
+
return l ? [l] : null;
|
|
20305
|
+
}), i = Gt(n.flowRuns.getFlowRuns, s, e), u = M(() => i.response ?? []);
|
|
20306
20306
|
return {
|
|
20307
|
-
subscription:
|
|
20308
|
-
flowRuns:
|
|
20307
|
+
subscription: i,
|
|
20308
|
+
flowRuns: u
|
|
20309
20309
|
};
|
|
20310
20310
|
}
|
|
20311
20311
|
function Ate(t, e) {
|
|
@@ -20377,22 +20377,22 @@ function SCe(t) {
|
|
|
20377
20377
|
record: n
|
|
20378
20378
|
};
|
|
20379
20379
|
}
|
|
20380
|
-
function dF(t) {
|
|
20381
|
-
const
|
|
20382
|
-
if (!
|
|
20380
|
+
function dF(t, e) {
|
|
20381
|
+
const n = ze(), r = () => {
|
|
20382
|
+
if (!n.read.flow_run)
|
|
20383
20383
|
return null;
|
|
20384
|
-
const
|
|
20385
|
-
return rn({},
|
|
20384
|
+
const u = /* @__PURE__ */ new Date(), l = qe(t);
|
|
20385
|
+
return rn({}, l, {
|
|
20386
20386
|
flowRuns: {
|
|
20387
|
-
expectedStartTimeBefore:
|
|
20387
|
+
expectedStartTimeBefore: u
|
|
20388
20388
|
},
|
|
20389
20389
|
sort: "EXPECTED_START_TIME_DESC",
|
|
20390
20390
|
limit: 1
|
|
20391
20391
|
});
|
|
20392
|
-
}, { flowRuns:
|
|
20392
|
+
}, { flowRuns: o, subscription: s } = Rd(r, e), i = M(() => o.value.at(0));
|
|
20393
20393
|
return {
|
|
20394
|
-
subscription:
|
|
20395
|
-
flowRun:
|
|
20394
|
+
subscription: s,
|
|
20395
|
+
flowRun: i
|
|
20396
20396
|
};
|
|
20397
20397
|
}
|
|
20398
20398
|
const Cte = E_("prefect-ui-library-default-logs-sort");
|
|
@@ -20409,12 +20409,12 @@ function pF(t = "TIMESTAMP_ASC") {
|
|
|
20409
20409
|
})
|
|
20410
20410
|
};
|
|
20411
20411
|
}
|
|
20412
|
-
function hF(t) {
|
|
20413
|
-
const
|
|
20414
|
-
if (!
|
|
20412
|
+
function hF(t, e) {
|
|
20413
|
+
const n = ze(), r = () => {
|
|
20414
|
+
if (!n.read.flow_run)
|
|
20415
20415
|
return null;
|
|
20416
|
-
const
|
|
20417
|
-
return rn({},
|
|
20416
|
+
const u = qe(t);
|
|
20417
|
+
return rn({}, u, {
|
|
20418
20418
|
flowRuns: {
|
|
20419
20419
|
state: {
|
|
20420
20420
|
name: ["Scheduled"]
|
|
@@ -20423,10 +20423,10 @@ function hF(t) {
|
|
|
20423
20423
|
sort: "EXPECTED_START_TIME_ASC",
|
|
20424
20424
|
limit: 1
|
|
20425
20425
|
});
|
|
20426
|
-
}, { flowRuns:
|
|
20426
|
+
}, { flowRuns: o, subscription: s } = Rd(r, e), i = M(() => o.value.at(0));
|
|
20427
20427
|
return {
|
|
20428
|
-
subscription:
|
|
20429
|
-
flowRun:
|
|
20428
|
+
subscription: s,
|
|
20429
|
+
flowRun: i
|
|
20430
20430
|
};
|
|
20431
20431
|
}
|
|
20432
20432
|
var l0 = { exports: {} };
|
|
@@ -24678,7 +24678,7 @@ function FCe(t) {
|
|
|
24678
24678
|
{
|
|
24679
24679
|
name: "workspace.flow-runs",
|
|
24680
24680
|
path: "",
|
|
24681
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
24681
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-B-n-pBrr.mjs"),
|
|
24682
24682
|
props: { component: t.flowRuns }
|
|
24683
24683
|
},
|
|
24684
24684
|
{
|
|
@@ -84181,4 +84181,4 @@ export {
|
|
|
84181
84181
|
hle as y,
|
|
84182
84182
|
gle as z
|
|
84183
84183
|
};
|
|
84184
|
-
//# sourceMappingURL=index
|
|
84184
|
+
//# sourceMappingURL=index--5Zw8w2K.mjs.map
|