@prefecthq/prefect-ui-library 2.0.9 → 2.0.11
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-d06297a1.mjs → index-076ea4f4.mjs} +13440 -13311
- package/dist/index-076ea4f4.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +473 -470
- package/dist/prefect-ui-library.umd.js +76 -76
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/DeploymentCombobox.vue.d.ts +3 -14
- package/dist/types/src/components/FlowCombobox.vue.d.ts +0 -12
- package/dist/types/src/components/UseDeploymentSlot.vue.d.ts +21 -0
- package/dist/types/src/components/UseFlowSlot.vue.d.ts +21 -0
- package/dist/types/src/components/index.d.ts +6 -4
- package/dist/types/src/compositions/useDeployments.d.ts +3 -4
- package/dist/types/src/compositions/useFlows.d.ts +3 -5
- package/dist/types/src/compositions/usePagination.d.ts +37 -0
- package/dist/types/src/compositions/useSubscriptions.d.ts +5 -1
- package/dist/types/src/utilities/arrays.d.ts +1 -1
- package/dist/types/src/utilities/index.d.ts +1 -0
- package/dist/{viewport.es-88169ec4-a9ebdaf7.mjs → viewport.es-88169ec4-fc1db3cf.mjs} +2 -2
- package/dist/{viewport.es-88169ec4-a9ebdaf7.mjs.map → viewport.es-88169ec4-fc1db3cf.mjs.map} +1 -1
- package/package.json +6 -6
- package/dist/index-d06297a1.mjs.map +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
flowId: {
|
|
3
|
+
type: import("vue").PropType<string | null | undefined>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
flowId: {
|
|
8
|
+
type: import("vue").PropType<string | null | undefined>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>>, {}, {}>, {
|
|
12
|
+
default?(_: {
|
|
13
|
+
flow: import("..").Flow;
|
|
14
|
+
}): any;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -43,15 +43,15 @@ export { default as ColorModeSelectOption } from './ColorModeSelectOption.vue';
|
|
|
43
43
|
export { default as ConcurrencyLimitActiveRuns } from './ConcurrencyLimitActiveRuns.vue';
|
|
44
44
|
export { default as ConcurrencyLimitDetails } from './ConcurrencyLimitDetails.vue';
|
|
45
45
|
export { default as ConcurrencyLimitMenu } from './ConcurrencyLimitMenu.vue';
|
|
46
|
-
export { default as ConcurrencyLimitsCreateModal } from './ConcurrencyLimitsCreateModal.vue';
|
|
47
46
|
export { default as ConcurrencyLimitResetModal } from '../components/ConcurrencyLimitResetModal.vue';
|
|
47
|
+
export { default as ConcurrencyLimitsCreateModal } from './ConcurrencyLimitsCreateModal.vue';
|
|
48
48
|
export { default as ConcurrencyLimitsPageEmptyState } from './ConcurrencyLimitsPageEmptyState.vue';
|
|
49
49
|
export { default as ConcurrencyLimitsTable } from './ConcurrencyLimitsTable.vue';
|
|
50
|
-
export { default as ConcurrencyLimitV2Menu } from '../components/ConcurrencyLimitV2Menu.vue';
|
|
51
|
-
export { default as ConcurrencyLimitsV2Table } from './ConcurrencyLimitsV2Table.vue';
|
|
52
50
|
export { default as ConcurrencyLimitsV2CreateModal } from './ConcurrencyLimitsV2CreateModal.vue';
|
|
53
51
|
export { default as ConcurrencyLimitsV2EmptyState } from './ConcurrencyLimitsV2EmptyState.vue';
|
|
52
|
+
export { default as ConcurrencyLimitsV2Table } from './ConcurrencyLimitsV2Table.vue';
|
|
54
53
|
export { default as ConcurrencyLimitsV2UpdateModal } from './ConcurrencyLimitsV2UpdateModal.vue';
|
|
54
|
+
export { default as ConcurrencyLimitV2Menu } from '../components/ConcurrencyLimitV2Menu.vue';
|
|
55
55
|
export { default as ConcurrencyLimitV2Toggle } from './ConcurrencyLimitV2Toggle.vue';
|
|
56
56
|
export { default as ConcurrencyTableActiveSlots } from './ConcurrencyTableActiveSlots.vue';
|
|
57
57
|
export { default as ConfirmDeleteModal } from './ConfirmDeleteModal.vue';
|
|
@@ -96,7 +96,6 @@ export { default as FlowList } from './FlowList.vue';
|
|
|
96
96
|
export { default as FlowListItem } from './FlowListItem.vue';
|
|
97
97
|
export { default as FlowMenu } from './FlowMenu.vue';
|
|
98
98
|
export { default as FlowRouterLink } from './FlowRouterLink.vue';
|
|
99
|
-
export { default as FlowRunStateTypeTab } from './FlowRunStateTypeTabs.vue';
|
|
100
99
|
export { default as FlowRunArtifacts } from './FlowRunArtifacts.vue';
|
|
101
100
|
export { default as FlowRunBreadCrumbs } from './FlowRunBreadCrumbs.vue';
|
|
102
101
|
export { default as FlowRunCancelButton } from './FlowRunCancelButton.vue';
|
|
@@ -126,6 +125,7 @@ export { default as FlowRunsPageEmptyState } from './FlowRunsPageEmptyState.vue'
|
|
|
126
125
|
export { default as FlowRunsScatterPlot } from './FlowRunsScatterPlot.vue';
|
|
127
126
|
export { default as FlowRunsSort } from './FlowRunsSort.vue';
|
|
128
127
|
export { default as FlowRunStartTime } from './FlowRunStartTime.vue';
|
|
128
|
+
export { default as FlowRunStateTypeTab } from './FlowRunStateTypeTabs.vue';
|
|
129
129
|
export { default as FlowRunSubFlows } from './FlowRunSubFlows.vue';
|
|
130
130
|
export { default as FlowRunTagsInput } from './FlowRunTagsInput.vue';
|
|
131
131
|
export { default as FlowRunTaskCount } from './FlowRunTaskCount.vue';
|
|
@@ -241,6 +241,8 @@ export { default as TaskRunsSort } from './TaskRunsSort.vue';
|
|
|
241
241
|
export { default as TimeSpanFilter } from './TimeSpanFilter.vue';
|
|
242
242
|
export { default as TimezoneSelect } from './TimezoneSelect.vue';
|
|
243
243
|
export { default as ToastFlowRunCreate } from './ToastFlowRunCreate.vue';
|
|
244
|
+
export { default as UseDeploymentSlot } from './UseDeploymentSlot.vue';
|
|
245
|
+
export { default as UseFlowSlot } from './UseFlowSlot.vue';
|
|
244
246
|
export { default as VariableCreateModal } from './VariableCreateModal.vue';
|
|
245
247
|
export { default as VariableEditModal } from './VariableEditModal.vue';
|
|
246
248
|
export { default as VariableMenu } from './VariableMenu.vue';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { PaginationOptions, UsePaginationEntity } from '../compositions/usePagination';
|
|
2
3
|
import { DeploymentsFilter } from '../models';
|
|
3
4
|
import { WorkspaceDeploymentsApi } from '../services';
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export declare function useDeployments(filter: MaybeRefOrGetter<DeploymentsFilter>): UseDeployments;
|
|
7
|
-
export declare function useDeployments(deploymentIds: MaybeRefOrGetter<string[] | null | undefined>): UseDeployments;
|
|
5
|
+
export type UseDeployments = UsePaginationEntity<WorkspaceDeploymentsApi['getDeployments'], WorkspaceDeploymentsApi['getDeploymentsCount'], 'deployments'>;
|
|
6
|
+
export declare function useDeployments(filter?: MaybeRefOrGetter<DeploymentsFilter | null | undefined>, options?: PaginationOptions): UseDeployments;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { SubscriptionOptions } from '@prefecthq/vue-compositions';
|
|
2
1
|
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { PaginationOptions, UsePaginationEntity } from '../compositions/usePagination';
|
|
3
3
|
import { FlowsFilter } from '../models';
|
|
4
4
|
import { WorkspaceFlowsApi } from '../services';
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare function useFlows(filter: MaybeRefOrGetter<FlowsFilter | null | undefined>, options?: SubscriptionOptions): UseFlows;
|
|
8
|
-
export declare function useFlows(flowIds: MaybeRefOrGetter<string[] | null | undefined>, options?: SubscriptionOptions): UseFlows;
|
|
5
|
+
export type UseFlows = UsePaginationEntity<WorkspaceFlowsApi['getFlows'], WorkspaceFlowsApi['getFlowsCount'], 'flows'>;
|
|
6
|
+
export declare function useFlows(filter?: MaybeRefOrGetter<FlowsFilter | null | undefined>, options?: PaginationOptions): UseFlows;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Getter } from '@prefecthq/prefect-design';
|
|
2
|
+
import { SubscriptionOptions } from '@prefecthq/vue-compositions';
|
|
3
|
+
import { ComputedRef, MaybeRef, Ref } from 'vue';
|
|
4
|
+
import { UseSubscriptions } from '../compositions/useSubscriptions';
|
|
5
|
+
type PaginationFilter = {
|
|
6
|
+
limit?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
};
|
|
9
|
+
type PaginationParameters = [filter?: PaginationFilter, ...any[]];
|
|
10
|
+
type PaginationFetchAction = (...parameters: PaginationParameters) => Promise<unknown[]>;
|
|
11
|
+
type PaginationCountAction = (...parameters: PaginationParameters) => Promise<number>;
|
|
12
|
+
type FetchSubscriptionAction<TFetch extends PaginationFetchAction> = (parameters: Parameters<TFetch>[]) => Promise<Awaited<ReturnType<TFetch>>>;
|
|
13
|
+
export type PaginationOptions = SubscriptionOptions & {
|
|
14
|
+
mode?: 'page' | 'infinite';
|
|
15
|
+
page?: MaybeRef<number>;
|
|
16
|
+
};
|
|
17
|
+
export type UsePaginationParameters<TFetch extends PaginationFetchAction, TFetchParameters extends Getter<Parameters<TFetch> | null>, TCount extends PaginationCountAction, TCountParameters extends Getter<Parameters<TCount> | null>> = {
|
|
18
|
+
fetchMethod: TFetch;
|
|
19
|
+
fetchParameters: TFetchParameters;
|
|
20
|
+
countMethod: TCount;
|
|
21
|
+
countParameters: TCountParameters;
|
|
22
|
+
options?: PaginationOptions;
|
|
23
|
+
};
|
|
24
|
+
export type UsePaginationEntity<TFetch extends PaginationFetchAction, TCount extends PaginationCountAction, TProperty extends string> = Omit<UsePagination<TFetch, TCount>, 'results'> & {
|
|
25
|
+
[P in TProperty]: ComputedRef<Awaited<ReturnType<TFetch>>>;
|
|
26
|
+
};
|
|
27
|
+
export type UsePagination<TFetch extends PaginationFetchAction, TCount extends PaginationCountAction> = {
|
|
28
|
+
subscriptions: UseSubscriptions<TCount | FetchSubscriptionAction<TFetch> | (() => undefined)>['subscriptions'];
|
|
29
|
+
results: ComputedRef<Awaited<ReturnType<TFetch>>>;
|
|
30
|
+
total: ComputedRef<number>;
|
|
31
|
+
pages: ComputedRef<number>;
|
|
32
|
+
page: Ref<number>;
|
|
33
|
+
next: () => void;
|
|
34
|
+
previous: () => void;
|
|
35
|
+
};
|
|
36
|
+
export declare function usePagination<TFetch extends PaginationFetchAction, TFetchParameters extends Getter<Parameters<TFetch> | null>, TCount extends PaginationCountAction, TCountParameters extends Getter<Parameters<TCount> | null>>({ fetchMethod, fetchParameters: fetchParametersGetter, countMethod, countParameters: countParametersGetter, options, }: UsePaginationParameters<TFetch, TFetchParameters, TCount, TCountParameters>): UsePagination<TFetch, TCount>;
|
|
37
|
+
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { Action, UseSubscription } from '@prefecthq/vue-compositions';
|
|
2
|
+
type ExtractAction<T extends readonly UseSubscription<Action>[]> = {
|
|
3
|
+
[K in keyof T]: T[K] extends UseSubscription<infer V> ? V : never;
|
|
4
|
+
};
|
|
2
5
|
export type UseSubscriptions<T extends Action> = {
|
|
3
6
|
subscriptions: Omit<UseSubscription<T>, 'promise' | 'response' | 'error'> & {
|
|
4
7
|
responses: UseSubscription<T>['response'][];
|
|
5
8
|
errors: UseSubscription<T>['error'][];
|
|
6
9
|
};
|
|
7
10
|
};
|
|
8
|
-
export declare function useSubscriptions<T extends Action>(subscriptions:
|
|
11
|
+
export declare function useSubscriptions<T extends UseSubscription<Action>[]>(subscriptions: T): UseSubscriptions<ExtractAction<T>[number]>;
|
|
12
|
+
export {};
|
|
@@ -13,7 +13,7 @@ export declare function isEmptyArray(value: unknown): value is unknown[];
|
|
|
13
13
|
export declare function isStringArray(value: unknown): value is string[];
|
|
14
14
|
export declare function isNumberArray(value: unknown): value is number[];
|
|
15
15
|
export declare function asSingle<T>(value: T | T[]): T;
|
|
16
|
-
export declare function repeat<T>(count: number, method: (index
|
|
16
|
+
export declare function repeat<T>(count: number, method: (index: number) => T): T[];
|
|
17
17
|
export declare function some<T>(source: T[], min?: number, max?: number): T[];
|
|
18
18
|
export declare function intersects(first: unknown[], ...rest: unknown[][]): boolean;
|
|
19
19
|
export declare function groupBy<T, K extends keyof T>(source: T[], key: K): Map<T[K], T[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as O, c as k, J as b, f as c } from "./index-
|
|
1
|
+
import { X as O, c as k, J as b, f as c } from "./index-076ea4f4.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-88169ec4-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-88169ec4-fc1db3cf.mjs.map
|