@prefecthq/prefect-ui-library 3.11.23 → 3.11.24
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-BXYCX6ka.mjs → RunsPageWithDefaultFilter-DjwU_mrc.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-BXYCX6ka.mjs.map → RunsPageWithDefaultFilter-DjwU_mrc.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-BE2p5ZZv.mjs → WorkQueueToWorkPoolQueueRedirect-CQvgQmrm.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-BE2p5ZZv.mjs.map → WorkQueueToWorkPoolQueueRedirect-CQvgQmrm.mjs.map} +1 -1
- package/dist/{index-CpbewIc9.mjs → index-Dj_-75VY.mjs} +6 -5
- package/dist/{index-CpbewIc9.mjs.map → index-Dj_-75VY.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
- package/src/components/ScheduleFormModal.vue +5 -0
- package/src/components/WorkPoolCreateWizardStepInformation.vue +4 -0
- package/src/services/schemas/utilities.ts +1 -1
package/dist/{RunsPageWithDefaultFilter-BXYCX6ka.mjs → RunsPageWithDefaultFilter-DjwU_mrc.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 i, createCommentVNode as p } from "vue";
|
|
2
|
-
import { u as f, i as d, m as v, a as y } from "./index-
|
|
2
|
+
import { u as f, i as d, m as v, a as y } from "./index-Dj_-75VY.mjs";
|
|
3
3
|
const a = (n) => {
|
|
4
4
|
const { value: e, isCustom: t } = f();
|
|
5
5
|
if (d(n.query) && t.value)
|
|
@@ -32,4 +32,4 @@ const a = (n) => {
|
|
|
32
32
|
export {
|
|
33
33
|
C as default
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=RunsPageWithDefaultFilter-
|
|
35
|
+
//# sourceMappingURL=RunsPageWithDefaultFilter-DjwU_mrc.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"RunsPageWithDefaultFilter-DjwU_mrc.mjs","sources":["../src/components/RunsPageWithDefaultFilter.vue"],"sourcesContent":["<template>\n <component :is=\"routeComponent\" v-if=\"routeComponent !== null\" />\n</template>\n\n<script lang=\"ts\">\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</script>\n\n<script setup lang=\"ts\">\n import { 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 type LazilyLoadedRouteComponent = () => Promise<{ default: RouteComponent }>\n\n defineOptions({\n beforeRouteEnter: setDefaultFlowRunsFilterQueryIfEmpty,\n beforeRouteUpdate: setDefaultFlowRunsFilterQueryIfEmpty,\n })\n\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","props","__props","routeComponent","shallowRef","isLazilyLoadedRouteComponent","component","isFunction","watch"],"mappings":";;AAKE,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;;;;;;;;AAgBA,UAAMC,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;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p } from "vue";
|
|
2
2
|
import { useRouteParam as m, useSubscription as i } from "@prefecthq/vue-compositions";
|
|
3
3
|
import { useRouter as n } from "vue-router";
|
|
4
|
-
import { b as a, c } from "./index-
|
|
4
|
+
import { b as a, c } from "./index-Dj_-75VY.mjs";
|
|
5
5
|
import "@prefecthq/prefect-design";
|
|
6
6
|
import "vee-validate";
|
|
7
7
|
import "@prefecthq/vue-charts";
|
|
@@ -22,4 +22,4 @@ const W = /* @__PURE__ */ p({
|
|
|
22
22
|
export {
|
|
23
23
|
W as default
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-
|
|
25
|
+
//# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-CQvgQmrm.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-
|
|
1
|
+
{"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-CQvgQmrm.mjs","sources":["../src/components/WorkQueueToWorkPoolQueueRedirect.vue"],"sourcesContent":["<script setup lang=\"ts\">\n /**\n * This component is used to redirect the user from an old, deprecated work queue route\n * to a work pool queue route. This is necessary because the old work queue routes are\n * were keyed on work queue id and the new routes are nested under work pools by\n * work pool name and work queue name.\n */\n import { useRouteParam, useSubscription } from '@prefecthq/vue-compositions'\n\n import { useRouter } from 'vue-router'\n import { useWorkspaceRoutes, useWorkspaceApi } from '@/compositions'\n\n const workQueueId = useRouteParam('workQueueId')\n\n const api = useWorkspaceApi()\n const workQueueSubscription = useSubscription(api.workQueues.getWorkQueue, [workQueueId])\n\n const router = useRouter()\n const routes = useWorkspaceRoutes()\n\n workQueueSubscription.promise().then(({ response: workQueue }) => {\n if (!workQueue.workPoolName) {\n router.replace(routes.workPools())\n return\n }\n router.replace(routes.workPoolQueue(workQueue.workPoolName, workQueue.name))\n })\n</script>"],"names":["workQueueId","useRouteParam","api","useWorkspaceApi","workQueueSubscription","useSubscription","router","useRouter","routes","useWorkspaceRoutes","workQueue"],"mappings":";;;;;;;;;;AAYQ,UAAAA,IAAcC,EAAc,aAAa,GAEzCC,IAAMC,KACNC,IAAwBC,EAAgBH,EAAI,WAAW,cAAc,CAACF,CAAW,CAAC,GAElFM,IAASC,KACTC,IAASC;AAEf,WAAAL,EAAsB,UAAU,KAAK,CAAC,EAAE,UAAUM,QAAgB;AAC5D,UAAA,CAACA,EAAU,cAAc;AACpB,QAAAJ,EAAA,QAAQE,EAAO,UAAW,CAAA;AACjC;AAAA,MACF;AACA,MAAAF,EAAO,QAAQE,EAAO,cAAcE,EAAU,cAAcA,EAAU,IAAI,CAAC;AAAA,IAAA,CAC5E;;;;"}
|
|
@@ -25520,7 +25520,7 @@ function J5e(t) {
|
|
|
25520
25520
|
{
|
|
25521
25521
|
name: "workspace.runs",
|
|
25522
25522
|
path: "",
|
|
25523
|
-
component: () => import("./RunsPageWithDefaultFilter-
|
|
25523
|
+
component: () => import("./RunsPageWithDefaultFilter-DjwU_mrc.mjs"),
|
|
25524
25524
|
props: { component: t.runs }
|
|
25525
25525
|
},
|
|
25526
25526
|
{
|
|
@@ -25636,7 +25636,7 @@ function J5e(t) {
|
|
|
25636
25636
|
{
|
|
25637
25637
|
name: "workspace.work-queues.work-queue",
|
|
25638
25638
|
path: "work-queue/:workQueueId",
|
|
25639
|
-
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-
|
|
25639
|
+
component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-CQvgQmrm.mjs"))
|
|
25640
25640
|
}
|
|
25641
25641
|
]
|
|
25642
25642
|
},
|
|
@@ -26790,7 +26790,7 @@ function Ese(t) {
|
|
|
26790
26790
|
var n;
|
|
26791
26791
|
const e = t.default ?? t.example;
|
|
26792
26792
|
if (e)
|
|
26793
|
-
return typeof e == "string" ? e : tx(e) && ((n = t.meta) == null ? void 0 : n.component) !== fr ? e.join(", ") : Kn(e);
|
|
26793
|
+
return typeof e == "string" ? e : tx(e) && ((n = t.meta) == null ? void 0 : n.component) !== fr ? `"${e.join(", ")}"` : Kn(e);
|
|
26794
26794
|
}
|
|
26795
26795
|
function Ase({ component: t, props: e }) {
|
|
26796
26796
|
switch (t) {
|
|
@@ -83551,6 +83551,7 @@ const FW = /* @__PURE__ */ W({
|
|
|
83551
83551
|
};
|
|
83552
83552
|
}
|
|
83553
83553
|
}), RIe = { key: 0 }, o1 = /* @__PURE__ */ W({
|
|
83554
|
+
inheritAttrs: !1,
|
|
83554
83555
|
__name: "ScheduleFormModal",
|
|
83555
83556
|
props: {
|
|
83556
83557
|
active: { type: [Boolean, null] },
|
|
@@ -85320,7 +85321,7 @@ const FW = /* @__PURE__ */ W({
|
|
|
85320
85321
|
set(p) {
|
|
85321
85322
|
r("update:workPool", p);
|
|
85322
85323
|
}
|
|
85323
|
-
}), s = sr(o, "name"), i = sr(o, "description"), u = sr(o, "concurrencyLimit"), { defineValidate: l } = ZT(), { validate: a } = pa(), { state: c, error: d } = bn(s, "Work pool name", (p) => p ? !0 : "Name is required");
|
|
85324
|
+
}), s = sr(o, "name"), i = sr(o, "description"), u = sr(o, "concurrencyLimit"), { defineValidate: l } = ZT(), { validate: a } = pa(), { state: c, error: d } = bn(s, "Work pool name", (p) => p != null && p.toLowerCase().startsWith("prefect") ? 'Work pools starting with "prefect" are reserved for internal use.' : p ? !0 : "Name is required");
|
|
85324
85325
|
return l(a), (p, h) => {
|
|
85325
85326
|
const m = A("p-text-input"), v = A("p-label"), b = A("p-textarea"), T = A("p-number-input"), M = A("p-content");
|
|
85326
85327
|
return k(), D(M, null, {
|
|
@@ -90457,4 +90458,4 @@ export {
|
|
|
90457
90458
|
F8 as y,
|
|
90458
90459
|
h2 as z
|
|
90459
90460
|
};
|
|
90460
|
-
//# sourceMappingURL=index-
|
|
90461
|
+
//# sourceMappingURL=index-Dj_-75VY.mjs.map
|