@prefecthq/prefect-ui-library 3.0.1 → 3.0.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-BVqNQC5v.mjs → RunsPageWithDefaultFilter-BCl1-RE3.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BVqNQC5v.mjs.map → RunsPageWithDefaultFilter-BCl1-RE3.mjs.map} +1 -1
- package/dist/{index-DrOXvI63.mjs → index-O7uqAfLu.mjs} +16 -3
- package/dist/{index-DrOXvI63.mjs.map → index-O7uqAfLu.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/router/index.d.ts +2 -1
- package/dist/types/src/router/routes.d.ts +1 -0
- package/package.json +1 -1
- package/src/router/index.ts +15 -2
- package/src/router/routes.ts +1 -0
package/dist/{RunsPageWithDefaultFilter-BVqNQC5v.mjs → RunsPageWithDefaultFilter-BCl1-RE3.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-O7uqAfLu.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-BCl1-RE3.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"RunsPageWithDefaultFilter-BCl1-RE3.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;;;"}
|
|
@@ -24647,6 +24647,7 @@ function WCe(t) {
|
|
|
24647
24647
|
artifacts: () => ({ name: "workspace.artifacts", params: { ...t } }),
|
|
24648
24648
|
dashboard: () => ({ name: "workspace.dashboard", params: { ...t } }),
|
|
24649
24649
|
runs: (e) => ({ name: "workspace.runs", params: { ...t }, query: e }),
|
|
24650
|
+
/** @deprecated use workspace.runs instead */
|
|
24650
24651
|
flowRuns: () => ({ name: "workspace.flow-runs", params: { ...t } }),
|
|
24651
24652
|
flowRun: (e) => ({ name: "workspace.runs.flow-run", params: { flowRunId: e, ...t } }),
|
|
24652
24653
|
taskRun: (e) => ({ name: "workspace.runs.task-run", params: { taskRunId: e, ...t } }),
|
|
@@ -24705,7 +24706,7 @@ function BCe(t) {
|
|
|
24705
24706
|
{
|
|
24706
24707
|
name: "workspace.runs",
|
|
24707
24708
|
path: "",
|
|
24708
|
-
component: () => import("./RunsPageWithDefaultFilter-
|
|
24709
|
+
component: () => import("./RunsPageWithDefaultFilter-BCl1-RE3.mjs"),
|
|
24709
24710
|
props: { component: t.runs }
|
|
24710
24711
|
},
|
|
24711
24712
|
{
|
|
@@ -24723,7 +24724,19 @@ function BCe(t) {
|
|
|
24723
24724
|
{
|
|
24724
24725
|
path: "flow-runs",
|
|
24725
24726
|
name: "workspace.flow-runs",
|
|
24726
|
-
redirect: { name: "workspace.runs" }
|
|
24727
|
+
redirect: (e) => ({ name: "workspace.runs", query: e.query, params: e.params }),
|
|
24728
|
+
children: [
|
|
24729
|
+
{
|
|
24730
|
+
name: "workspace.flow-runs.flow-run",
|
|
24731
|
+
path: "flow-run/:flowRunId",
|
|
24732
|
+
redirect: (e) => ({ name: "workspace.runs.flow-run", query: e.query, params: e.params })
|
|
24733
|
+
},
|
|
24734
|
+
{
|
|
24735
|
+
name: "workspace.flow-runs.task-run",
|
|
24736
|
+
path: "task-run/:taskRunId",
|
|
24737
|
+
redirect: (e) => ({ name: "workspace.runs.task-run", query: e.query, params: e.params })
|
|
24738
|
+
}
|
|
24739
|
+
]
|
|
24727
24740
|
},
|
|
24728
24741
|
{
|
|
24729
24742
|
path: "flows",
|
|
@@ -84389,4 +84402,4 @@ export {
|
|
|
84389
84402
|
hle as y,
|
|
84390
84403
|
gle as z
|
|
84391
84404
|
};
|
|
84392
|
-
//# sourceMappingURL=index-
|
|
84405
|
+
//# sourceMappingURL=index-O7uqAfLu.mjs.map
|