@prefecthq/prefect-ui-library 2.4.13 → 2.4.14
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/{FlowRunsPageWithDefaultFilter-5F5ylMFR.mjs → FlowRunsPageWithDefaultFilter-HXDo3Czr.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-5F5ylMFR.mjs.map → FlowRunsPageWithDefaultFilter-HXDo3Czr.mjs.map} +1 -1
- package/dist/{index-v4t6G9lN.mjs → index-C6L6vcro.mjs} +14905 -14883
- package/dist/index-C6L6vcro.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +765 -755
- package/dist/prefect-ui-library.umd.js +83 -83
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/src/components/FlowRunsFilterGroup.vue.d.ts +23 -1
- package/dist/types/src/components/PageHeadingFlowRuns.vue.d.ts +9 -2
- package/dist/types/src/components/SaveFilterModal.vue.d.ts +3 -0
- package/dist/types/src/components/SavedFilters.vue.d.ts +19 -1
- package/dist/types/src/compositions/index.d.ts +1 -0
- package/dist/types/src/compositions/useFlowRuns.d.ts +2 -1
- package/dist/types/src/compositions/useWorkspaceFlowRunDashboardFilter.d.ts +9 -0
- package/dist/types/src/formatters/index.d.ts +6 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/models/SavedSearch.d.ts +8 -8
- package/dist/types/src/models/api/SavedSearchResponse.d.ts +14 -1
- package/dist/types/src/utilities/savedFilters.d.ts +8 -2
- package/package.json +1 -1
- package/dist/index-v4t6G9lN.mjs.map +0 -1
- /package/dist/types/src/maps/{flowRunsFilter.d.ts → savedSearchFilter.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DateRangeSelectValue } from '@prefecthq/prefect-design';
|
|
1
2
|
export interface ISavedSearch {
|
|
2
3
|
id: string | null;
|
|
3
4
|
name: string;
|
|
@@ -14,12 +15,11 @@ export declare class SavedSearch implements ISavedSearch {
|
|
|
14
15
|
constructor(savedSearch: ISavedSearch);
|
|
15
16
|
}
|
|
16
17
|
export type SavedSearchFilter = {
|
|
17
|
-
state
|
|
18
|
-
flow
|
|
19
|
-
tag
|
|
20
|
-
deployment
|
|
21
|
-
workQueue
|
|
22
|
-
workPool
|
|
23
|
-
|
|
24
|
-
endDate?: string;
|
|
18
|
+
state: string[];
|
|
19
|
+
flow: string[];
|
|
20
|
+
tag: string[];
|
|
21
|
+
deployment: string[];
|
|
22
|
+
workQueue: string[];
|
|
23
|
+
workPool: string[];
|
|
24
|
+
range: NonNullable<DateRangeSelectValue>;
|
|
25
25
|
};
|
|
@@ -5,7 +5,20 @@ export type SavedSearchResponse = {
|
|
|
5
5
|
name: string;
|
|
6
6
|
filters?: SavedSearchFilterResponse[];
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type DateRangeSpanResponse = {
|
|
9
|
+
type: 'span';
|
|
10
|
+
seconds: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function isDateRangeSpanResponse(value: unknown): value is DateRangeSpanResponse;
|
|
13
|
+
export type DateRangeRangeResponse = {
|
|
14
|
+
type: 'range';
|
|
15
|
+
startDate: string;
|
|
16
|
+
endDate: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function isDateRangeRangeResponse(value: unknown): value is DateRangeRangeResponse;
|
|
19
|
+
export type DateRangeResponse = DateRangeSpanResponse | DateRangeRangeResponse;
|
|
20
|
+
export declare function isDateRangeResponse(value: unknown): value is DateRangeRangeResponse;
|
|
21
|
+
export type FilterResponseValue = string | string[] | DateRangeResponse;
|
|
9
22
|
export interface SavedSearchFilterResponse {
|
|
10
23
|
object?: string;
|
|
11
24
|
property?: string;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { SavedSearch, SavedSearchFilter } from '../models/SavedSearch';
|
|
2
2
|
export declare function isSameFilter(filterA: SavedSearchFilter, filterB: SavedSearchFilter): boolean;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const filterRangePastWeek: {
|
|
4
|
+
readonly type: "span";
|
|
5
|
+
readonly seconds: number;
|
|
6
|
+
};
|
|
4
7
|
export declare const oneWeekFilter: SavedSearchFilter;
|
|
5
8
|
export declare const noScheduleFilter: SavedSearchFilter;
|
|
6
|
-
export declare const customSavedSearch: SavedSearch;
|
|
7
9
|
export declare const oneWeekSavedSearch: SavedSearch;
|
|
8
10
|
export declare const excludeScheduledSavedSearch: SavedSearch;
|
|
11
|
+
export declare const customPartialSearch: {
|
|
12
|
+
id: null;
|
|
13
|
+
name: string;
|
|
14
|
+
};
|
|
9
15
|
export declare const unsavedPartialSearch: {
|
|
10
16
|
id: null;
|
|
11
17
|
name: string;
|