@prefecthq/prefect-ui-library 2.6.45 → 2.6.46
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-5I0fPWMp.mjs → FlowRunsPageWithDefaultFilter-24eOJjv1.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-5I0fPWMp.mjs.map → FlowRunsPageWithDefaultFilter-24eOJjv1.mjs.map} +1 -1
- package/dist/{index-CWKlnmQd.mjs → index-pbDSYhyX.mjs} +4 -4
- package/dist/{index-CWKlnmQd.mjs.map → index-pbDSYhyX.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/package.json +1 -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-pbDSYhyX.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-24eOJjv1.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-24eOJjv1.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;;;"}
|
|
@@ -13214,7 +13214,7 @@ const DO = /* @__PURE__ */ U({
|
|
|
13214
13214
|
})) : Y("", !0),
|
|
13215
13215
|
s("jinja") ? (R(), L(p, {
|
|
13216
13216
|
key: 3,
|
|
13217
|
-
label: "
|
|
13217
|
+
label: "Use Jinja input",
|
|
13218
13218
|
onClick: d[3] || (d[3] = (g) => r("update:kind", "jinja"))
|
|
13219
13219
|
})) : Y("", !0)
|
|
13220
13220
|
], 64)),
|
|
@@ -27212,7 +27212,7 @@ function oCe(t) {
|
|
|
27212
27212
|
{
|
|
27213
27213
|
name: "workspace.flow-runs",
|
|
27214
27214
|
path: "",
|
|
27215
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
27215
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-24eOJjv1.mjs"),
|
|
27216
27216
|
props: { component: t.flowRuns }
|
|
27217
27217
|
},
|
|
27218
27218
|
{
|
|
@@ -38169,7 +38169,7 @@ const Lv = /* @__PURE__ */ U({
|
|
|
38169
38169
|
values: l.value,
|
|
38170
38170
|
"onUpdate:values": f[2] || (f[2] = (x) => l.value = x),
|
|
38171
38171
|
schema: p.deployment.parameterOpenApiSchemaV2,
|
|
38172
|
-
kinds: ["json"],
|
|
38172
|
+
kinds: ["json", "workspace_variable"],
|
|
38173
38173
|
onSubmit: d
|
|
38174
38174
|
}, null, 8, ["id", "values", "schema"])
|
|
38175
38175
|
]),
|
|
@@ -82240,4 +82240,4 @@ export {
|
|
|
82240
82240
|
Zie as y,
|
|
82241
82241
|
Qie as z
|
|
82242
82242
|
};
|
|
82243
|
-
//# sourceMappingURL=index-
|
|
82243
|
+
//# sourceMappingURL=index-pbDSYhyX.mjs.map
|