@prefecthq/prefect-ui-library 2.6.42 → 2.6.43

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-kyOAJbDU.mjs";
2
+ import { i as f, u as d, a as v, m as y } from "./index-NSK4bd9J.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-XCHNi9cl.mjs.map
38
+ //# sourceMappingURL=FlowRunsPageWithDefaultFilter-uYjgqTdx.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlowRunsPageWithDefaultFilter-XCHNi9cl.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-uYjgqTdx.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;;;"}
@@ -3375,6 +3375,9 @@ class Q6 extends yr {
3375
3375
  const r = _e.map("DeploymentsFilter", n, "DeploymentsFilterRequest"), { data: o } = await this.post("/count", r);
3376
3376
  return o;
3377
3377
  }
3378
+ /**
3379
+ * @deprecated Use createDeploymentFlowRunV2
3380
+ */
3378
3381
  async createDeploymentFlowRun(n, r) {
3379
3382
  const o = _e.map("DeploymentFlowRunCreate", r, "DeploymentFlowRunRequest"), { data: a } = await this.post(`/${n}/create_flow_run`, o);
3380
3383
  return _e.map("FlowRunResponse", a, "FlowRun");
@@ -3383,6 +3386,9 @@ class Q6 extends yr {
3383
3386
  const o = _e.map("DeploymentFlowRunCreateV2", r, "DeploymentFlowRunRequest"), { data: a } = await this.post(`/${n}/create_flow_run`, o);
3384
3387
  return _e.map("FlowRunResponse", a, "FlowRun");
3385
3388
  }
3389
+ /**
3390
+ * @deprecated Use updateDeploymentV2
3391
+ */
3386
3392
  updateDeployment(n, r) {
3387
3393
  const o = _e.map("DeploymentUpdate", r, "DeploymentUpdateRequest");
3388
3394
  return this.patch(`/${n}`, o);
@@ -27206,7 +27212,7 @@ function lCe(t) {
27206
27212
  {
27207
27213
  name: "workspace.flow-runs",
27208
27214
  path: "",
27209
- component: () => import("./FlowRunsPageWithDefaultFilter-XCHNi9cl.mjs"),
27215
+ component: () => import("./FlowRunsPageWithDefaultFilter-uYjgqTdx.mjs"),
27210
27216
  props: { component: t.flowRuns }
27211
27217
  },
27212
27218
  {
@@ -40306,21 +40312,21 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
40306
40312
  r.value = [], p.refresh();
40307
40313
  };
40308
40314
  return (g, _) => {
40309
- const b = A("p-list-header"), x = A("p-button"), k = A("PEmptyResults"), R = A("p-content");
40310
- return M(), L(R, { class: "flow-run-filtered-list" }, {
40315
+ const b = A("p-select-all-checkbox"), x = A("p-list-header"), k = A("p-button"), R = A("PEmptyResults"), C = A("p-content");
40316
+ return M(), L(C, { class: "flow-run-filtered-list" }, {
40311
40317
  default: S(() => [
40312
- w(b, { sticky: "" }, {
40318
+ w(x, { sticky: "" }, {
40313
40319
  controls: S(() => [
40314
40320
  w(Ro, {
40315
40321
  modelValue: o.value,
40316
- "onUpdate:modelValue": _[0] || (_[0] = (C) => o.value = C),
40322
+ "onUpdate:modelValue": _[1] || (_[1] = (E) => o.value = E),
40317
40323
  placeholder: "Search by run name",
40318
40324
  label: "Search by run name",
40319
40325
  class: "flow-run-filtered-list__search"
40320
40326
  }, null, 8, ["modelValue"]),
40321
40327
  w(v(Bm), {
40322
40328
  selected: v(i).flowRuns.state.name,
40323
- "onUpdate:selected": _[1] || (_[1] = (C) => v(i).flowRuns.state.name = C),
40329
+ "onUpdate:selected": _[2] || (_[2] = (E) => v(i).flowRuns.state.name = E),
40324
40330
  multiple: "",
40325
40331
  "empty-message": "All run states"
40326
40332
  }, null, 8, ["selected"])
@@ -40328,20 +40334,27 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
40328
40334
  sort: S(() => [
40329
40335
  w(v(NW), {
40330
40336
  modelValue: v(i).sort,
40331
- "onUpdate:modelValue": _[2] || (_[2] = (C) => v(i).sort = C)
40337
+ "onUpdate:modelValue": _[3] || (_[3] = (E) => v(i).sort = E)
40332
40338
  }, null, 8, ["modelValue"])
40333
40339
  ]),
40334
40340
  default: S(() => [
40335
- r.value.length == 0 ? (M(), L(v(Xo), {
40341
+ g.selectable ? (M(), L(b, {
40336
40342
  key: 0,
40343
+ modelValue: r.value,
40344
+ "onUpdate:modelValue": _[0] || (_[0] = (E) => r.value = E),
40345
+ selectable: v(s).map((E) => E.id),
40346
+ "item-name": "flow run"
40347
+ }, null, 8, ["modelValue", "selectable"])) : H("", !0),
40348
+ r.value.length == 0 ? (M(), L(v(Xo), {
40349
+ key: 1,
40337
40350
  count: v(c),
40338
40351
  label: "Flow run"
40339
40352
  }, null, 8, ["count"])) : (M(), L(v(Ed), {
40340
- key: 1,
40353
+ key: 2,
40341
40354
  count: r.value.length
40342
40355
  }, null, 8, ["count"])),
40343
40356
  v(n).delete.flow_run ? (M(), L(v(LW), {
40344
- key: 2,
40357
+ key: 3,
40345
40358
  selected: r.value,
40346
40359
  onDelete: m
40347
40360
  }, null, 8, ["selected"])) : H("", !0)
@@ -40350,12 +40363,12 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
40350
40363
  }),
40351
40364
  w(v(Wm), {
40352
40365
  selected: r.value,
40353
- "onUpdate:selected": _[3] || (_[3] = (C) => r.value = C),
40366
+ "onUpdate:selected": _[4] || (_[4] = (E) => r.value = E),
40354
40367
  "flow-runs": v(s),
40355
40368
  selectable: g.selectable && v(n).delete.flow_run,
40356
40369
  onBottom: v(d)
40357
40370
  }, null, 8, ["selected", "flow-runs", "selectable", "onBottom"]),
40358
- f.value ? (M(), L(k, { key: 0 }, Ct({
40371
+ f.value ? (M(), L(R, { key: 0 }, Ct({
40359
40372
  message: S(() => [
40360
40373
  Be(g.$slots, "empty-message", {}, () => [
40361
40374
  J(" No runs found ")
@@ -40366,7 +40379,7 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
40366
40379
  v(l) ? {
40367
40380
  name: "actions",
40368
40381
  fn: S(() => [
40369
- w(x, {
40382
+ w(k, {
40370
40383
  small: "",
40371
40384
  onClick: v(u)
40372
40385
  }, {
@@ -82429,4 +82442,4 @@ export {
82429
82442
  zie as y,
82430
82443
  Jie as z
82431
82444
  };
82432
- //# sourceMappingURL=index-kyOAJbDU.mjs.map
82445
+ //# sourceMappingURL=index-NSK4bd9J.mjs.map