@prefecthq/prefect-ui-library 3.12.8 → 3.12.9

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, createBlock as s, createCommentVNode as m, openBlock as i, resolveDynamicComponent as p } from "vue";
2
- import { i as f, u as d, a as v, m as y } from "./index-CPp5RYan.mjs";
2
+ import { i as f, u as d, a as v, m as y } from "./index-MvE62OD9.mjs";
3
3
  const a = (n) => {
4
4
  const { value: e, isCustom: t } = d();
5
5
  if (v(n.query) && t.value)
@@ -32,4 +32,4 @@ const a = (n) => {
32
32
  export {
33
33
  C as default
34
34
  };
35
- //# sourceMappingURL=RunsPageWithDefaultFilter-umBJVr8U.mjs.map
35
+ //# sourceMappingURL=RunsPageWithDefaultFilter-COertgmd.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"RunsPageWithDefaultFilter-umBJVr8U.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,EAAA,IAAaC,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,EAAM;AAAA,aACfE,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IAAA;AAIhB,SAAA;AACT;;;;;;;;AAgBA,UAAMC,IAAQC,GAIRC,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAAA;AAGvB,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,IAAM;;;"}
1
+ {"version":3,"file":"RunsPageWithDefaultFilter-COertgmd.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,EAAA,IAAaC,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,EAAM;AAAA,aACfE,GAAO;AACd,cAAQ,MAAMA,CAAK;AAAA,IAAA;AAIhB,SAAA;AACT;;;;;;;;AAgBA,UAAMC,IAAQC,GAIRC,IAAiBC,EAAkC,IAAI;AAE7D,aAASC,EAA6BC,GAAiG;AACrI,aAAOC,EAAWD,CAAS;AAAA,IAAA;AAGvB,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,IAAM;;;"}
@@ -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-CPp5RYan.mjs";
4
+ import { b as a, c } from "./index-MvE62OD9.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-DEUCC_Qo.mjs.map
25
+ //# sourceMappingURL=WorkQueueToWorkPoolQueueRedirect-D7UEKo9n.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-DEUCC_Qo.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,EAAgB,GACtBC,IAAwBC,EAAgBH,EAAI,WAAW,cAAc,CAACF,CAAW,CAAC,GAElFM,IAASC,EAAU,GACnBC,IAASC,EAAmB;AAElC,WAAAL,EAAsB,UAAU,KAAK,CAAC,EAAE,UAAUM,QAAgB;AAC5D,UAAA,CAACA,EAAU,cAAc;AACpB,QAAAJ,EAAA,QAAQE,EAAO,WAAW;AACjC;AAAA,MAAA;AAEF,MAAAF,EAAO,QAAQE,EAAO,cAAcE,EAAU,cAAcA,EAAU,IAAI,CAAC;AAAA,IAAA,CAC5E;;;;"}
1
+ {"version":3,"file":"WorkQueueToWorkPoolQueueRedirect-D7UEKo9n.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,EAAgB,GACtBC,IAAwBC,EAAgBH,EAAI,WAAW,cAAc,CAACF,CAAW,CAAC,GAElFM,IAASC,EAAU,GACnBC,IAASC,EAAmB;AAElC,WAAAL,EAAsB,UAAU,KAAK,CAAC,EAAE,UAAUM,QAAgB;AAC5D,UAAA,CAACA,EAAU,cAAc;AACpB,QAAAJ,EAAA,QAAQE,EAAO,WAAW;AACjC;AAAA,MAAA;AAEF,MAAAF,EAAO,QAAQE,EAAO,cAAcE,EAAU,cAAcA,EAAU,IAAI,CAAC;AAAA,IAAA,CAC5E;;;;"}
@@ -16224,6 +16224,7 @@ class VQ {
16224
16224
  W(this, "createdBy");
16225
16225
  W(this, "updated");
16226
16226
  W(this, "updatedBy");
16227
+ W(this, "lastActive");
16227
16228
  W(this, "name");
16228
16229
  W(this, "description");
16229
16230
  W(this, "versionInfo");
@@ -16237,7 +16238,7 @@ class VQ {
16237
16238
  W(this, "workQueueName");
16238
16239
  W(this, "workPoolName");
16239
16240
  W(this, "enforceParameterSchema");
16240
- this.id = e.id, this.deploymentId = e.deploymentId, this.created = e.created, this.createdBy = e.createdBy, this.updated = e.updated, this.updatedBy = e.updatedBy, this.name = e.name, this.description = e.description, this.versionInfo = e.versionInfo, this.tags = e.tags ?? [], this.labels = e.labels, this.entrypoint = e.entrypoint, this.pullSteps = e.pullSteps, this.parameters = e.parameters, this.parameterOpenApiSchema = e.parameterOpenApiSchema, this.jobVariables = e.jobVariables, this.workQueueName = e.workQueueName, this.workPoolName = e.workPoolName, this.enforceParameterSchema = e.enforceParameterSchema;
16241
+ this.id = e.id, this.deploymentId = e.deploymentId, this.created = e.created, this.createdBy = e.createdBy, this.updated = e.updated, this.updatedBy = e.updatedBy, this.lastActive = e.lastActive, this.name = e.name, this.description = e.description, this.versionInfo = e.versionInfo, this.tags = e.tags ?? [], this.labels = e.labels, this.entrypoint = e.entrypoint, this.pullSteps = e.pullSteps, this.parameters = e.parameters, this.parameterOpenApiSchema = e.parameterOpenApiSchema, this.jobVariables = e.jobVariables, this.workQueueName = e.workQueueName, this.workPoolName = e.workPoolName, this.enforceParameterSchema = e.enforceParameterSchema;
16241
16242
  }
16242
16243
  }
16243
16244
  const UQ = B7.map((t) => t.split(":")[0]);
@@ -25869,7 +25870,7 @@ function $8e(t) {
25869
25870
  {
25870
25871
  name: "workspace.runs",
25871
25872
  path: "",
25872
- component: () => import("./RunsPageWithDefaultFilter-umBJVr8U.mjs"),
25873
+ component: () => import("./RunsPageWithDefaultFilter-COertgmd.mjs"),
25873
25874
  props: { component: t.runs }
25874
25875
  },
25875
25876
  {
@@ -25985,7 +25986,7 @@ function $8e(t) {
25985
25986
  {
25986
25987
  name: "workspace.work-queues.work-queue",
25987
25988
  path: "work-queue/:workQueueId",
25988
- component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-DEUCC_Qo.mjs"))
25989
+ component: t.workQueue ?? (() => import("./WorkQueueToWorkPoolQueueRedirect-D7UEKo9n.mjs"))
25989
25990
  }
25990
25991
  ]
25991
25992
  },
@@ -29569,6 +29570,7 @@ const Sse = function(t) {
29569
29570
  createdBy: this.map("CreatedOrUpdatedByResponse", t.created_by, "CreatedOrUpdatedBy"),
29570
29571
  updated: this.map("string", t.updated, "Date"),
29571
29572
  updatedBy: this.map("CreatedOrUpdatedByResponse", t.updated_by, "CreatedOrUpdatedBy"),
29573
+ lastActive: this.map("string", t.last_active, "Date"),
29572
29574
  name: t.name,
29573
29575
  deploymentId: t.deployment_id,
29574
29576
  description: t.description,
@@ -31522,6 +31524,7 @@ const Aue = function(t = {}) {
31522
31524
  createdBy: this.create("createdOrUpdatedBy"),
31523
31525
  updated: this.create("date"),
31524
31526
  updatedBy: this.create("createdOrUpdatedBy"),
31527
+ lastActive: this.create("date"),
31525
31528
  name: this.create("noun"),
31526
31529
  versionInfo: {
31527
31530
  type: "vcs:github",
@@ -91169,4 +91172,4 @@ export {
91169
91172
  p8 as y,
91170
91173
  a2 as z
91171
91174
  };
91172
- //# sourceMappingURL=index-CPp5RYan.mjs.map
91175
+ //# sourceMappingURL=index-MvE62OD9.mjs.map