@prefecthq/prefect-ui-library 3.11.19 → 3.11.21
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-BhVVK-3-.mjs → RunsPageWithDefaultFilter-BRNxzEFA.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BhVVK-3-.mjs.map → RunsPageWithDefaultFilter-BRNxzEFA.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DA3b0_mc.mjs → WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-DA3b0_mc.mjs.map → WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.mjs.map} +1 -1
- package/dist/{index-CLfWuFoz.mjs → index-Cvqk7HR7.mjs} +10 -5
- package/dist/{index-CLfWuFoz.mjs.map → index-Cvqk7HR7.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +2 -2
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/types/states.d.ts +2 -1
- package/package.json +4 -4
- package/src/components/FlowRunsBarChart.vue +11 -2
- package/src/maps/dashboard.ts +3 -0
- package/src/styles/index.css +12 -0
- package/src/types/states.ts +2 -0
package/dist/{RunsPageWithDefaultFilter-BhVVK-3-.mjs → RunsPageWithDefaultFilter-BRNxzEFA.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, shallowRef as c, watch as l, 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-Cvqk7HR7.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=RunsPageWithDefaultFilter-
|
|
38
|
+
//# sourceMappingURL=RunsPageWithDefaultFilter-BRNxzEFA.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"RunsPageWithDefaultFilter-BRNxzEFA.mjs","sources":["../src/components/RunsPageWithDefaultFilter.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;;;"}
|
|
@@ -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-Cvqk7HR7.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-Bj0-59z5.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-
|
|
1
|
+
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.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,KACNC,IAAwBC,EAAgBH,EAAI,WAAW,cAAc,CAACF,CAAW,CAAC,GAElFM,IAASC,KACTC,IAASC;AAEf,WAAAL,EAAsB,UAAU,KAAK,CAAC,EAAE,UAAUM,QAAgB;AAC5D,UAAA,CAACA,EAAU,cAAc;AACpB,QAAAJ,EAAA,QAAQE,EAAO,UAAW,CAAA;AACjC;AAAA,MACF;AACA,MAAAF,EAAO,QAAQE,EAAO,cAAcE,EAAU,cAAcA,EAAU,IAAI,CAAC;AAAA,IAAA,CAC5E;;;;"}
|
|
@@ -18084,6 +18084,7 @@ const sm = /* @__PURE__ */ Lh(Qee), G0 = [
|
|
|
18084
18084
|
"Running",
|
|
18085
18085
|
"Retrying",
|
|
18086
18086
|
"Completed",
|
|
18087
|
+
"Cached",
|
|
18087
18088
|
"Cancelled",
|
|
18088
18089
|
"Cancelling",
|
|
18089
18090
|
"Crashed",
|
|
@@ -18101,6 +18102,7 @@ const sm = /* @__PURE__ */ Lh(Qee), G0 = [
|
|
|
18101
18102
|
Running: "running",
|
|
18102
18103
|
Retrying: "running",
|
|
18103
18104
|
Completed: "completed",
|
|
18105
|
+
Cached: "completed",
|
|
18104
18106
|
Cancelled: "cancelled",
|
|
18105
18107
|
Cancelling: "cancelling",
|
|
18106
18108
|
Crashed: "crashed",
|
|
@@ -19186,6 +19188,7 @@ const Une = function(t) {
|
|
|
19186
19188
|
return {
|
|
19187
19189
|
flowRuns: {
|
|
19188
19190
|
tags: {
|
|
19191
|
+
operator: "or",
|
|
19189
19192
|
name: t.tags
|
|
19190
19193
|
},
|
|
19191
19194
|
parentTaskRunIdNull: t.hideSubflows ? !0 : void 0
|
|
@@ -19203,6 +19206,7 @@ const Une = function(t) {
|
|
|
19203
19206
|
historyIntervalSeconds: r / 20,
|
|
19204
19207
|
flowRuns: {
|
|
19205
19208
|
tags: {
|
|
19209
|
+
operator: "or",
|
|
19206
19210
|
name: t.tags
|
|
19207
19211
|
},
|
|
19208
19212
|
parentTaskRunIdNull: t.hideSubflows ? !0 : void 0
|
|
@@ -19215,6 +19219,7 @@ const Une = function(t) {
|
|
|
19215
19219
|
expectedStartTimeAfter: e,
|
|
19216
19220
|
expectedStartTimeBefore: n,
|
|
19217
19221
|
tags: {
|
|
19222
|
+
operator: "or",
|
|
19218
19223
|
name: t.tags
|
|
19219
19224
|
},
|
|
19220
19225
|
parentTaskRunIdNull: t.hideSubflows ? !0 : void 0
|
|
@@ -25516,7 +25521,7 @@ function mLe(t) {
|
|
|
25516
25521
|
{
|
|
25517
25522
|
name: "workspace.runs",
|
|
25518
25523
|
path: "",
|
|
25519
|
-
component: () => import("./RunsPageWithDefaultFilter-
|
|
25524
|
+
component: () => import("./RunsPageWithDefaultFilter-BRNxzEFA.mjs"),
|
|
25520
25525
|
props: { component: t.runs }
|
|
25521
25526
|
},
|
|
25522
25527
|
{
|
|
@@ -25632,7 +25637,7 @@ function mLe(t) {
|
|
|
25632
25637
|
{
|
|
25633
25638
|
name: "workspace.work-queues.work-queue",
|
|
25634
25639
|
path: "work-queue/:workQueueId",
|
|
25635
|
-
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-
|
|
25640
|
+
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-Bj0-59z5.mjs"))
|
|
25636
25641
|
}
|
|
25637
25642
|
]
|
|
25638
25643
|
},
|
|
@@ -39026,14 +39031,14 @@ const Xc = /* @__PURE__ */ W({
|
|
|
39026
39031
|
"flow-runs-bar-chart--mini": e.mini
|
|
39027
39032
|
}
|
|
39028
39033
|
})), p = () => {
|
|
39029
|
-
if (isNaN(a.value))
|
|
39034
|
+
if (isNaN(a.value) || a.value === 0)
|
|
39030
39035
|
return null;
|
|
39031
39036
|
const C = ze(e.filter), F = {
|
|
39032
39037
|
limit: a.value,
|
|
39033
39038
|
sort: "START_TIME_DESC"
|
|
39034
39039
|
};
|
|
39035
39040
|
return Wt({}, C, F);
|
|
39036
|
-
}, { flowRuns: f } = Kd(p), m = R(() => A(f.value)), _ = R(() => f.value.reduce((C, F) => F.duration > C ? F.duration : C, 0)), b = R(() => {
|
|
39041
|
+
}, { flowRuns: f } = Kd(p), m = R(() => A(f.value).slice(-l.value)), _ = R(() => f.value.reduce((C, F) => F.duration > C ? F.duration : C, 0)), b = R(() => {
|
|
39037
39042
|
const C = Y5();
|
|
39038
39043
|
return C.domain([0, _.value]), C.range([0, u.value]), C;
|
|
39039
39044
|
});
|
|
@@ -90518,4 +90523,4 @@ export {
|
|
|
90518
90523
|
O8 as y,
|
|
90519
90524
|
h2 as z
|
|
90520
90525
|
};
|
|
90521
|
-
//# sourceMappingURL=index-
|
|
90526
|
+
//# sourceMappingURL=index-Cvqk7HR7.mjs.map
|