@prefecthq/prefect-ui-library 2.6.42 → 2.6.44
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/{FlowRunsPageWithDefaultFilter-XCHNi9cl.mjs → FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-XCHNi9cl.mjs.map → FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs.map} +1 -1
- package/dist/{index-kyOAJbDU.mjs → index-yZWS2LQ5.mjs} +57 -43
- package/dist/index-yZWS2LQ5.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +40 -40
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/components/SchemaForm.vue.d.ts +6 -0
- package/dist/types/src/components/SchemaInput.vue.d.ts +6 -0
- package/dist/types/src/models/DeploymentFlowRunCreate.d.ts +3 -0
- package/dist/types/src/models/DeploymentUpdate.d.ts +3 -0
- package/dist/types/src/services/Api.d.ts +3 -1
- package/dist/types/src/services/WorkspaceDeploymentsApi.d.ts +6 -0
- package/dist/types/src/utilities/api.d.ts +2 -1
- package/package.json +6 -6
- package/dist/index-kyOAJbDU.mjs.map +0 -1
|
@@ -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-
|
|
2
|
+
import { i as f, u as d, a as v, m as y } from "./index-yZWS2LQ5.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-
|
|
38
|
+
//# sourceMappingURL=FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowRunsPageWithDefaultFilter-
|
|
1
|
+
{"version":3,"file":"FlowRunsPageWithDefaultFilter-TxIDOqX6.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;;;"}
|
|
@@ -2455,12 +2455,13 @@ const m6 = (t) => t.baseUrl, y6 = { "X-PREFECT-UI": !0 }, g6 = (t) => {
|
|
|
2455
2455
|
return t.token && (e.Authorization = `bearer ${t.token}`), e;
|
|
2456
2456
|
};
|
|
2457
2457
|
class _T {
|
|
2458
|
-
constructor(e) {
|
|
2458
|
+
constructor(e, n = null) {
|
|
2459
2459
|
K(this, "apiConfig");
|
|
2460
2460
|
K(this, "apiHeaders", [y6, g6]);
|
|
2461
2461
|
K(this, "apiBaseUrl", m6);
|
|
2462
2462
|
K(this, "routePrefix");
|
|
2463
|
-
this
|
|
2463
|
+
K(this, "instanceSetupHook");
|
|
2464
|
+
this.apiConfig = e, this.instanceSetupHook = n;
|
|
2464
2465
|
}
|
|
2465
2466
|
composeBaseUrl() {
|
|
2466
2467
|
return typeof this.apiBaseUrl == "string" ? this.apiBaseUrl : this.apiBaseUrl(this.apiConfig);
|
|
@@ -2482,8 +2483,8 @@ class _T {
|
|
|
2482
2483
|
const e = {
|
|
2483
2484
|
baseURL: this.composeBaseUrl(),
|
|
2484
2485
|
headers: this.composeHeaders()
|
|
2485
|
-
};
|
|
2486
|
-
return
|
|
2486
|
+
}, n = vT.create(e);
|
|
2487
|
+
return this.instanceSetupHook && this.instanceSetupHook(n), n;
|
|
2487
2488
|
}
|
|
2488
2489
|
get(e, n) {
|
|
2489
2490
|
const r = this.combinePath(e);
|
|
@@ -3375,6 +3376,9 @@ class Q6 extends yr {
|
|
|
3375
3376
|
const r = _e.map("DeploymentsFilter", n, "DeploymentsFilterRequest"), { data: o } = await this.post("/count", r);
|
|
3376
3377
|
return o;
|
|
3377
3378
|
}
|
|
3379
|
+
/**
|
|
3380
|
+
* @deprecated Use createDeploymentFlowRunV2
|
|
3381
|
+
*/
|
|
3378
3382
|
async createDeploymentFlowRun(n, r) {
|
|
3379
3383
|
const o = _e.map("DeploymentFlowRunCreate", r, "DeploymentFlowRunRequest"), { data: a } = await this.post(`/${n}/create_flow_run`, o);
|
|
3380
3384
|
return _e.map("FlowRunResponse", a, "FlowRun");
|
|
@@ -3383,6 +3387,9 @@ class Q6 extends yr {
|
|
|
3383
3387
|
const o = _e.map("DeploymentFlowRunCreateV2", r, "DeploymentFlowRunRequest"), { data: a } = await this.post(`/${n}/create_flow_run`, o);
|
|
3384
3388
|
return _e.map("FlowRunResponse", a, "FlowRun");
|
|
3385
3389
|
}
|
|
3390
|
+
/**
|
|
3391
|
+
* @deprecated Use updateDeploymentV2
|
|
3392
|
+
*/
|
|
3386
3393
|
updateDeployment(n, r) {
|
|
3387
3394
|
const o = _e.map("DeploymentUpdate", r, "DeploymentUpdateRequest");
|
|
3388
3395
|
return this.patch(`/${n}`, o);
|
|
@@ -3958,32 +3965,32 @@ class v$ extends yr {
|
|
|
3958
3965
|
return _e.map("WorkQueueStatusResponse", r, "WorkQueueStatus");
|
|
3959
3966
|
}
|
|
3960
3967
|
}
|
|
3961
|
-
function LDe(t) {
|
|
3968
|
+
function LDe(t, e = null) {
|
|
3962
3969
|
return {
|
|
3963
|
-
artifacts: zn(new H6(t)),
|
|
3964
|
-
blockCapabilities: zn(new $6(t)),
|
|
3965
|
-
blockDocuments: zn(new Y6(t)),
|
|
3966
|
-
blockSchemas: zn(new Z6(t)),
|
|
3967
|
-
blockTypes: zn(new j6(t)),
|
|
3968
|
-
collections: zn(new uae(t)),
|
|
3969
|
-
concurrencyLimits: zn(new z6(t)),
|
|
3970
|
-
concurrencyV2Limits: zn(new K6(t)),
|
|
3971
|
-
deployments: zn(new Q6(t)),
|
|
3972
|
-
deploymentSchedules: zn(new q6(t)),
|
|
3973
|
-
flowRuns: zn(new J6(t)),
|
|
3974
|
-
flows: zn(new e$(t)),
|
|
3975
|
-
health: zn(new W6(t)),
|
|
3976
|
-
logs: zn(new t$(t)),
|
|
3977
|
-
notifications: zn(new n$(t)),
|
|
3978
|
-
savedSearches: zn(new r$(t)),
|
|
3979
|
-
taskRuns: zn(new h$(t)),
|
|
3980
|
-
ui: zn(new G6(t)),
|
|
3981
|
-
variables: zn(new f$(t)),
|
|
3982
|
-
workPoolQueues: zn(new m$(t)),
|
|
3983
|
-
workPools: zn(new y$(t)),
|
|
3984
|
-
workPoolWorkers: zn(new g$(t)),
|
|
3985
|
-
workQueues: zn(new v$(t)),
|
|
3986
|
-
schemas: zn(new p$(t))
|
|
3970
|
+
artifacts: zn(new H6(t, e)),
|
|
3971
|
+
blockCapabilities: zn(new $6(t, e)),
|
|
3972
|
+
blockDocuments: zn(new Y6(t, e)),
|
|
3973
|
+
blockSchemas: zn(new Z6(t, e)),
|
|
3974
|
+
blockTypes: zn(new j6(t, e)),
|
|
3975
|
+
collections: zn(new uae(t, e)),
|
|
3976
|
+
concurrencyLimits: zn(new z6(t, e)),
|
|
3977
|
+
concurrencyV2Limits: zn(new K6(t, e)),
|
|
3978
|
+
deployments: zn(new Q6(t, e)),
|
|
3979
|
+
deploymentSchedules: zn(new q6(t, e)),
|
|
3980
|
+
flowRuns: zn(new J6(t, e)),
|
|
3981
|
+
flows: zn(new e$(t, e)),
|
|
3982
|
+
health: zn(new W6(t, e)),
|
|
3983
|
+
logs: zn(new t$(t, e)),
|
|
3984
|
+
notifications: zn(new n$(t, e)),
|
|
3985
|
+
savedSearches: zn(new r$(t, e)),
|
|
3986
|
+
taskRuns: zn(new h$(t, e)),
|
|
3987
|
+
ui: zn(new G6(t, e)),
|
|
3988
|
+
variables: zn(new f$(t, e)),
|
|
3989
|
+
workPoolQueues: zn(new m$(t, e)),
|
|
3990
|
+
workPools: zn(new y$(t, e)),
|
|
3991
|
+
workPoolWorkers: zn(new g$(t, e)),
|
|
3992
|
+
workQueues: zn(new v$(t, e)),
|
|
3993
|
+
schemas: zn(new p$(t, e))
|
|
3987
3994
|
};
|
|
3988
3995
|
}
|
|
3989
3996
|
const _$ = Symbol("WorkspaceApi"), b$ = 4, TA = "cache-key", xA = `${TA}-${b$}`;
|
|
@@ -27206,7 +27213,7 @@ function lCe(t) {
|
|
|
27206
27213
|
{
|
|
27207
27214
|
name: "workspace.flow-runs",
|
|
27208
27215
|
path: "",
|
|
27209
|
-
component: () => import("./FlowRunsPageWithDefaultFilter-
|
|
27216
|
+
component: () => import("./FlowRunsPageWithDefaultFilter-TxIDOqX6.mjs"),
|
|
27210
27217
|
props: { component: t.flowRuns }
|
|
27211
27218
|
},
|
|
27212
27219
|
{
|
|
@@ -40306,21 +40313,21 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
|
|
|
40306
40313
|
r.value = [], p.refresh();
|
|
40307
40314
|
};
|
|
40308
40315
|
return (g, _) => {
|
|
40309
|
-
const b = A("p-list-header"),
|
|
40310
|
-
return M(), L(
|
|
40316
|
+
const b = A("p-select-all-checkbox"), x = A("p-list-header"), k = A("p-button"), R = A("PEmptyResults"), C = A("p-content");
|
|
40317
|
+
return M(), L(C, { class: "flow-run-filtered-list" }, {
|
|
40311
40318
|
default: S(() => [
|
|
40312
|
-
w(
|
|
40319
|
+
w(x, { sticky: "" }, {
|
|
40313
40320
|
controls: S(() => [
|
|
40314
40321
|
w(Ro, {
|
|
40315
40322
|
modelValue: o.value,
|
|
40316
|
-
"onUpdate:modelValue": _[
|
|
40323
|
+
"onUpdate:modelValue": _[1] || (_[1] = (E) => o.value = E),
|
|
40317
40324
|
placeholder: "Search by run name",
|
|
40318
40325
|
label: "Search by run name",
|
|
40319
40326
|
class: "flow-run-filtered-list__search"
|
|
40320
40327
|
}, null, 8, ["modelValue"]),
|
|
40321
40328
|
w(v(Bm), {
|
|
40322
40329
|
selected: v(i).flowRuns.state.name,
|
|
40323
|
-
"onUpdate:selected": _[
|
|
40330
|
+
"onUpdate:selected": _[2] || (_[2] = (E) => v(i).flowRuns.state.name = E),
|
|
40324
40331
|
multiple: "",
|
|
40325
40332
|
"empty-message": "All run states"
|
|
40326
40333
|
}, null, 8, ["selected"])
|
|
@@ -40328,20 +40335,27 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
|
|
|
40328
40335
|
sort: S(() => [
|
|
40329
40336
|
w(v(NW), {
|
|
40330
40337
|
modelValue: v(i).sort,
|
|
40331
|
-
"onUpdate:modelValue": _[
|
|
40338
|
+
"onUpdate:modelValue": _[3] || (_[3] = (E) => v(i).sort = E)
|
|
40332
40339
|
}, null, 8, ["modelValue"])
|
|
40333
40340
|
]),
|
|
40334
40341
|
default: S(() => [
|
|
40335
|
-
|
|
40342
|
+
g.selectable ? (M(), L(b, {
|
|
40336
40343
|
key: 0,
|
|
40344
|
+
modelValue: r.value,
|
|
40345
|
+
"onUpdate:modelValue": _[0] || (_[0] = (E) => r.value = E),
|
|
40346
|
+
selectable: v(s).map((E) => E.id),
|
|
40347
|
+
"item-name": "flow run"
|
|
40348
|
+
}, null, 8, ["modelValue", "selectable"])) : H("", !0),
|
|
40349
|
+
r.value.length == 0 ? (M(), L(v(Xo), {
|
|
40350
|
+
key: 1,
|
|
40337
40351
|
count: v(c),
|
|
40338
40352
|
label: "Flow run"
|
|
40339
40353
|
}, null, 8, ["count"])) : (M(), L(v(Ed), {
|
|
40340
|
-
key:
|
|
40354
|
+
key: 2,
|
|
40341
40355
|
count: r.value.length
|
|
40342
40356
|
}, null, 8, ["count"])),
|
|
40343
40357
|
v(n).delete.flow_run ? (M(), L(v(LW), {
|
|
40344
|
-
key:
|
|
40358
|
+
key: 3,
|
|
40345
40359
|
selected: r.value,
|
|
40346
40360
|
onDelete: m
|
|
40347
40361
|
}, null, 8, ["selected"])) : H("", !0)
|
|
@@ -40350,12 +40364,12 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
|
|
|
40350
40364
|
}),
|
|
40351
40365
|
w(v(Wm), {
|
|
40352
40366
|
selected: r.value,
|
|
40353
|
-
"onUpdate:selected": _[
|
|
40367
|
+
"onUpdate:selected": _[4] || (_[4] = (E) => r.value = E),
|
|
40354
40368
|
"flow-runs": v(s),
|
|
40355
40369
|
selectable: g.selectable && v(n).delete.flow_run,
|
|
40356
40370
|
onBottom: v(d)
|
|
40357
40371
|
}, null, 8, ["selected", "flow-runs", "selectable", "onBottom"]),
|
|
40358
|
-
f.value ? (M(), L(
|
|
40372
|
+
f.value ? (M(), L(R, { key: 0 }, Ct({
|
|
40359
40373
|
message: S(() => [
|
|
40360
40374
|
Be(g.$slots, "empty-message", {}, () => [
|
|
40361
40375
|
J(" No runs found ")
|
|
@@ -40366,7 +40380,7 @@ const Vde = { class: "deployment-list__name-col" }, Gde = { class: "deployment-l
|
|
|
40366
40380
|
v(l) ? {
|
|
40367
40381
|
name: "actions",
|
|
40368
40382
|
fn: S(() => [
|
|
40369
|
-
w(
|
|
40383
|
+
w(k, {
|
|
40370
40384
|
small: "",
|
|
40371
40385
|
onClick: v(u)
|
|
40372
40386
|
}, {
|
|
@@ -82429,4 +82443,4 @@ export {
|
|
|
82429
82443
|
zie as y,
|
|
82430
82444
|
Jie as z
|
|
82431
82445
|
};
|
|
82432
|
-
//# sourceMappingURL=index-
|
|
82446
|
+
//# sourceMappingURL=index-yZWS2LQ5.mjs.map
|