@prefecthq/prefect-ui-library 2.2.6 → 2.3.0

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.
@@ -1,10 +1,10 @@
1
- import { BlockDocument } from '../models/BlockDocument';
1
+ import { BlockDocumentsFilter } from '../models/Filters';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- blockDocuments: BlockDocument[];
3
+ filter?: BlockDocumentsFilter | undefined;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  delete: () => void;
6
6
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- blockDocuments: BlockDocument[];
7
+ filter?: BlockDocumentsFilter | undefined;
8
8
  }>>> & {
9
9
  onDelete?: (() => any) | undefined;
10
10
  }, {}, {}>;
@@ -1,11 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- selected: string | null;
2
+ selected: string | string[] | null | undefined;
3
+ allowUnset?: boolean | undefined;
3
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- "update:selected": (value: string | null) => void;
5
+ "update:selected": (value: string | string[] | null) => void;
5
6
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- selected: string | null;
7
+ selected: string | string[] | null | undefined;
8
+ allowUnset?: boolean | undefined;
7
9
  }>>> & {
8
- "onUpdate:selected"?: ((value: string | null) => any) | undefined;
10
+ "onUpdate:selected"?: ((value: string | string[] | null) => any) | undefined;
9
11
  }, {}, {}>;
10
12
  export default _default;
11
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,11 +1,13 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- selected: string | null;
2
+ selected: string | string[] | null | undefined;
3
+ allowUnset?: boolean | undefined;
3
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- "update:selected": (value: string | null) => void;
5
+ "update:selected": (value: string | string[] | null) => void;
5
6
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
- selected: string | null;
7
+ selected: string | string[] | null | undefined;
8
+ allowUnset?: boolean | undefined;
7
9
  }>>> & {
8
- "onUpdate:selected"?: ((value: string | null) => any) | undefined;
10
+ "onUpdate:selected"?: ((value: string | string[] | null) => any) | undefined;
9
11
  }, {}, {}>;
10
12
  export default _default;
11
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,10 +1,12 @@
1
1
  import { DeploymentsFilter } from '../models/Filters';
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  filter?: DeploymentsFilter | undefined;
4
+ prefix?: string | undefined;
4
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
6
  delete: () => void;
6
7
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
8
  filter?: DeploymentsFilter | undefined;
9
+ prefix?: string | undefined;
8
10
  }>>> & {
9
11
  onDelete?: (() => any) | undefined;
10
12
  }, {}, {}>;
@@ -1,17 +1,13 @@
1
1
  import { FlowRunsFilter } from '../models/Filters';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- flowRunFilter: FlowRunsFilter;
4
- states?: ("AwaitingRetry" | "Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
5
- disableDeletion?: boolean | undefined;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:states": (value: ("AwaitingRetry" | "Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => void;
8
- }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
- flowRunFilter: FlowRunsFilter;
10
- states?: ("AwaitingRetry" | "Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
11
- disableDeletion?: boolean | undefined;
12
- }>>> & {
13
- "onUpdate:states"?: ((value: ("AwaitingRetry" | "Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => any) | undefined;
14
- }, {}, {}>, {
3
+ filter?: FlowRunsFilter | undefined;
4
+ selectable?: boolean | undefined;
5
+ prefix?: string | undefined;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ filter?: FlowRunsFilter | undefined;
8
+ selectable?: boolean | undefined;
9
+ prefix?: string | undefined;
10
+ }>>>, {}, {}>, {
15
11
  "empty-message"?(_: {}): any;
16
12
  }>;
17
13
  export default _default;
@@ -2,6 +2,7 @@ export * from './filters';
2
2
  export * from './useArtifact';
3
3
  export * from './useArtifactCollection';
4
4
  export * from './useBlockDocument';
5
+ export * from './useBlockDocuments';
5
6
  export * from './useBlockSchema';
6
7
  export * from './useBlockType';
7
8
  export * from './useCan';
@@ -25,6 +26,7 @@ export * from './useInterval';
25
26
  export * from './useJsonRecord';
26
27
  export * from './useLastFlowRun';
27
28
  export * from './useNextFlowRun';
29
+ export * from './useOffsetStickyRootMargin';
28
30
  export * from './useOptionalPropertiesSchema';
29
31
  export * from './useOptionalRules';
30
32
  export * from './usePaginatedSubscription';
@@ -33,7 +35,6 @@ export * from './useReactiveForm';
33
35
  export * from './useScrollLinking';
34
36
  export * from './useShowModal';
35
37
  export * from './useStatePolling';
36
- export * from './useOffsetStickyRootMargin';
37
38
  export * from './useSubscriptions';
38
39
  export * from './useTabs';
39
40
  export * from './useTaskRun';
@@ -1,7 +1,8 @@
1
+ import { SubscriptionOptions } from '@prefecthq/vue-compositions';
1
2
  import { ComputedRef, MaybeRefOrGetter } from 'vue';
2
3
  import { UseFlowRuns } from '../compositions/useFlowRuns';
3
4
  import { FlowRun, UnionFilter } from '../models';
4
5
  export type UseNextFlowRun = Pick<UseFlowRuns, 'subscriptions'> & {
5
6
  flowRun: ComputedRef<FlowRun | undefined>;
6
7
  };
7
- export declare function useNextFlowRun(filter: MaybeRefOrGetter<UnionFilter | null | undefined>): UseNextFlowRun;
8
+ export declare function useNextFlowRun(filter: MaybeRefOrGetter<UnionFilter | null | undefined>, options?: SubscriptionOptions): UseNextFlowRun;
@@ -0,0 +1,7 @@
1
+ import { RouteParam } from '@prefecthq/vue-compositions';
2
+ import { LocationQueryValue } from 'vue-router';
3
+ import { BlockDocumentSortValues } from '../types/SortOptionTypes';
4
+ export declare class BlockDocumentSortValuesSortParam extends RouteParam<BlockDocumentSortValues> {
5
+ protected parse(value: LocationQueryValue): BlockDocumentSortValues;
6
+ protected format(value: BlockDocumentSortValues): LocationQueryValue;
7
+ }
@@ -1,4 +1,4 @@
1
- import { ArtifactSortValues, FlowSortValues, FlowRunSortValues, TaskRunSortValues, DeploymentSortValues, LogSortValues, VariableSortValues } from '../types';
1
+ import { ArtifactSortValues, FlowSortValues, FlowRunSortValues, TaskRunSortValues, DeploymentSortValues, LogSortValues, VariableSortValues, BlockDocumentSortValues } from '../types';
2
2
  export type Operation = 'and' | 'or';
3
3
  export declare function isOperation(value: string): value is Operation;
4
4
  export type TagFilter = {
@@ -138,6 +138,7 @@ export type BlockDocumentFilter = {
138
138
  isAnonymous?: boolean | null;
139
139
  blockTypeId?: string[];
140
140
  name?: string[];
141
+ nameLike?: string;
141
142
  };
142
143
  export type FlowsFilter = UnionFilter<FlowSortValues>;
143
144
  export type FlowRunsFilter = UnionFilter<FlowRunSortValues>;
@@ -193,6 +194,7 @@ export type BlockDocumentsFilter = {
193
194
  blockTypes?: BlockTypeFilter;
194
195
  blockSchemas?: BlockSchemaFilter;
195
196
  includeSecrets?: boolean;
197
+ sort?: BlockDocumentSortValues;
196
198
  offset?: number;
197
199
  limit?: number;
198
200
  };
@@ -134,7 +134,7 @@ export type BlockDocumentFilterRequest = {
134
134
  id?: Any;
135
135
  is_anonymous?: NullableEquals;
136
136
  block_type_id?: Any;
137
- name?: Any;
137
+ name?: Any & Like;
138
138
  };
139
139
  export type FlowsFilterRequest = UnionFilterRequest<FlowSortValues>;
140
140
  export type FlowRunsFilterRequest = UnionFilterRequest<FlowRunSortValues>;
@@ -1,6 +1,6 @@
1
1
  import { MaybePromise } from '../../types';
2
2
  export type BatchCallbackLookup<V, R> = (value: V) => MaybePromise<R>;
3
- export type BatchCallback<V, R> = (values: V[]) => MaybePromise<Map<V, R>> | BatchCallbackLookup<V, R>;
3
+ export type BatchCallback<V, R> = (values: V[]) => MaybePromise<Map<V, R> | BatchCallbackLookup<V, R>>;
4
4
  export type BatchOptions = {
5
5
  maxBatchSize?: number;
6
6
  maxWaitMilliseconds?: number;
@@ -62,4 +62,9 @@ export type LogSortOptions = {
62
62
  label: string;
63
63
  value: LogSortValues;
64
64
  }[];
65
+ declare const blockDocumentSortValues: readonly ["NAME_DESC", "NAME_ASC", "BLOCK_TYPE_AND_NAME_ASC"];
66
+ export type BlockDocumentSortValues = typeof blockDocumentSortValues[number];
67
+ export declare const defaultBlockDocumentsSort: BlockDocumentSortValues;
68
+ export declare function isBlockDocumentSortValue(value: unknown): value is BlockDocumentSortValues;
69
+ export declare function isBlockDocumentSortValue(value: Ref<unknown>): value is Ref<BlockDocumentSortValues>;
65
70
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.2.6",
3
+ "version": "2.3.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",