@prefecthq/prefect-ui-library 3.13.1 → 3.13.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/{RunsPageWithDefaultFilter-CtTS9hES.mjs → RunsPageWithDefaultFilter-CiOt86J6.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-CtTS9hES.mjs.map → RunsPageWithDefaultFilter-CiOt86J6.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-BFuMULzc.mjs → WorkQueueToWorkPoolQueueRedirect-DtIdo-_n.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-BFuMULzc.mjs.map → WorkQueueToWorkPoolQueueRedirect-DtIdo-_n.mjs.map} +1 -1
- package/dist/{index-DYoVH4HK.mjs → index-DJJf3s-P.mjs} +6 -5
- package/dist/{index-DYoVH4HK.mjs.map → index-DJJf3s-P.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/components/FlowRunGraph.vue.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/FlowRunGraph.vue +3 -2
package/dist/{RunsPageWithDefaultFilter-CtTS9hES.mjs → RunsPageWithDefaultFilter-CiOt86J6.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, shallowRef as c, watch as l, createBlock as s, createCommentVNode as m, openBlock as i, resolveDynamicComponent as p } 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-DJJf3s-P.mjs";
|
|
3
3
|
const a = (n) => {
|
|
4
4
|
const { value: e, isCustom: t } = d();
|
|
5
5
|
if (v(n.query) && t.value)
|
|
@@ -32,4 +32,4 @@ const a = (n) => {
|
|
|
32
32
|
export {
|
|
33
33
|
C as default
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=RunsPageWithDefaultFilter-
|
|
35
|
+
//# sourceMappingURL=RunsPageWithDefaultFilter-CiOt86J6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"RunsPageWithDefaultFilter-CiOt86J6.mjs","sources":["../src/components/RunsPageWithDefaultFilter.vue"],"sourcesContent":["<template>\n <component :is=\"routeComponent\" v-if=\"routeComponent !== null\" />\n</template>\n\n<script lang=\"ts\">\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</script>\n\n<script setup lang=\"ts\">\n import { 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 type LazilyLoadedRouteComponent = () => Promise<{ default: RouteComponent }>\n\n defineOptions({\n beforeRouteEnter: setDefaultFlowRunsFilterQueryIfEmpty,\n beforeRouteUpdate: setDefaultFlowRunsFilterQueryIfEmpty,\n })\n\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","props","__props","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch"],"mappings":";;AAKE,MAAMA,IAAwD,CAACC,MAAO;AACpE,QAAM,EAAE,OAAOC,GAAkC,UAAAC,EAAA,IAAaC,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,EAAM;AAAA,aACfE,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IAAA;AAIhB,SAAA;AACT;;;;;;;;AAgBA,UAAMC,IAAQC,GAIRC,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAAA;AAGvB,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,IAAM;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
2
|
import { useRouteParam as m, useSubscription as i } from "@prefecthq/vue-compositions";
|
|
3
3
|
import { useRouter as n } from "vue-router";
|
|
4
|
-
import { b as a, c } from "./index-
|
|
4
|
+
import { b as a, c } from "./index-DJJf3s-P.mjs";
|
|
5
5
|
import "@prefecthq/prefect-design";
|
|
6
6
|
import "vee-validate";
|
|
7
7
|
import "@prefecthq/vue-charts";
|
|
@@ -22,4 +22,4 @@ const W = /* @__PURE__ */ p({
|
|
|
22
22
|
export {
|
|
23
23
|
W as default
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-
|
|
25
|
+
//# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-DtIdo-_n.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-
|
|
1
|
+
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-DtIdo-_n.mjs","sources":["../src/components/WorkQueueToWorkPoolQueueRedirect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n /**\n * This component is used to redirect the user from an old, deprecated work queue route\n * to a work pool queue route. This is necessary because the old work queue routes are\n * were keyed on work queue id and the new routes are nested under work pools by\n * work pool name and work queue name.\n */\n import { useRouteParam, useSubscription } from '@prefecthq/vue-compositions'\n\n import { useRouter } from 'vue-router'\n import { useWorkspaceRoutes, useWorkspaceApi } from '@/compositions'\n\n const workQueueId = useRouteParam('workQueueId')\n\n const api = useWorkspaceApi()\n const workQueueSubscription = useSubscription(api.workQueues.getWorkQueue, [workQueueId])\n\n const router = useRouter()\n const routes = useWorkspaceRoutes()\n\n workQueueSubscription.promise().then(({ response: workQueue }) => {\n if (!workQueue.workPoolName) {\n router.replace(routes.workPools())\n return\n }\n router.replace(routes.workPoolQueue(workQueue.workPoolName, workQueue.name))\n })\n</script>"],"names":["workQueueId","useRouteParam","api","useWorkspaceApi","workQueueSubscription","useSubscription","router","useRouter","routes","useWorkspaceRoutes","workQueue"],"mappings":";;;;;;;;;;AAYQ,UAAAA,IAAcC,EAAc,aAAa,GAEzCC,IAAMC,EAAgB,GACtBC,IAAwBC,EAAgBH,EAAI,WAAW,cAAc,CAACF,CAAW,CAAC,GAElFM,IAASC,EAAU,GACnBC,IAASC,EAAmB;AAElC,WAAAL,EAAsB,UAAU,KAAK,CAAC,EAAE,UAAUM,QAAgB;AAC5D,UAAA,CAACA,EAAU,cAAc;AACpB,QAAAJ,EAAA,QAAQE,EAAO,WAAW;AACjC;AAAA,MAAA;AAEF,MAAAF,EAAO,QAAQE,EAAO,cAAcE,EAAU,cAAcA,EAAU,IAAI,CAAC;AAAA,IAAA,CAC5E;;;;"}
|
|
@@ -25889,7 +25889,7 @@ function KFe(t) {
|
|
|
25889
25889
|
{
|
|
25890
25890
|
name: "workspace.runs",
|
|
25891
25891
|
path: "",
|
|
25892
|
-
component: () => import("./RunsPageWithDefaultFilter-
|
|
25892
|
+
component: () => import("./RunsPageWithDefaultFilter-CiOt86J6.mjs"),
|
|
25893
25893
|
props: { component: t.runs }
|
|
25894
25894
|
},
|
|
25895
25895
|
{
|
|
@@ -26005,7 +26005,7 @@ function KFe(t) {
|
|
|
26005
26005
|
{
|
|
26006
26006
|
name: "workspace.work-queues.work-queue",
|
|
26007
26007
|
path: "work-queue/:workQueueId",
|
|
26008
|
-
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-
|
|
26008
|
+
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-DtIdo-_n.mjs"))
|
|
26009
26009
|
}
|
|
26010
26010
|
]
|
|
26011
26011
|
},
|
|
@@ -79119,6 +79119,7 @@ const rEe = { class: "flex items-center gap-2" }, oEe = /* @__PURE__ */ B({
|
|
|
79119
79119
|
props: {
|
|
79120
79120
|
flowRun: {},
|
|
79121
79121
|
fullscreen: { type: Boolean },
|
|
79122
|
+
isCollapsed: { type: Boolean },
|
|
79122
79123
|
selected: {},
|
|
79123
79124
|
viewport: {},
|
|
79124
79125
|
fetchEvents: { type: Function }
|
|
@@ -79226,8 +79227,8 @@ const rEe = { class: "flex items-center gap-2" }, oEe = /* @__PURE__ */ B({
|
|
|
79226
79227
|
config: R.value,
|
|
79227
79228
|
class: "flow-run-graph__graph p-background"
|
|
79228
79229
|
}, null, 8, ["viewport", "selected", "fullscreen", "config"]),
|
|
79229
|
-
F.value
|
|
79230
|
-
a.value ? (k(), H("p", cEe, " Failed to load graph: " + ee(c.value), 1)) : G("", !0)
|
|
79230
|
+
!F.value && !j.isCollapsed ? (k(), H("p", lEe, ee(m.value), 1)) : G("", !0),
|
|
79231
|
+
a.value && !j.isCollapsed ? (k(), H("p", cEe, " Failed to load graph: " + ee(c.value), 1)) : G("", !0)
|
|
79231
79232
|
], 64)) : (k(), D(zX, {
|
|
79232
79233
|
key: 1,
|
|
79233
79234
|
onConfirm: X
|
|
@@ -91422,4 +91423,4 @@ export {
|
|
|
91422
91423
|
xde as y,
|
|
91423
91424
|
mF as z
|
|
91424
91425
|
};
|
|
91425
|
-
//# sourceMappingURL=index-
|
|
91426
|
+
//# sourceMappingURL=index-DJJf3s-P.mjs.map
|