@prefecthq/prefect-ui-library 2.6.3 → 2.6.4
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-bBqX7s3i.mjs → FlowRunsPageWithDefaultFilter-WdpwJJK-.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-bBqX7s3i.mjs.map → FlowRunsPageWithDefaultFilter-WdpwJJK-.mjs.map} +1 -1
- package/dist/{index-DUJFpCCe.mjs → index-XWOkZ4L0.mjs} +14 -6
- package/dist/index-XWOkZ4L0.mjs.map +1 -0
- 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/services/WorkspaceBlockDocumentsApi.d.ts +1 -0
- package/dist/types/src/services/WorkspaceDeploymentsApi.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-DUJFpCCe.mjs.map +0 -1
|
@@ -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-XWOkZ4L0.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-WdpwJJK-.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-WdpwJJK-.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;;;"}
|
|
@@ -3122,8 +3122,8 @@ class r6 extends Tr {
|
|
|
3122
3122
|
j(this, "routePrefix", "/block_documents");
|
|
3123
3123
|
j(this, "batcher", new Qu(async (n) => {
|
|
3124
3124
|
if (n.length === 1) {
|
|
3125
|
-
const [o] = n
|
|
3126
|
-
return
|
|
3125
|
+
const [o] = n;
|
|
3126
|
+
return this.getSingleBlockDocument.bind(this, o);
|
|
3127
3127
|
}
|
|
3128
3128
|
const r = await this.getBlockDocuments({
|
|
3129
3129
|
blockDocuments: {
|
|
@@ -3137,6 +3137,10 @@ class r6 extends Tr {
|
|
|
3137
3137
|
getBlockDocument(n) {
|
|
3138
3138
|
return this.batcher.batch(n);
|
|
3139
3139
|
}
|
|
3140
|
+
async getSingleBlockDocument(n) {
|
|
3141
|
+
const { data: r } = await this.get(`/${n}`);
|
|
3142
|
+
return _e.map("BlockDocumentResponse", r, "BlockDocument");
|
|
3143
|
+
}
|
|
3140
3144
|
async getBlockDocuments(n = {}) {
|
|
3141
3145
|
const r = _e.map("BlockDocumentsFilter", n, "BlockDocumentsFilterRequest"), { data: o } = await this.post("/filter", r);
|
|
3142
3146
|
return _e.map("BlockDocumentResponse", o, "BlockDocument");
|
|
@@ -3272,8 +3276,8 @@ class u6 extends Tr {
|
|
|
3272
3276
|
j(this, "routePrefix", "/deployments");
|
|
3273
3277
|
j(this, "batcher", new Qu(async (n) => {
|
|
3274
3278
|
if (n.length === 1) {
|
|
3275
|
-
const [o] = n
|
|
3276
|
-
return
|
|
3279
|
+
const [o] = n;
|
|
3280
|
+
return this.getSingleDeployment.bind(this, o);
|
|
3277
3281
|
}
|
|
3278
3282
|
const r = await this.getDeployments({
|
|
3279
3283
|
deployments: {
|
|
@@ -3286,6 +3290,10 @@ class u6 extends Tr {
|
|
|
3286
3290
|
getDeployment(n) {
|
|
3287
3291
|
return this.batcher.batch(n);
|
|
3288
3292
|
}
|
|
3293
|
+
async getSingleDeployment(n) {
|
|
3294
|
+
const { data: r } = await this.get(`/${n}`);
|
|
3295
|
+
return _e.map("DeploymentResponse", r, "Deployment");
|
|
3296
|
+
}
|
|
3289
3297
|
async getDeployments(n = {}) {
|
|
3290
3298
|
const r = _e.map("DeploymentsFilter", n, "DeploymentsFilterRequest"), { data: o } = await this.post("/filter", r);
|
|
3291
3299
|
return _e.map("DeploymentResponse", o, "Deployment");
|
|
@@ -26999,7 +27007,7 @@ function xMe(t) {
|
|
|
26999
27007
|
{
|
|
27000
27008
|
name: "workspace.flow-runs",
|
|
27001
27009
|
path: "",
|
|
27002
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
27010
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-WdpwJJK-.mjs"),
|
|
27003
27011
|
props: { component: t.flowRuns }
|
|
27004
27012
|
},
|
|
27005
27013
|
{
|
|
@@ -79864,4 +79872,4 @@ export {
|
|
|
79864
79872
|
Gse as y,
|
|
79865
79873
|
Zse as z
|
|
79866
79874
|
};
|
|
79867
|
-
//# sourceMappingURL=index-
|
|
79875
|
+
//# sourceMappingURL=index-XWOkZ4L0.mjs.map
|