@prefecthq/prefect-ui-library 3.11.35 → 3.11.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.
@@ -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-BZiJZ6am.mjs";
2
+ import { u as f, i as d, m as v, a as y } from "./index-D6SL-UPY.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-BVc0-K26.mjs.map
35
+ //# sourceMappingURL=RunsPageWithDefaultFilter-DQw7V3Xf.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunsPageWithDefaultFilter-BVc0-K26.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
+ {"version":3,"file":"RunsPageWithDefaultFilter-DQw7V3Xf.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-BZiJZ6am.mjs";
4
+ import { b as a, c } from "./index-D6SL-UPY.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-S_SOE-42.mjs.map
25
+ //# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-D0AhPwML.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-S_SOE-42.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;;;;"}
1
+ {"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-D0AhPwML.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;;;;"}
@@ -16357,9 +16357,10 @@ class AO {
16357
16357
  B(this, "endTime");
16358
16358
  B(this, "stateId");
16359
16359
  B(this, "stateType");
16360
+ B(this, "stateName");
16360
16361
  B(this, "state");
16361
16362
  B(this, "tags");
16362
- this.id = e.id, this.flowRunId = e.flowRunId, this.cacheExpiration = e.cacheExpiration, this.cacheKey = e.cacheKey, this.created = e.created, this.dynamicKey = e.dynamicKey, this.empiricalPolicy = e.empiricalPolicy, this.estimatedRunTime = e.estimatedRunTime, this.estimatedStartTimeDelta = e.estimatedStartTimeDelta, this.totalRunTime = e.totalRunTime, this.expectedStartTime = e.expectedStartTime, this.nextScheduledStartTime = e.nextScheduledStartTime, this.runCount = e.runCount, this.name = e.name, this.taskInputs = e.taskInputs, this.taskKey = e.taskKey, this.taskVersion = e.taskVersion, this.updated = e.updated, this.startTime = e.startTime, this.endTime = e.endTime, this.stateId = e.stateId, this.stateType = e.stateType, this.state = e.state, this.tags = e.tags;
16363
+ this.id = e.id, this.flowRunId = e.flowRunId, this.cacheExpiration = e.cacheExpiration, this.cacheKey = e.cacheKey, this.created = e.created, this.dynamicKey = e.dynamicKey, this.empiricalPolicy = e.empiricalPolicy, this.estimatedRunTime = e.estimatedRunTime, this.estimatedStartTimeDelta = e.estimatedStartTimeDelta, this.totalRunTime = e.totalRunTime, this.expectedStartTime = e.expectedStartTime, this.nextScheduledStartTime = e.nextScheduledStartTime, this.runCount = e.runCount, this.name = e.name, this.taskInputs = e.taskInputs, this.taskKey = e.taskKey, this.taskVersion = e.taskVersion, this.updated = e.updated, this.startTime = e.startTime, this.endTime = e.endTime, this.stateId = e.stateId, this.stateType = e.stateType, this.stateName = e.stateName, this.state = e.state, this.tags = e.tags;
16363
16364
  }
16364
16365
  get duration() {
16365
16366
  return (this.estimatedRunTime && this.estimatedRunTime > 0 ? this.estimatedRunTime : this.totalRunTime) ?? 0;
@@ -25565,7 +25566,7 @@ function n4e(t) {
25565
25566
  {
25566
25567
  name: "workspace.runs",
25567
25568
  path: "",
25568
- component: () => import("./RunsPageWithDefaultFilter-BVc0-K26.mjs"),
25569
+ component: () => import("./RunsPageWithDefaultFilter-DQw7V3Xf.mjs"),
25569
25570
  props: { component: t.runs }
25570
25571
  },
25571
25572
  {
@@ -25681,7 +25682,7 @@ function n4e(t) {
25681
25682
  {
25682
25683
  name: "workspace.work-queues.work-queue",
25683
25684
  path: "work-queue/:workQueueId",
25684
- component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-S_SOE-42.mjs"))
25685
+ component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-D0AhPwML.mjs"))
25685
25686
  }
25686
25687
  ]
25687
25688
  },
@@ -30471,6 +30472,7 @@ const Aue = [Zse, Mue, Kse], Cue = (t) => Ose(t, Aue), Due = function(t) {
30471
30472
  endTime: this.map("string", t.end_time, "Date"),
30472
30473
  stateId: t.state_id,
30473
30474
  stateType: this.map("ServerStateType", t.state_type, "StateType"),
30475
+ stateName: t.state_name,
30474
30476
  state: this.map("StateResponse", t.state, "State"),
30475
30477
  tags: t.tags ? Dm(t.tags) : null
30476
30478
  });
@@ -30498,6 +30500,7 @@ const Aue = [Zse, Mue, Kse], Cue = (t) => Ose(t, Aue), Due = function(t) {
30498
30500
  end_time: this.map("Date", t.endTime, "string"),
30499
30501
  state_id: t.stateId,
30500
30502
  state_type: this.map("StateType", t.stateType, "ServerStateType"),
30503
+ state_name: t.stateName,
30501
30504
  state: this.map("State", t.state, "StateResponse"),
30502
30505
  tags: t.tags
30503
30506
  };
@@ -31862,6 +31865,7 @@ ${e.join(`
31862
31865
  endTime: this.create("date"),
31863
31866
  stateId: e.id,
31864
31867
  stateType: e.type,
31868
+ stateName: e.name,
31865
31869
  state: e,
31866
31870
  tags: this.createMany("noun", this.create("number", [0, 10])),
31867
31871
  ...t
@@ -90591,4 +90595,4 @@ export {
90591
90595
  L8 as y,
90592
90596
  d2 as z
90593
90597
  };
90594
- //# sourceMappingURL=index-BZiJZ6am.mjs.map
90598
+ //# sourceMappingURL=index-D6SL-UPY.mjs.map