@prefecthq/prefect-ui-library 1.6.22 → 1.6.24
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/{index-a8ce8044.mjs → index-f6b3f122.mjs} +15522 -15459
- package/dist/index-f6b3f122.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +397 -394
- package/dist/prefect-ui-library.umd.js +76 -76
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/components/SchemaInput.vue.d.ts +42 -0
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/compositions/index.d.ts +2 -0
- package/dist/types/src/compositions/useJsonRecord.d.ts +15 -0
- package/dist/types/src/compositions/useOptionalPropertiesSchema.d.ts +7 -0
- package/dist/types/src/localization/index.d.ts +4 -0
- package/dist/types/src/localization/locale/en.d.ts +4 -0
- package/dist/types/src/models/Deployment.d.ts +2 -2
- package/dist/types/src/types/schemaInput.d.ts +3 -0
- package/dist/types/src/utilities/json.d.ts +1 -0
- package/dist/{viewport.es-ae91b8e8-97f7f5e2.mjs → viewport.es-ae91b8e8-1ea9ad64.mjs} +2 -2
- package/dist/{viewport.es-ae91b8e8-97f7f5e2.mjs.map → viewport.es-ae91b8e8-1ea9ad64.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/index-a8ce8044.mjs.map +0 -1
- package/dist/types/src/components/DeploymentParameters.vue.d.ts +0 -26
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { SchemaValues, Schema } from '../types/schemas';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import("vue").PropType<SchemaValues | null | undefined>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
schema: {
|
|
8
|
+
type: import("vue").PropType<Schema>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
inputType: {
|
|
12
|
+
type: import("vue").PropType<"json" | "form" | null>;
|
|
13
|
+
};
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: SchemaValues | null | undefined) => void;
|
|
16
|
+
"update:inputType": (value: "json" | "form" | null) => void;
|
|
17
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: import("vue").PropType<SchemaValues | null | undefined>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
schema: {
|
|
23
|
+
type: import("vue").PropType<Schema>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
inputType: {
|
|
27
|
+
type: import("vue").PropType<"json" | "form" | null>;
|
|
28
|
+
};
|
|
29
|
+
}>> & {
|
|
30
|
+
"onUpdate:modelValue"?: ((value: SchemaValues | null | undefined) => any) | undefined;
|
|
31
|
+
"onUpdate:inputType"?: ((value: "json" | "form" | null) => any) | undefined;
|
|
32
|
+
}, {}, {}>, {
|
|
33
|
+
"button-group"?(_: {}): any;
|
|
34
|
+
"null-input-type"?(_: {}): any;
|
|
35
|
+
empty?(_: {}): any;
|
|
36
|
+
}>;
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
+
new (): {
|
|
40
|
+
$slots: S;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -71,7 +71,6 @@ export { default as DeploymentIconText } from './DeploymentIconText.vue';
|
|
|
71
71
|
export { default as DeploymentList } from './DeploymentList.vue';
|
|
72
72
|
export { default as DeploymentListItem } from './DeploymentListItem.vue';
|
|
73
73
|
export { default as DeploymentMenu } from './DeploymentMenu.vue';
|
|
74
|
-
export { default as DeploymentParameters } from './DeploymentParameters.vue';
|
|
75
74
|
export { default as DeploymentQuickRunOverflowMenuItem } from './DeploymentQuickRunOverflowMenuItem.vue';
|
|
76
75
|
export { default as DeploymentsCount } from './DeploymentsCount.vue';
|
|
77
76
|
export { default as DeploymentsDeleteButton } from './DeploymentsDeleteButton.vue';
|
|
@@ -91,6 +90,7 @@ export { default as FlowListItem } from './FlowListItem.vue';
|
|
|
91
90
|
export { default as FlowMenu } from './FlowMenu.vue';
|
|
92
91
|
export { default as FlowRouterLink } from './FlowRouterLink.vue';
|
|
93
92
|
export { default as FlowRunArtifacts } from './FlowRunArtifacts.vue';
|
|
93
|
+
export { default as FlowRunBreadCrumbs } from './FlowRunBreadCrumbs.vue';
|
|
94
94
|
export { default as FlowRunCancelButton } from './FlowRunCancelButton.vue';
|
|
95
95
|
export { default as FlowRunCancelModal } from './FlowRunCancelModal.vue';
|
|
96
96
|
export { default as FlowRunCreateForm } from './FlowRunCreateForm.vue';
|
|
@@ -210,6 +210,7 @@ export { default as SchemaFormProperties } from './SchemaFormProperties.vue';
|
|
|
210
210
|
export { default as SchemaFormProperty } from './SchemaFormProperty.vue';
|
|
211
211
|
export { default as SchemaFormPropertyAllOf } from './SchemaFormPropertyAllOf.vue';
|
|
212
212
|
export { default as SchemaFormPropertyAnyOf } from './SchemaFormPropertyAnyOf.vue';
|
|
213
|
+
export { default as SchemaInput } from './SchemaInput.vue';
|
|
213
214
|
export { default as SchemaPropertiesKeyValues } from './SchemaPropertiesKeyValues.vue';
|
|
214
215
|
export { default as SchemaPropertyKeyValue } from './SchemaPropertyKeyValue.vue';
|
|
215
216
|
export { default as SearchInput } from './SearchInput.vue';
|
|
@@ -232,7 +233,6 @@ export { default as TimezoneSelect } from './TimezoneSelect.vue';
|
|
|
232
233
|
export { default as ToastFlowRunCreate } from './ToastFlowRunCreate.vue';
|
|
233
234
|
export { default as VariableCreateModal } from './VariableCreateModal.vue';
|
|
234
235
|
export { default as VariableEditModal } from './VariableEditModal.vue';
|
|
235
|
-
export { default as FlowRunBreadCrumbs } from './FlowRunBreadCrumbs.vue';
|
|
236
236
|
export { default as VariableMenu } from './VariableMenu.vue';
|
|
237
237
|
export { default as VariablesDeleteButton } from './VariablesDeleteButton.vue';
|
|
238
238
|
export { default as VariablesTable } from './VariablesTable.vue';
|
|
@@ -20,8 +20,10 @@ export * from './useFlowRunsInfiniteScroll';
|
|
|
20
20
|
export * from './useFlows';
|
|
21
21
|
export * from './useFlowsCount';
|
|
22
22
|
export * from './useForm';
|
|
23
|
+
export * from './useJsonRecord';
|
|
23
24
|
export * from './useLastFlowRun';
|
|
24
25
|
export * from './useNextFlowRun';
|
|
26
|
+
export * from './useOptionalPropertiesSchema';
|
|
25
27
|
export * from './useOptionalRules';
|
|
26
28
|
export * from './usePaginatedSubscription';
|
|
27
29
|
export * from './useReactiveField';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type UseJsonRecordValue = Record<string, unknown>;
|
|
3
|
+
export type UseJsonRecord = {
|
|
4
|
+
valid: Ref<boolean>;
|
|
5
|
+
json: Ref<string>;
|
|
6
|
+
record: Ref<UseJsonRecordValue>;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* The UseJsonRecord composition takes a record or record-parsable string
|
|
10
|
+
* and creates two reactive references: a string and an object.
|
|
11
|
+
* It then sets up watchers to sync changes between these two references.
|
|
12
|
+
* @param initialValues UseJsonRecordValue
|
|
13
|
+
* @returns UseJsonRecord
|
|
14
|
+
*/
|
|
15
|
+
export declare function useJsonRecord(initialValues?: UseJsonRecordValue | string): UseJsonRecord;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
import { SchemaResponse } from '../models';
|
|
3
|
+
import { Schema } from '../types';
|
|
4
|
+
export type UseOptionalPropertiesSchema = {
|
|
5
|
+
schema: ComputedRef<Schema>;
|
|
6
|
+
};
|
|
7
|
+
export declare function useOptionalPropertiesSchema(rawSchema: MaybeRef<SchemaResponse | Schema>): UseOptionalPropertiesSchema;
|
|
@@ -100,6 +100,9 @@ export declare const localization: {
|
|
|
100
100
|
updateWorkQueue: string;
|
|
101
101
|
};
|
|
102
102
|
info: {
|
|
103
|
+
form: string;
|
|
104
|
+
json: string;
|
|
105
|
+
schemaHasNoProperties: string;
|
|
103
106
|
filtersActive: string;
|
|
104
107
|
resetFilters: string;
|
|
105
108
|
deploymentName: string;
|
|
@@ -148,6 +151,7 @@ export declare const localization: {
|
|
|
148
151
|
noSchedule: string;
|
|
149
152
|
delete: string;
|
|
150
153
|
tags: string;
|
|
154
|
+
values: string;
|
|
151
155
|
nextRun: string;
|
|
152
156
|
lastRun: string;
|
|
153
157
|
workPool: string;
|
|
@@ -100,6 +100,9 @@ export declare const en: {
|
|
|
100
100
|
updateWorkQueue: string;
|
|
101
101
|
};
|
|
102
102
|
info: {
|
|
103
|
+
form: string;
|
|
104
|
+
json: string;
|
|
105
|
+
schemaHasNoProperties: string;
|
|
103
106
|
filtersActive: string;
|
|
104
107
|
resetFilters: string;
|
|
105
108
|
deploymentName: string;
|
|
@@ -148,6 +151,7 @@ export declare const en: {
|
|
|
148
151
|
noSchedule: string;
|
|
149
152
|
delete: string;
|
|
150
153
|
tags: string;
|
|
154
|
+
values: string;
|
|
151
155
|
nextRun: string;
|
|
152
156
|
lastRun: string;
|
|
153
157
|
workPool: string;
|
|
@@ -20,7 +20,7 @@ export interface IDeployment {
|
|
|
20
20
|
manifestPath: string | null;
|
|
21
21
|
path: string | null;
|
|
22
22
|
rawParameters: SchemaValues;
|
|
23
|
-
rawSchema: SchemaResponse
|
|
23
|
+
rawSchema: SchemaResponse;
|
|
24
24
|
entrypoint: string | null;
|
|
25
25
|
storageDocumentId: string | null;
|
|
26
26
|
infrastructureDocumentId: string | null;
|
|
@@ -43,7 +43,7 @@ export declare class Deployment implements IDeployment {
|
|
|
43
43
|
parameters: SchemaValues;
|
|
44
44
|
parameterOpenApiSchema: Schema;
|
|
45
45
|
readonly rawParameters: SchemaValues;
|
|
46
|
-
readonly rawSchema: SchemaResponse
|
|
46
|
+
readonly rawSchema: SchemaResponse;
|
|
47
47
|
tags: string[] | null;
|
|
48
48
|
manifestPath: string | null;
|
|
49
49
|
path: string | null;
|
|
@@ -4,4 +4,5 @@ type JsonReplacer = JsonStringify[1];
|
|
|
4
4
|
export declare function stringify(value: JsonValue, replacer?: JsonReplacer): string;
|
|
5
5
|
export declare function parseUnknownJson(value: unknown): unknown;
|
|
6
6
|
export declare function stringifyUnknownJson(value: unknown): string | null | undefined;
|
|
7
|
+
export declare function isValidJsonRecord(value: unknown): value is string;
|
|
7
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as O, f as k, $ as b, l as c } from "./index-
|
|
1
|
+
import { k as O, f as k, $ as b, l as c } from "./index-f6b3f122.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/vue-charts";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
@@ -1535,4 +1535,4 @@ export {
|
|
|
1535
1535
|
C as Viewport,
|
|
1536
1536
|
N as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-ae91b8e8-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-ae91b8e8-1ea9ad64.mjs.map
|