@prefecthq/prefect-ui-library 1.4.0 → 1.4.2
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-3ea05524.mjs → index-60275489.mjs} +14952 -14619
- package/dist/index-60275489.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +588 -581
- package/dist/prefect-ui-library.umd.js +84 -84
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/PageHeadingVariables.vue.d.ts +5 -1
- package/dist/types/src/components/VariablesTable.vue.d.ts +7 -2
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/compositions/filters.d.ts +2 -1
- package/dist/types/src/compositions/index.d.ts +2 -0
- package/dist/types/src/compositions/useFlowRuns.d.ts +5 -0
- package/dist/types/src/compositions/useFlows.d.ts +5 -0
- package/dist/types/src/localization/index.d.ts +7 -1
- package/dist/types/src/localization/locale/en.d.ts +7 -1
- package/dist/types/src/models/StateType.d.ts +3 -3
- package/dist/types/src/models/Variable.d.ts +2 -0
- package/dist/types/src/models/api/VariableResponse.d.ts +1 -1
- package/dist/types/src/services/WorkspaceVariablesApi.d.ts +2 -2
- package/dist/{viewport.es-20251669-a528876a.mjs → viewport.es-ff98659c-69ca68ac.mjs} +2 -2
- package/dist/{viewport.es-20251669-a528876a.mjs.map → viewport.es-ff98659c-69ca68ac.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/index-3ea05524.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import { BlockDocumentFilter, BlockDocumentsFilter, BlockSchemaFilter, BlockSchemasFilter, BlockTypeFilter, BlockTypesFilter, DeploymentFilter, DeploymentsFilter, FlowFilter, FlowRunFilter, FlowRunsFilter, FlowRunsHistoryFilter, FlowsFilter, StateFilter, TagFilter, TaskRunFilter, TaskRunsFilter, VariablesFilter, WorkPoolFilter, WorkPoolQueueFilter, WorkPoolsFilter } from '../models/Filters';
|
|
2
|
+
import { BlockDocumentFilter, BlockDocumentsFilter, BlockSchemaFilter, BlockSchemasFilter, BlockTypeFilter, BlockTypesFilter, DeploymentFilter, DeploymentsFilter, FlowFilter, FlowRunFilter, FlowRunsFilter, FlowRunsHistoryFilter, FlowsFilter, StateFilter, TagFilter, TaskRunFilter, TaskRunsFilter, VariableFilter, VariablesFilter, WorkPoolFilter, WorkPoolQueueFilter, WorkPoolsFilter } from '../models/Filters';
|
|
3
3
|
import { AnyRecord } from '../types/any';
|
|
4
4
|
import { MaybeReactive } from '../types/reactivity';
|
|
5
5
|
export type Filter<T extends AnyRecord> = {
|
|
@@ -37,6 +37,7 @@ export declare function useFlowsFilter(defaultValue?: MaybeReactive<FlowsFilter>
|
|
|
37
37
|
export declare function useFlowRunsFilter(defaultValue?: MaybeReactive<FlowRunsFilter>): UseFilter<FlowRunsFilter>;
|
|
38
38
|
export declare function useTaskRunsFilter(defaultValue?: MaybeReactive<TaskRunsFilter>): UseFilter<TaskRunsFilter>;
|
|
39
39
|
export declare function useDeploymentsFilter(defaultValue?: MaybeReactive<DeploymentsFilter>): UseFilter<DeploymentsFilter>;
|
|
40
|
+
export declare function useVariableFilter(defaultValue?: MaybeReactive<VariableFilter>): UseFilter<VariableFilter>;
|
|
40
41
|
export declare function useVariablesFilter(defaultValue?: MaybeReactive<VariablesFilter>): UseFilter<VariablesFilter>;
|
|
41
42
|
export declare function useFlowsFilterFromRoute(defaultValue?: MaybeReactive<FlowsFilter>, prefix?: string): UseFilter<FlowsFilter>;
|
|
42
43
|
export declare function useFlowRunsFilterFromRoute(defaultValue?: MaybeReactive<FlowRunsFilter>, prefix?: string): UseFilter<FlowRunsFilter>;
|
|
@@ -9,6 +9,8 @@ export * from './useDeployment';
|
|
|
9
9
|
export * from './useFavicon';
|
|
10
10
|
export * from './useFlow';
|
|
11
11
|
export * from './useFlowRun';
|
|
12
|
+
export * from './useFlowRuns';
|
|
13
|
+
export * from './useFlows';
|
|
12
14
|
export * from './useForm';
|
|
13
15
|
export * from './useOptionalRules';
|
|
14
16
|
export * from './usePaginatedSubscription';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceFlowRunsApi } from '../services';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseFlowRuns = UseEntitySubscription<WorkspaceFlowRunsApi['getFlowRuns'], 'flowRuns'>;
|
|
5
|
+
export declare function useFlowRuns(flowRunIds: string[] | Ref<string[] | null | undefined>): UseFlowRuns;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceFlowsApi } from '../services';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseFlows = UseEntitySubscription<WorkspaceFlowsApi['getFlows'], 'flows'>;
|
|
5
|
+
export declare function useFlows(flowIds: string[] | Ref<string[] | null | undefined>): UseFlows;
|
|
@@ -45,6 +45,10 @@ export declare const localization: {
|
|
|
45
45
|
resumeFlowRun: string;
|
|
46
46
|
retryRun: string;
|
|
47
47
|
scheduleFlowRun: string;
|
|
48
|
+
arrayValueTooLong: (property: string, max: number) => string;
|
|
49
|
+
stringValueTooLong: (property: string, max: number) => string;
|
|
50
|
+
numberValueTooLarge: (property: string, max: number) => string;
|
|
51
|
+
valueTooLarge: (property: string, max: number) => string;
|
|
48
52
|
submitNotification: string;
|
|
49
53
|
updateBlock: string;
|
|
50
54
|
updateNotification: string;
|
|
@@ -104,7 +108,8 @@ export declare const localization: {
|
|
|
104
108
|
close: string;
|
|
105
109
|
save: string;
|
|
106
110
|
name: string;
|
|
107
|
-
|
|
111
|
+
thisVariable: string;
|
|
112
|
+
theseVariables: string;
|
|
108
113
|
value: string;
|
|
109
114
|
latest: string;
|
|
110
115
|
item: string;
|
|
@@ -116,6 +121,7 @@ export declare const localization: {
|
|
|
116
121
|
edit: string;
|
|
117
122
|
delete: string;
|
|
118
123
|
tags: string;
|
|
124
|
+
filterByTags: string;
|
|
119
125
|
invalidData: (docsUrl: string) => string;
|
|
120
126
|
noResults: string;
|
|
121
127
|
flowRun: string;
|
|
@@ -45,6 +45,10 @@ export declare const en: {
|
|
|
45
45
|
resumeFlowRun: string;
|
|
46
46
|
retryRun: string;
|
|
47
47
|
scheduleFlowRun: string;
|
|
48
|
+
arrayValueTooLong: (property: string, max: number) => string;
|
|
49
|
+
stringValueTooLong: (property: string, max: number) => string;
|
|
50
|
+
numberValueTooLarge: (property: string, max: number) => string;
|
|
51
|
+
valueTooLarge: (property: string, max: number) => string;
|
|
48
52
|
submitNotification: string;
|
|
49
53
|
updateBlock: string;
|
|
50
54
|
updateNotification: string;
|
|
@@ -104,7 +108,8 @@ export declare const en: {
|
|
|
104
108
|
close: string;
|
|
105
109
|
save: string;
|
|
106
110
|
name: string;
|
|
107
|
-
|
|
111
|
+
thisVariable: string;
|
|
112
|
+
theseVariables: string;
|
|
108
113
|
value: string;
|
|
109
114
|
latest: string;
|
|
110
115
|
item: string;
|
|
@@ -116,6 +121,7 @@ export declare const en: {
|
|
|
116
121
|
edit: string;
|
|
117
122
|
delete: string;
|
|
118
123
|
tags: string;
|
|
124
|
+
filterByTags: string;
|
|
119
125
|
invalidData: (docsUrl: string) => string;
|
|
120
126
|
noResults: string;
|
|
121
127
|
flowRun: string;
|
|
@@ -5,9 +5,9 @@ export declare function isStateType(value: unknown): value is StateType;
|
|
|
5
5
|
export declare const terminalStateType: string[];
|
|
6
6
|
export type TerminalStateType = typeof terminalStateType[number];
|
|
7
7
|
export type ServerTerminalStateType = Uppercase<TerminalStateType>;
|
|
8
|
-
export declare function isTerminalStateType(value:
|
|
8
|
+
export declare function isTerminalStateType(value: unknown): value is TerminalStateType;
|
|
9
9
|
export declare const stuckStateTypes: string[];
|
|
10
10
|
export type StuckStateType = typeof stuckStateTypes[number];
|
|
11
11
|
export declare function isStuckStateType(value: string): value is StuckStateType;
|
|
12
|
-
export declare function isPausedStateType(value:
|
|
13
|
-
export declare function isRunningStateType(value:
|
|
12
|
+
export declare function isPausedStateType(value: unknown): boolean;
|
|
13
|
+
export declare function isRunningStateType(value: unknown): boolean;
|
|
@@ -6,6 +6,8 @@ export interface IVariable {
|
|
|
6
6
|
value: string;
|
|
7
7
|
tags: string[];
|
|
8
8
|
}
|
|
9
|
+
export declare const MAX_VARIABLE_NAME_LENGTH: 255;
|
|
10
|
+
export declare const MAX_VARIABLE_VALUE_LENGTH: 5000;
|
|
9
11
|
export declare class Variable implements IVariable {
|
|
10
12
|
readonly id: string;
|
|
11
13
|
readonly created: Date;
|
|
@@ -4,7 +4,7 @@ export interface IWorkspaceVariablesApi {
|
|
|
4
4
|
getVariables: (filter: VariablesFilter) => Promise<Variable[]>;
|
|
5
5
|
getVariablesCount: (filter: VariablesFilter) => Promise<number>;
|
|
6
6
|
getVariable: (variableId: string) => Promise<Variable>;
|
|
7
|
-
getVariableByName: (variableName: string) => Promise<Variable>;
|
|
7
|
+
getVariableByName: (variableName: string) => Promise<Variable | null>;
|
|
8
8
|
createVariable: (body: VariableCreate) => Promise<Variable>;
|
|
9
9
|
editVariable: (variableId: string, body: VariableEdit) => Promise<Variable>;
|
|
10
10
|
deleteVariable: (variableId: string) => Promise<void>;
|
|
@@ -12,7 +12,7 @@ export interface IWorkspaceVariablesApi {
|
|
|
12
12
|
export declare class WorkspaceVariablesApi extends WorkspaceApi implements IWorkspaceVariablesApi {
|
|
13
13
|
protected routePrefix: string;
|
|
14
14
|
getVariable(variableId: string): Promise<Variable>;
|
|
15
|
-
getVariableByName(variableName: string): Promise<Variable>;
|
|
15
|
+
getVariableByName(variableName: string): Promise<Variable | null>;
|
|
16
16
|
getVariables(filter?: VariablesFilter): Promise<Variable[]>;
|
|
17
17
|
getVariablesCount(filter?: VariablesFilter): Promise<number>;
|
|
18
18
|
createVariable(body: VariableCreate): Promise<Variable>;
|
|
@@ -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-60275489.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-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-ff98659c-69ca68ac.mjs.map
|