@prefecthq/prefect-ui-library 3.11.31 → 3.11.32
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-CUbsARTw.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-B13to9QE.mjs.map → RunsPageWithDefaultFilter-CUbsARTw.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-B0vMHqQY.mjs → WorkQueueToWorkPoolQueueRedirect-BVs60ohc.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-B0vMHqQY.mjs.map → WorkQueueToWorkPoolQueueRedirect-BVs60ohc.mjs.map} +1 -1
- package/dist/{index-DIOVgM5z.mjs → index-B-zpc4Zz.mjs} +645 -637
- package/dist/{index-DIOVgM5z.mjs.map → index-B-zpc4Zz.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/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/schemas.ts +1 -0
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
|
|
package/src/types/schemas.ts
CHANGED