@prefecthq/prefect-ui-library 1.4.4 → 1.4.6
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-33a139a7.mjs → index-fc10472d.mjs} +12624 -12508
- package/dist/index-fc10472d.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +430 -426
- package/dist/prefect-ui-library.umd.js +70 -70
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/TaskRunArtifacts.vue.d.ts +23 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/compositions/index.d.ts +2 -0
- package/dist/types/src/compositions/useArtifactCollection.d.ts +5 -0
- package/dist/types/src/compositions/useStatePolling.d.ts +9 -0
- package/dist/types/src/localization/index.d.ts +3 -0
- package/dist/types/src/localization/locale/en.d.ts +3 -0
- package/dist/types/src/models/WorkPool.d.ts +1 -1
- package/dist/types/src/services/schemas/properties/SchemaPropertyBlock.d.ts +1 -0
- package/dist/types/src/services/schemas/resolvers/blockReferenceDefaults.d.ts +2 -0
- package/dist/types/src/types/schemas.d.ts +1 -1
- package/dist/types/src/utilities/validation.d.ts +2 -0
- package/dist/{viewport.es-84fb8076-30f1ddc4.mjs → viewport.es-84fb8076-717d5319.mjs} +2 -2
- package/dist/{viewport.es-84fb8076-30f1ddc4.mjs.map → viewport.es-84fb8076-717d5319.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/index-33a139a7.mjs.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './filters';
|
|
2
2
|
export * from './useArtifact';
|
|
3
|
+
export * from './useArtifactCollection';
|
|
3
4
|
export * from './useBlockDocument';
|
|
4
5
|
export * from './useBlockSchema';
|
|
5
6
|
export * from './useBlockType';
|
|
@@ -18,6 +19,7 @@ export * from './useReactiveField';
|
|
|
18
19
|
export * from './useReactiveForm';
|
|
19
20
|
export * from './useScrollLinking';
|
|
20
21
|
export * from './useShowModal';
|
|
22
|
+
export * from './useStatePolling';
|
|
21
23
|
export * from './useTabs';
|
|
22
24
|
export * from './useTaskRun';
|
|
23
25
|
export * from './useTaskRunsCount';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceArtifactsApi } from '../services/WorkspaceArtifactsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseArtifactCollection = UseEntitySubscription<WorkspaceArtifactsApi['getArtifactCollection'], 'artifactCollection'>;
|
|
5
|
+
export declare function useArtifactCollection(artifactKey: string | Ref<string | null | undefined>): UseArtifactCollection;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SubscriptionOptions } from '@prefecthq/vue-compositions';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
import { MaybeRef } from '../types';
|
|
4
|
+
type StateResource = {
|
|
5
|
+
stateName: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare function useStatePolling(stateName: MaybeRef<string | null>, interval?: number): ComputedRef<SubscriptionOptions>;
|
|
8
|
+
export declare function useStatePolling(resource: MaybeRef<StateResource>, interval?: number): ComputedRef<SubscriptionOptions>;
|
|
9
|
+
export {};
|
|
@@ -49,6 +49,7 @@ export declare const localization: {
|
|
|
49
49
|
stringValueTooLong: (property: string, max: number) => string;
|
|
50
50
|
numberValueTooLarge: (property: string, max: number) => string;
|
|
51
51
|
valueTooLarge: (property: string, max: number) => string;
|
|
52
|
+
mustBeSnakeCase: (property: string) => string;
|
|
52
53
|
submitNotification: string;
|
|
53
54
|
updateBlock: string;
|
|
54
55
|
updateNotification: string;
|
|
@@ -125,6 +126,8 @@ export declare const localization: {
|
|
|
125
126
|
invalidData: (docsUrl: string) => string;
|
|
126
127
|
noResults: string;
|
|
127
128
|
none: string;
|
|
129
|
+
terminalTaskRunNoArtifacts: string;
|
|
130
|
+
nonTerminalTaskRunNoArtifacts: string;
|
|
128
131
|
terminalFlowRunNoArtifacts: string;
|
|
129
132
|
nonTerminalFlowRunNoArtifacts: string;
|
|
130
133
|
flowRun: string;
|
|
@@ -49,6 +49,7 @@ export declare const en: {
|
|
|
49
49
|
stringValueTooLong: (property: string, max: number) => string;
|
|
50
50
|
numberValueTooLarge: (property: string, max: number) => string;
|
|
51
51
|
valueTooLarge: (property: string, max: number) => string;
|
|
52
|
+
mustBeSnakeCase: (property: string) => string;
|
|
52
53
|
submitNotification: string;
|
|
53
54
|
updateBlock: string;
|
|
54
55
|
updateNotification: string;
|
|
@@ -125,6 +126,8 @@ export declare const en: {
|
|
|
125
126
|
invalidData: (docsUrl: string) => string;
|
|
126
127
|
noResults: string;
|
|
127
128
|
none: string;
|
|
129
|
+
terminalTaskRunNoArtifacts: string;
|
|
130
|
+
nonTerminalTaskRunNoArtifacts: string;
|
|
128
131
|
terminalFlowRunNoArtifacts: string;
|
|
129
132
|
nonTerminalFlowRunNoArtifacts: string;
|
|
130
133
|
flowRun: string;
|
|
@@ -9,7 +9,7 @@ export interface IWorkPool {
|
|
|
9
9
|
isPaused: boolean;
|
|
10
10
|
defaultQueueId: string;
|
|
11
11
|
concurrencyLimit: number | null;
|
|
12
|
-
baseJobTemplate:
|
|
12
|
+
baseJobTemplate: BaseJobTemplateRequest;
|
|
13
13
|
}
|
|
14
14
|
export declare class WorkPool implements IWorkPool {
|
|
15
15
|
readonly id: string;
|
|
@@ -7,4 +7,5 @@ export declare class SchemaPropertyBlock extends SchemaPropertyService {
|
|
|
7
7
|
protected get component(): SchemaPropertyComponentWithProps;
|
|
8
8
|
protected request(value: SchemaValue): unknown;
|
|
9
9
|
protected response(value: SchemaValue): unknown;
|
|
10
|
+
private getDefaultBlockDocumentId;
|
|
10
11
|
}
|
|
@@ -25,7 +25,7 @@ export type SchemaPropertyMetaOptions = {
|
|
|
25
25
|
validators?: ValidationMethod | ValidationMethod[];
|
|
26
26
|
required?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export type SchemaPropertyMeta = SchemaPropertyComponentWithProps & SchemaPropertyMetaOptions;
|
|
28
|
+
export type SchemaPropertyMeta = Partial<SchemaPropertyComponentWithProps> & SchemaPropertyMetaOptions;
|
|
29
29
|
export type SchemaProperty = {
|
|
30
30
|
blockTypeSlug?: string;
|
|
31
31
|
meta?: SchemaPropertyMeta;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ValidationRule } from '@prefecthq/vue-compositions';
|
|
1
2
|
export type ValidationMethod = (value: unknown) => true | string | Promise<true | string>;
|
|
2
3
|
export type ValidationMethodFactory = (property: string) => ValidationMethod;
|
|
3
4
|
export type WithMessageArgs = [validationFactory: ValidationMethodFactory, message: string];
|
|
@@ -28,3 +29,4 @@ export declare const isAfterOrEqual: (min: Date, { time: showTime }?: {
|
|
|
28
29
|
}) => ValidationMethodFactory;
|
|
29
30
|
export declare const isJson: ValidationMethodFactory;
|
|
30
31
|
export declare const isHandle: ValidationMethodFactory;
|
|
32
|
+
export declare const isSnakeCase: ValidationRule<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as c, Q as b, X as O, l as k } from "./index-
|
|
1
|
+
import { u as c, Q as b, X as O, l as k } from "./index-fc10472d.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
|
$ as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-84fb8076-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-84fb8076-717d5319.mjs.map
|