@prefecthq/prefect-ui-library 3.11.31 → 3.11.33
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/{RunsPageWithDefaultFilter-B13to9QE.mjs → RunsPageWithDefaultFilter-BQ7LDpW1.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-B13to9QE.mjs.map → RunsPageWithDefaultFilter-BQ7LDpW1.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-B0vMHqQY.mjs → WorkQueueToWorkPoolQueueRedirect-IqLDu8PG.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-B0vMHqQY.mjs.map → WorkQueueToWorkPoolQueueRedirect-IqLDu8PG.mjs.map} +1 -1
- package/dist/{index-DIOVgM5z.mjs → index-cs4CfvMO.mjs} +665 -638
- package/dist/{index-DIOVgM5z.mjs.map → index-cs4CfvMO.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +28 -28
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/types/SortOptionTypes.d.ts +1 -1
- package/dist/types/src/types/schemas.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/SchemaFormPropertyAnyOf.vue +5 -1
- package/src/services/schemas/utilities.ts +7 -0
- package/src/types/SortOptionTypes.ts +20 -1
- package/src/types/schemas.ts +1 -0
|
@@ -35,7 +35,7 @@ export declare const deploymentSortOptions: {
|
|
|
35
35
|
label: string;
|
|
36
36
|
value: string;
|
|
37
37
|
}[];
|
|
38
|
-
export declare const flowRunSortValues: readonly ["ID_DESC", "END_TIME_DESC", "CREATED_DESC", "NAME_DESC", "NAME_ASC", "EXPECTED_START_TIME_DESC", "EXPECTED_START_TIME_ASC", "NEXT_SCHEDULED_START_TIME_ASC", "START_TIME_DESC", "START_TIME_ASC"];
|
|
38
|
+
export declare const flowRunSortValues: readonly ["ID_DESC", "END_TIME_DESC", "CREATED_DESC", "NAME_DESC", "NAME_ASC", "EXPECTED_START_TIME_DESC", "EXPECTED_START_TIME_ASC", "NEXT_SCHEDULED_START_TIME_ASC", "START_TIME_DESC", "START_TIME_ASC", "DURATION_DESC", "LATENESS_DESC"];
|
|
39
39
|
export type FlowRunSortValues = typeof flowRunSortValues[number];
|
|
40
40
|
export declare const defaultFlowRunSort: FlowRunSortValues;
|
|
41
41
|
export declare function isFlowRunSortValue(value: unknown): value is FlowRunSortValues;
|
package/package.json
CHANGED
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
<p-button-group v-model="selected" :options="options" small />
|
|
8
8
|
|
|
9
9
|
<p-label class="schema-form-property-any-of__fields p-background" :description="description">
|
|
10
|
-
<template v-if="
|
|
10
|
+
<template v-if="displayedDefinition.meta && displayedDefinition.meta.component">
|
|
11
|
+
<SchemaFormProperty :property="displayedDefinition" :prop-key="propKey" />
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<template v-else-if="isObject">
|
|
11
15
|
<p-content>
|
|
12
16
|
<template v-for="(subProperty, key) in displayedDefinition.properties" :key="key">
|
|
13
17
|
<SchemaFormProperty :prop-key="`${propKey}.${key}`" :property="subProperty!" />
|
|
@@ -280,6 +280,13 @@ function findObjectDefinitionIndex(definitions: Schema[], value: object | null):
|
|
|
280
280
|
}, [0, 0])
|
|
281
281
|
|
|
282
282
|
if (keysInCommon === 0) {
|
|
283
|
+
const indexOfDefinitionWithAdditionalProperties = definitions.findIndex(definition => definition.additionalProperties)
|
|
284
|
+
|
|
285
|
+
// Since we were unable to find a definition with a matching set of keys, we'll use the definition with additionalProperties if one exists.
|
|
286
|
+
if (indexOfDefinitionWithAdditionalProperties !== -1) {
|
|
287
|
+
return indexOfDefinitionWithAdditionalProperties
|
|
288
|
+
}
|
|
289
|
+
|
|
283
290
|
return null
|
|
284
291
|
}
|
|
285
292
|
|
|
@@ -67,7 +67,26 @@ export const deploymentSortOptions = [
|
|
|
67
67
|
{ label: 'Z to A', value: 'NAME_DESC' },
|
|
68
68
|
]
|
|
69
69
|
|
|
70
|
-
export const flowRunSortValues = [
|
|
70
|
+
export const flowRunSortValues = [
|
|
71
|
+
'ID_DESC',
|
|
72
|
+
'END_TIME_DESC',
|
|
73
|
+
'CREATED_DESC',
|
|
74
|
+
'NAME_DESC',
|
|
75
|
+
'NAME_ASC',
|
|
76
|
+
'EXPECTED_START_TIME_DESC',
|
|
77
|
+
'EXPECTED_START_TIME_ASC',
|
|
78
|
+
'NEXT_SCHEDULED_START_TIME_ASC',
|
|
79
|
+
'START_TIME_DESC',
|
|
80
|
+
'START_TIME_ASC',
|
|
81
|
+
/**
|
|
82
|
+
* Only supported by cloud
|
|
83
|
+
*/
|
|
84
|
+
'DURATION_DESC',
|
|
85
|
+
/**
|
|
86
|
+
* Only supported by cloud
|
|
87
|
+
*/
|
|
88
|
+
'LATENESS_DESC',
|
|
89
|
+
] as const
|
|
71
90
|
export type FlowRunSortValues = typeof flowRunSortValues[number]
|
|
72
91
|
export const defaultFlowRunSort: FlowRunSortValues = 'START_TIME_DESC'
|
|
73
92
|
|
package/src/types/schemas.ts
CHANGED