@prefecthq/prefect-ui-library 2.4.34 → 2.4.36
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-ZMCWnNIF.mjs → FlowRunsPageWithDefaultFilter-70vMgGCO.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-ZMCWnNIF.mjs.map → FlowRunsPageWithDefaultFilter-70vMgGCO.mjs.map} +1 -1
- package/dist/{index-pOHfmkt5.mjs → index-fKmiuPrT.mjs} +15 -10
- package/dist/index-fKmiuPrT.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +4 -4
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/models/Artifact.d.ts +5 -5
- package/dist/types/src/models/WorkQueue.d.ts +2 -0
- package/dist/types/src/models/api/WorkPoolQueueResponse.d.ts +1 -1
- package/dist/types/src/models/api/WorkQueueResponse.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-pOHfmkt5.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, shallowRef as l, watch as c, openBlock as m, createBlock as p, resolveDynamicComponent as s, 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-fKmiuPrT.mjs";
|
|
3
3
|
import "@prefecthq/vue-charts";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
5
5
|
import "@prefecthq/vue-compositions";
|
|
@@ -40,4 +40,4 @@ const a = (r) => {
|
|
|
40
40
|
export {
|
|
41
41
|
k as default
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=FlowRunsPageWithDefaultFilter-
|
|
43
|
+
//# sourceMappingURL=FlowRunsPageWithDefaultFilter-70vMgGCO.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-70vMgGCO.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;;;"}
|
|
@@ -2553,11 +2553,11 @@ const kC = [
|
|
|
2553
2553
|
"table",
|
|
2554
2554
|
"unknown"
|
|
2555
2555
|
], Hb = {
|
|
2556
|
-
default: "
|
|
2557
|
-
markdown: "
|
|
2558
|
-
table: "
|
|
2559
|
-
result: "
|
|
2560
|
-
unknown: "
|
|
2556
|
+
default: "Artifact",
|
|
2557
|
+
markdown: "ArtifactMarkdown",
|
|
2558
|
+
table: "ArtifactTable",
|
|
2559
|
+
result: "ArtifactResult",
|
|
2560
|
+
unknown: "Artifact"
|
|
2561
2561
|
};
|
|
2562
2562
|
class TC {
|
|
2563
2563
|
constructor(e) {
|
|
@@ -20413,7 +20413,8 @@ class RT {
|
|
|
20413
20413
|
j(this, "priority");
|
|
20414
20414
|
j(this, "workPoolId");
|
|
20415
20415
|
j(this, "workPoolName");
|
|
20416
|
-
this
|
|
20416
|
+
j(this, "status");
|
|
20417
|
+
this.id = e.id, this.created = e.created, this.updated = e.updated, this.name = e.name, this.filter = e.filter, this.description = e.description, this.isPaused = e.isPaused, this.concurrencyLimit = e.concurrencyLimit, this.priority = e.priority, this.workPoolId = e.workPoolId, this.workPoolName = e.workPoolName, this.status = e.status;
|
|
20417
20418
|
}
|
|
20418
20419
|
get deprecated() {
|
|
20419
20420
|
return !!this.filter;
|
|
@@ -26868,7 +26869,7 @@ function S2e(t) {
|
|
|
26868
26869
|
{
|
|
26869
26870
|
name: "workspace.flow-runs",
|
|
26870
26871
|
path: "",
|
|
26871
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
26872
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-70vMgGCO.mjs"),
|
|
26872
26873
|
props: { component: t.flowRuns }
|
|
26873
26874
|
},
|
|
26874
26875
|
{
|
|
@@ -28553,6 +28554,7 @@ const Ute = [bJ, Xte, kJ], Gte = (t) => Ote(t, Ute), Vte = function(t) {
|
|
|
28553
28554
|
base_job_template: e
|
|
28554
28555
|
};
|
|
28555
28556
|
}, Rne = function(t) {
|
|
28557
|
+
var e;
|
|
28556
28558
|
return new ST({
|
|
28557
28559
|
id: t.id,
|
|
28558
28560
|
created: this.map("string", t.created, "Date"),
|
|
@@ -28564,7 +28566,7 @@ const Ute = [bJ, Xte, kJ], Gte = (t) => Ote(t, Ute), Vte = function(t) {
|
|
|
28564
28566
|
isPaused: t.is_paused ?? !1,
|
|
28565
28567
|
concurrencyLimit: t.concurrency_limit,
|
|
28566
28568
|
priority: t.priority,
|
|
28567
|
-
status: t.status.toLowerCase()
|
|
28569
|
+
status: ((e = t.status) == null ? void 0 : e.toLowerCase()) ?? "not_ready"
|
|
28568
28570
|
});
|
|
28569
28571
|
}, Mne = function(t) {
|
|
28570
28572
|
return {
|
|
@@ -28615,6 +28617,7 @@ const Ute = [bJ, Xte, kJ], Gte = (t) => Ote(t, Ute), Vte = function(t) {
|
|
|
28615
28617
|
}, One = function(t) {
|
|
28616
28618
|
return t.toUpperCase();
|
|
28617
28619
|
}, Fne = function(t) {
|
|
28620
|
+
var e;
|
|
28618
28621
|
return new RT({
|
|
28619
28622
|
id: t.id,
|
|
28620
28623
|
created: this.map("string", t.created, "Date"),
|
|
@@ -28626,7 +28629,8 @@ const Ute = [bJ, Xte, kJ], Gte = (t) => Ote(t, Ute), Vte = function(t) {
|
|
|
28626
28629
|
concurrencyLimit: t.concurrency_limit,
|
|
28627
28630
|
priority: t.priority,
|
|
28628
28631
|
workPoolId: t.work_pool_id,
|
|
28629
|
-
workPoolName: t.work_pool_name
|
|
28632
|
+
workPoolName: t.work_pool_name,
|
|
28633
|
+
status: ((e = t.status) == null ? void 0 : e.toLowerCase()) ?? "not_ready"
|
|
28630
28634
|
});
|
|
28631
28635
|
}, Lne = function(t) {
|
|
28632
28636
|
return {
|
|
@@ -29658,6 +29662,7 @@ ${e.join(`
|
|
|
29658
29662
|
concurrencyLimit: this.create("number"),
|
|
29659
29663
|
priority: this.create("number"),
|
|
29660
29664
|
workPoolId: this.create("id"),
|
|
29665
|
+
status: "not_ready",
|
|
29661
29666
|
...n
|
|
29662
29667
|
});
|
|
29663
29668
|
}, yoe = function(t = {}) {
|
|
@@ -78719,4 +78724,4 @@ export {
|
|
|
78719
78724
|
Cae as y,
|
|
78720
78725
|
Fae as z
|
|
78721
78726
|
};
|
|
78722
|
-
//# sourceMappingURL=index-
|
|
78727
|
+
//# sourceMappingURL=index-fKmiuPrT.mjs.map
|