@prefecthq/prefect-ui-library 2.6.26 → 2.6.27

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 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-_zTDfBrF.mjs";
2
+ import { i as f, u as d, a as v, m as y } from "./index-zBnDLKPC.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-cOMMl7U9.mjs.map
38
+ //# sourceMappingURL=FlowRunsPageWithDefaultFilter-KrV3Jqlr.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowRunsPageWithDefaultFilter-cOMMl7U9.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;;;"}
1
+ {"version":3,"file":"FlowRunsPageWithDefaultFilter-KrV3Jqlr.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;;;"}
@@ -20457,7 +20457,8 @@ class EO extends tJ {
20457
20457
  Q(this, "updated");
20458
20458
  Q(this, "workPoolName");
20459
20459
  Q(this, "workPoolQueueName");
20460
- this.id = n.id, this.deploymentId = n.deploymentId, this.flowId = n.flowId, this.flowVersion = n.flowVersion, this.idempotencyKey = n.idempotencyKey, this.expectedStartTime = n.expectedStartTime, this.nextScheduledStartTime = n.nextScheduledStartTime, this.parameters = n.parameters, this.autoScheduled = n.autoScheduled, this.context = n.context, this.empiricalConfig = n.empiricalConfig, this.empiricalPolicy = n.empiricalPolicy, this.estimatedRunTime = n.estimatedRunTime, this.estimatedStartTimeDelta = n.estimatedStartTimeDelta, this.totalRunTime = n.totalRunTime, this.startTime = n.startTime, this.endTime = n.endTime, this.name = n.name, this.parentTaskRunId = n.parentTaskRunId, this.stateId = n.stateId, this.stateName = n.stateName, this.stateType = n.stateType, this.state = n.state, this.tags = n.tags, this.runCount = n.runCount, this.created = n.created, this.createdBy = n.createdBy, this.updated = n.updated, this.workQueueName = n.workQueueName, this.workPoolName = n.workPoolName, this.workPoolQueueName = n.workPoolQueueName;
20460
+ Q(this, "jobVariables");
20461
+ this.id = n.id, this.deploymentId = n.deploymentId, this.flowId = n.flowId, this.flowVersion = n.flowVersion, this.idempotencyKey = n.idempotencyKey, this.expectedStartTime = n.expectedStartTime, this.nextScheduledStartTime = n.nextScheduledStartTime, this.parameters = n.parameters, this.autoScheduled = n.autoScheduled, this.context = n.context, this.empiricalConfig = n.empiricalConfig, this.empiricalPolicy = n.empiricalPolicy, this.estimatedRunTime = n.estimatedRunTime, this.estimatedStartTimeDelta = n.estimatedStartTimeDelta, this.totalRunTime = n.totalRunTime, this.startTime = n.startTime, this.endTime = n.endTime, this.name = n.name, this.parentTaskRunId = n.parentTaskRunId, this.stateId = n.stateId, this.stateName = n.stateName, this.stateType = n.stateType, this.state = n.state, this.tags = n.tags, this.runCount = n.runCount, this.created = n.created, this.createdBy = n.createdBy, this.updated = n.updated, this.workQueueName = n.workQueueName, this.workPoolName = n.workPoolName, this.workPoolQueueName = n.workPoolQueueName, this.jobVariables = n.jobVariables;
20461
20462
  }
20462
20463
  get duration() {
20463
20464
  return this.estimatedRunTime || this.totalRunTime;
@@ -27138,7 +27139,7 @@ function LCe(t) {
27138
27139
  {
27139
27140
  name: "workspace.flow-runs",
27140
27141
  path: "",
27141
- component: () => import("./FlowRunsPageWithDefaultFilter-cOMMl7U9.mjs"),
27142
+ component: () => import("./FlowRunsPageWithDefaultFilter-KrV3Jqlr.mjs"),
27142
27143
  props: { component: t.flowRuns }
27143
27144
  },
27144
27145
  {
@@ -29528,7 +29529,8 @@ const Pne = function(t) {
29528
29529
  updated: this.map("string", t.updated, "Date"),
29529
29530
  workQueueName: t.work_queue_name,
29530
29531
  workPoolName: t.work_pool_name,
29531
- workPoolQueueName: t.work_pool_queue_name
29532
+ workPoolQueueName: t.work_pool_queue_name,
29533
+ jobVariables: t.job_variables ?? {}
29532
29534
  });
29533
29535
  }, cre = function(t) {
29534
29536
  return new FO({
@@ -30934,6 +30936,7 @@ ${t}_block = ${Kl(t)}.load("BLOCK_NAME")
30934
30936
  workQueueName: uo() > 0.7 ? this.create("noun") : null,
30935
30937
  workPoolName: uo() > 0.7 ? this.create("noun") : null,
30936
30938
  workPoolQueueName: uo() > 0.7 ? this.create("noun") : null,
30939
+ jobVariables: {},
30937
30940
  ...t
30938
30941
  });
30939
30942
  }, Bae = function(t = {}) {
@@ -39047,7 +39050,7 @@ const Dde = { class: "deployment-list__name-col" }, Cde = { class: "deployment-l
39047
39050
  };
39048
39051
  return (l, s) => {
39049
39052
  const c = I("p-toggle"), p = I("p-tooltip");
39050
- return R(), L(p, { text: "Pause or resume this deployment" }, {
39053
+ return R(), L(p, { text: "Pause or resume scheduling flow runs for this deployment" }, {
39051
39054
  default: S(() => [
39052
39055
  l.deployment.can.update ? (R(), L(c, {
39053
39056
  key: 0,
@@ -81869,4 +81872,4 @@ export {
81869
81872
  Fie as y,
81870
81873
  Wie as z
81871
81874
  };
81872
- //# sourceMappingURL=index-_zTDfBrF.mjs.map
81875
+ //# sourceMappingURL=index-zBnDLKPC.mjs.map