@prefecthq/prefect-ui-library 2.6.43 → 2.6.44
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-uYjgqTdx.mjs → FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-uYjgqTdx.mjs.map → FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs.map} +1 -1
- package/dist/{index-NSK4bd9J.mjs → index-yZWS2LQ5.mjs} +32 -31
- package/dist/index-yZWS2LQ5.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +40 -40
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/services/Api.d.ts +3 -1
- package/dist/types/src/utilities/api.d.ts +2 -1
- package/package.json +1 -1
- package/dist/index-NSK4bd9J.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-yZWS2LQ5.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-TxIDOqX6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-TxIDOqX6.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;;;"}
|
|
@@ -2455,12 +2455,13 @@ const m6 = (t) => t.baseUrl, y6 = { "X-PREFECT-UI": !0 }, g6 = (t) => {
|
|
|
2455
2455
|
return t.token && (e.Authorization = `bearer ${t.token}`), e;
|
|
2456
2456
|
};
|
|
2457
2457
|
class _T {
|
|
2458
|
-
constructor(e) {
|
|
2458
|
+
constructor(e, n = null) {
|
|
2459
2459
|
K(this, "apiConfig");
|
|
2460
2460
|
K(this, "apiHeaders", [y6, g6]);
|
|
2461
2461
|
K(this, "apiBaseUrl", m6);
|
|
2462
2462
|
K(this, "routePrefix");
|
|
2463
|
-
this
|
|
2463
|
+
K(this, "instanceSetupHook");
|
|
2464
|
+
this.apiConfig = e, this.instanceSetupHook = n;
|
|
2464
2465
|
}
|
|
2465
2466
|
composeBaseUrl() {
|
|
2466
2467
|
return typeof this.apiBaseUrl == "string" ? this.apiBaseUrl : this.apiBaseUrl(this.apiConfig);
|
|
@@ -2482,8 +2483,8 @@ class _T {
|
|
|
2482
2483
|
const e = {
|
|
2483
2484
|
baseURL: this.composeBaseUrl(),
|
|
2484
2485
|
headers: this.composeHeaders()
|
|
2485
|
-
};
|
|
2486
|
-
return
|
|
2486
|
+
}, n = vT.create(e);
|
|
2487
|
+
return this.instanceSetupHook && this.instanceSetupHook(n), n;
|
|
2487
2488
|
}
|
|
2488
2489
|
get(e, n) {
|
|
2489
2490
|
const r = this.combinePath(e);
|
|
@@ -3964,32 +3965,32 @@ class v$ extends yr {
|
|
|
3964
3965
|
return _e.map("WorkQueueStatusResponse", r, "WorkQueueStatus");
|
|
3965
3966
|
}
|
|
3966
3967
|
}
|
|
3967
|
-
function LDe(t) {
|
|
3968
|
+
function LDe(t, e = null) {
|
|
3968
3969
|
return {
|
|
3969
|
-
artifacts: zn(new H6(t)),
|
|
3970
|
-
blockCapabilities: zn(new $6(t)),
|
|
3971
|
-
blockDocuments: zn(new Y6(t)),
|
|
3972
|
-
blockSchemas: zn(new Z6(t)),
|
|
3973
|
-
blockTypes: zn(new j6(t)),
|
|
3974
|
-
collections: zn(new uae(t)),
|
|
3975
|
-
concurrencyLimits: zn(new z6(t)),
|
|
3976
|
-
concurrencyV2Limits: zn(new K6(t)),
|
|
3977
|
-
deployments: zn(new Q6(t)),
|
|
3978
|
-
deploymentSchedules: zn(new q6(t)),
|
|
3979
|
-
flowRuns: zn(new J6(t)),
|
|
3980
|
-
flows: zn(new e$(t)),
|
|
3981
|
-
health: zn(new W6(t)),
|
|
3982
|
-
logs: zn(new t$(t)),
|
|
3983
|
-
notifications: zn(new n$(t)),
|
|
3984
|
-
savedSearches: zn(new r$(t)),
|
|
3985
|
-
taskRuns: zn(new h$(t)),
|
|
3986
|
-
ui: zn(new G6(t)),
|
|
3987
|
-
variables: zn(new f$(t)),
|
|
3988
|
-
workPoolQueues: zn(new m$(t)),
|
|
3989
|
-
workPools: zn(new y$(t)),
|
|
3990
|
-
workPoolWorkers: zn(new g$(t)),
|
|
3991
|
-
workQueues: zn(new v$(t)),
|
|
3992
|
-
schemas: zn(new p$(t))
|
|
3970
|
+
artifacts: zn(new H6(t, e)),
|
|
3971
|
+
blockCapabilities: zn(new $6(t, e)),
|
|
3972
|
+
blockDocuments: zn(new Y6(t, e)),
|
|
3973
|
+
blockSchemas: zn(new Z6(t, e)),
|
|
3974
|
+
blockTypes: zn(new j6(t, e)),
|
|
3975
|
+
collections: zn(new uae(t, e)),
|
|
3976
|
+
concurrencyLimits: zn(new z6(t, e)),
|
|
3977
|
+
concurrencyV2Limits: zn(new K6(t, e)),
|
|
3978
|
+
deployments: zn(new Q6(t, e)),
|
|
3979
|
+
deploymentSchedules: zn(new q6(t, e)),
|
|
3980
|
+
flowRuns: zn(new J6(t, e)),
|
|
3981
|
+
flows: zn(new e$(t, e)),
|
|
3982
|
+
health: zn(new W6(t, e)),
|
|
3983
|
+
logs: zn(new t$(t, e)),
|
|
3984
|
+
notifications: zn(new n$(t, e)),
|
|
3985
|
+
savedSearches: zn(new r$(t, e)),
|
|
3986
|
+
taskRuns: zn(new h$(t, e)),
|
|
3987
|
+
ui: zn(new G6(t, e)),
|
|
3988
|
+
variables: zn(new f$(t, e)),
|
|
3989
|
+
workPoolQueues: zn(new m$(t, e)),
|
|
3990
|
+
workPools: zn(new y$(t, e)),
|
|
3991
|
+
workPoolWorkers: zn(new g$(t, e)),
|
|
3992
|
+
workQueues: zn(new v$(t, e)),
|
|
3993
|
+
schemas: zn(new p$(t, e))
|
|
3993
3994
|
};
|
|
3994
3995
|
}
|
|
3995
3996
|
const _$ = Symbol("WorkspaceApi"), b$ = 4, TA = "cache-key", xA = `${TA}-${b$}`;
|
|
@@ -27212,7 +27213,7 @@ function lCe(t) {
|
|
|
27212
27213
|
{
|
|
27213
27214
|
name: "workspace.flow-runs",
|
|
27214
27215
|
path: "",
|
|
27215
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
27216
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs"),
|
|
27216
27217
|
props: { component: t.flowRuns }
|
|
27217
27218
|
},
|
|
27218
27219
|
{
|
|
@@ -82442,4 +82443,4 @@ export {
|
|
|
82442
82443
|
zie as y,
|
|
82443
82444
|
Jie as z
|
|
82444
82445
|
};
|
|
82445
|
-
//# sourceMappingURL=index-
|
|
82446
|
+
//# sourceMappingURL=index-yZWS2LQ5.mjs.map
|