@prefecthq/prefect-ui-library 1.2.2 → 1.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.
- package/dist/{index-37d4f806.mjs → index-9f20f10b.mjs} +19449 -19027
- package/dist/index-9f20f10b.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +671 -666
- package/dist/prefect-ui-library.umd.js +80 -80
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/sections/artifacts/ArtifactDataView.vue.d.ts +2 -0
- package/dist/types/src/components/ArtifactDataRaw.vue.d.ts +16 -0
- package/dist/types/src/components/ArtifactDataTable.vue.d.ts +16 -0
- package/dist/types/src/components/ArtifactDetails.vue.d.ts +18 -0
- package/dist/types/src/components/ArtifactKeyIconText.vue.d.ts +15 -0
- package/dist/types/src/components/{ArtifactTimelineItem.vue.d.ts → ArtifactTimelineItemContent.vue.d.ts} +4 -6
- package/dist/types/src/components/ArtifactTimelineItemDate.vue.d.ts +18 -0
- package/dist/types/src/components/FlowRunFilteredList.vue.d.ts +4 -4
- package/dist/types/src/components/LogLevelSelect.vue.d.ts +2 -2
- package/dist/types/src/components/index.d.ts +3 -0
- package/dist/types/src/compositions/index.d.ts +1 -0
- package/dist/types/src/compositions/useArtifact.d.ts +5 -0
- package/dist/types/src/localization/index.d.ts +5 -0
- package/dist/types/src/localization/locale/en.d.ts +5 -0
- package/dist/types/src/mocks/index.d.ts +3 -2
- package/dist/types/src/mocks/table.d.ts +10 -0
- package/dist/types/src/models/Artifact.d.ts +8 -1
- package/dist/types/src/models/Filters.d.ts +1 -1
- package/dist/types/src/models/api/Filters.d.ts +3 -2
- package/dist/types/src/services/Mocker.d.ts +3 -2
- package/dist/types/src/types/artifact.d.ts +2 -0
- package/dist/types/src/utilities/timezone.d.ts +29 -29
- package/dist/{viewport.es-20251669-54dbd82d.mjs → viewport.es-20251669-1ece7d32.mjs} +2 -2
- package/dist/{viewport.es-20251669-54dbd82d.mjs.map → viewport.es-20251669-1ece7d32.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/index-37d4f806.mjs.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Artifact } from '../models';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
artifact: Artifact;
|
|
4
|
+
alternate?: boolean | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
artifact: Artifact;
|
|
7
|
+
alternate?: boolean | undefined;
|
|
8
|
+
}>>>, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
artifactId: string;
|
|
3
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
artifactId: string;
|
|
5
|
+
}>>>, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { Artifact } from '../models';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
artifact: Artifact;
|
|
4
|
-
|
|
5
|
-
expanded?: (boolean | unknown[] | undefined) | null;
|
|
4
|
+
expanded?: boolean | unknown[] | null | undefined;
|
|
6
5
|
value?: unknown;
|
|
7
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"update:expanded": (value: boolean | unknown[] | undefined) => void;
|
|
7
|
+
"update:expanded": (value: boolean | unknown[] | null | undefined) => void;
|
|
9
8
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
9
|
artifact: Artifact;
|
|
11
|
-
|
|
12
|
-
expanded?: (boolean | unknown[] | undefined) | null;
|
|
10
|
+
expanded?: boolean | unknown[] | null | undefined;
|
|
13
11
|
value?: unknown;
|
|
14
12
|
}>>> & {
|
|
15
|
-
"onUpdate:expanded"?: ((value: boolean | unknown[] | undefined) => any) | undefined;
|
|
13
|
+
"onUpdate:expanded"?: ((value: boolean | unknown[] | null | undefined) => any) | undefined;
|
|
16
14
|
}, {}>;
|
|
17
15
|
export default _default;
|
|
18
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Artifact } from '../models';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
artifact: Artifact;
|
|
4
|
+
latest?: boolean | undefined;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
artifact: Artifact;
|
|
7
|
+
latest?: boolean | undefined;
|
|
8
|
+
}>>>, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { FlowRunsFilter } from '../models/Filters';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
flowRunFilter: FlowRunsFilter;
|
|
4
|
-
states?: ("
|
|
4
|
+
states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
6
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:states": (value: ("
|
|
7
|
+
"update:states": (value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => void;
|
|
8
8
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
9
|
flowRunFilter: FlowRunsFilter;
|
|
10
|
-
states?: ("
|
|
10
|
+
states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
}>>> & {
|
|
13
|
-
"onUpdate:states"?: ((value: ("
|
|
13
|
+
"onUpdate:states"?: ((value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => any) | undefined;
|
|
14
14
|
}, {}>, {
|
|
15
15
|
'empty-message': (_: {}) => any;
|
|
16
16
|
}>;
|
|
@@ -2,11 +2,11 @@ import { LogLevel } from '../models';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
selected: LogLevel;
|
|
4
4
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
"update:selected": (value: 0 |
|
|
5
|
+
"update:selected": (value: 0 | 10 | 20 | 30 | 40 | 50) => void;
|
|
6
6
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
selected: LogLevel;
|
|
8
8
|
}>>> & {
|
|
9
|
-
"onUpdate:selected"?: ((value: 0 |
|
|
9
|
+
"onUpdate:selected"?: ((value: 0 | 10 | 20 | 30 | 40 | 50) => any) | undefined;
|
|
10
10
|
}, {}>;
|
|
11
11
|
export default _default;
|
|
12
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -4,9 +4,12 @@ export { default as ArtifactCollectionsEmptyState } from './ArtifactCollectionsE
|
|
|
4
4
|
export { default as ArtifactCollections } from './ArtifactCollections.vue';
|
|
5
5
|
export { default as ArtifactDataView } from './ArtifactDataView.vue';
|
|
6
6
|
export { default as ArtifactDataMarkdown } from './ArtifactDataMarkdown.vue';
|
|
7
|
+
export { default as ArtifactDataRaw } from './ArtifactDataRaw.vue';
|
|
7
8
|
export { default as ArtifactDataResult } from './ArtifactDataResult.vue';
|
|
8
9
|
export { default as ArtifactDataUnknown } from './ArtifactDataUnknown.vue';
|
|
9
10
|
export { default as ArtifactDescription } from './ArtifactDescription.vue';
|
|
11
|
+
export { default as ArtifactDetails } from './ArtifactDetails.vue';
|
|
12
|
+
export { default as ArtifactKeyIconText } from './ArtifactKeyIconText.vue';
|
|
10
13
|
export { default as ArtifactMenu } from './ArtifactMenu.vue';
|
|
11
14
|
export { default as ArtifactResultCard } from './ArtifactResultCard.vue';
|
|
12
15
|
export { default as ArtifactTimeline } from './ArtifactTimeline.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { WorkspaceArtifactsApi } from '../services/WorkspaceArtifactsApi';
|
|
3
|
+
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
4
|
+
export type UseArtifact = UseEntitySubscription<WorkspaceArtifactsApi['getArtifact'], 'artifact'>;
|
|
5
|
+
export declare function useArtifact(artifactId: string | Ref<string | null | undefined>): UseArtifact;
|
|
@@ -91,7 +91,12 @@ export declare const localization: {
|
|
|
91
91
|
artifact: string;
|
|
92
92
|
artifacts: string;
|
|
93
93
|
artifactSearch: string;
|
|
94
|
+
artifactCreated: (key: string) => string;
|
|
95
|
+
artifactTypeChanged: (type: string) => string;
|
|
94
96
|
latest: string;
|
|
97
|
+
item: string;
|
|
98
|
+
noData: string;
|
|
99
|
+
invalidData: (docsUrl: string) => string;
|
|
95
100
|
noResults: string;
|
|
96
101
|
flowRun: string;
|
|
97
102
|
taskRun: string;
|
|
@@ -91,7 +91,12 @@ export declare const en: {
|
|
|
91
91
|
artifact: string;
|
|
92
92
|
artifacts: string;
|
|
93
93
|
artifactSearch: string;
|
|
94
|
+
artifactCreated: (key: string) => string;
|
|
95
|
+
artifactTypeChanged: (type: string) => string;
|
|
94
96
|
latest: string;
|
|
97
|
+
item: string;
|
|
98
|
+
noData: string;
|
|
99
|
+
invalidData: (docsUrl: string) => string;
|
|
95
100
|
noResults: string;
|
|
96
101
|
flowRun: string;
|
|
97
102
|
taskRun: string;
|
|
@@ -10,7 +10,7 @@ export declare const mocks: {
|
|
|
10
10
|
blockType: import("..").MockFunction<import("..").BlockType, [(Partial<import("..").BlockType> | undefined)?]>;
|
|
11
11
|
blockTypeSnippet: import("..").MockFunction<string, []>;
|
|
12
12
|
boolean: import("..").MockFunction<boolean, []>;
|
|
13
|
-
char: import("..").MockFunction<"
|
|
13
|
+
char: import("..").MockFunction<"a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z", []>;
|
|
14
14
|
collectionItem: import("..").MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
15
15
|
concurrencyLimit: import("..").MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
16
16
|
createdOrUpdatedBy: import("..").MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
@@ -31,7 +31,7 @@ export declare const mocks: {
|
|
|
31
31
|
height: number;
|
|
32
32
|
}) | undefined)?]>;
|
|
33
33
|
log: import("..").MockFunction<import("..").Log, [(Partial<import("..").Log> | undefined)?]>;
|
|
34
|
-
logLevel: import("..").MockFunction<0 |
|
|
34
|
+
logLevel: import("..").MockFunction<0 | 10 | 20 | 30 | 40 | 50, []>;
|
|
35
35
|
markdownCodeBlockString: import("..").MockFunction<string, [({
|
|
36
36
|
lines?: number | undefined;
|
|
37
37
|
} | undefined)?]>;
|
|
@@ -69,6 +69,7 @@ export declare const mocks: {
|
|
|
69
69
|
state: import("..").MockFunction<import("..").State, [(Partial<import("..").State> | undefined)?]>;
|
|
70
70
|
stateType: import("..").MockFunction<"completed" | "running" | "scheduled" | "pending" | "failed" | "cancelled" | "crashed" | "paused", []>;
|
|
71
71
|
string: import("..").MockFunction<string, [(number | undefined)?]>;
|
|
72
|
+
table: import("..").MockFunction<import("@prefecthq/prefect-design").TableData[], [(Partial<import("../mocks/table").MockTableOverrides> | undefined)?]>;
|
|
72
73
|
taskRun: import("..").MockFunction<import("..").TaskRun, [(Partial<import("..").TaskRun> | undefined)?]>;
|
|
73
74
|
uiFlowRunHistory: import("..").MockFunction<import("..").UiFlowRunHistory, [(Partial<import("..").UiFlowRunHistory> | undefined)?]>;
|
|
74
75
|
url: import("..").MockFunction<string, [(boolean | undefined)?]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TableData } from '@prefecthq/prefect-design';
|
|
2
|
+
import { MockFunction } from '../services/Mocker';
|
|
3
|
+
export type MockTableDataTypes = 'noun' | 'number' | 'boolean' | 'dateString' | 'email' | 'runName';
|
|
4
|
+
export type MockTableOverrides = {
|
|
5
|
+
keys?: string[];
|
|
6
|
+
types?: MockTableDataTypes[];
|
|
7
|
+
columnCount?: number;
|
|
8
|
+
rowCount?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const randomTable: MockFunction<TableData[], [Partial<MockTableOverrides>?]>;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
export declare const artifactTypes: readonly ["result", "markdown", "table", "unknown"];
|
|
2
2
|
export type ArtifactType = typeof artifactTypes[number];
|
|
3
|
+
export declare const artifactTypeIconMap: {
|
|
4
|
+
readonly default: "FingerPrintIcon";
|
|
5
|
+
readonly markdown: "DocumentTextIcon";
|
|
6
|
+
readonly table: "TableIcon";
|
|
7
|
+
readonly result: "CalculatorIcon";
|
|
8
|
+
readonly unknown: "FingerPrintIcon";
|
|
9
|
+
};
|
|
3
10
|
export type ResultArtifactData = Record<string, unknown>;
|
|
4
11
|
export type MarkdownArtifactData = string;
|
|
5
|
-
export type TableArtifactData =
|
|
12
|
+
export type TableArtifactData = string;
|
|
6
13
|
export type UnknownArtifactData = unknown;
|
|
7
14
|
export type ArtifactData = ResultArtifactData | MarkdownArtifactData | TableArtifactData | UnknownArtifactData;
|
|
8
15
|
export type ArtifactMetadata = Record<string, string>;
|
|
@@ -30,7 +30,7 @@ export type Exists = {
|
|
|
30
30
|
};
|
|
31
31
|
/** Matches on boolean equality */
|
|
32
32
|
export type Latest = {
|
|
33
|
-
|
|
33
|
+
is_latest: boolean;
|
|
34
34
|
};
|
|
35
35
|
/** If true, returns results whose key is null */
|
|
36
36
|
export type IsNull = {
|
|
@@ -141,10 +141,11 @@ export type TaskRunsFilterRequest = UnionFilterRequest<TaskRunSortValues>;
|
|
|
141
141
|
export type DeploymentsFilterRequest = UnionFilterRequest<DeploymentSortValues>;
|
|
142
142
|
export type ArtifactFilterRequest = {
|
|
143
143
|
id?: Any;
|
|
144
|
-
key?: Any & Like & Exists
|
|
144
|
+
key?: Any & Like & Exists;
|
|
145
145
|
type?: Any & NotAny;
|
|
146
146
|
flow_run_id?: Any;
|
|
147
147
|
task_run_id?: Any;
|
|
148
|
+
is_latest?: Latest;
|
|
148
149
|
};
|
|
149
150
|
export type ArtifactsFilterRequest = {
|
|
150
151
|
artifacts?: ArtifactFilterRequest;
|
|
@@ -23,7 +23,7 @@ export declare const mocker: Mocker<{
|
|
|
23
23
|
blockType: MockFunction<import("..").BlockType, [(Partial<import("..").BlockType> | undefined)?]>;
|
|
24
24
|
blockTypeSnippet: MockFunction<string, []>;
|
|
25
25
|
boolean: MockFunction<boolean, []>;
|
|
26
|
-
char: MockFunction<"
|
|
26
|
+
char: MockFunction<"a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z", []>;
|
|
27
27
|
collectionItem: MockFunction<import("..").CollectionItem, [(Partial<import("..").CollectionItem> | undefined)?]>;
|
|
28
28
|
concurrencyLimit: MockFunction<import("..").ConcurrencyLimit, [(Partial<import("..").ConcurrencyLimit> | undefined)?]>;
|
|
29
29
|
createdOrUpdatedBy: MockFunction<import("..").CreatedOrUpdatedBy, [(Partial<import("..").CreatedOrUpdatedBy> | undefined)?]>;
|
|
@@ -44,7 +44,7 @@ export declare const mocker: Mocker<{
|
|
|
44
44
|
height: number;
|
|
45
45
|
}) | undefined)?]>;
|
|
46
46
|
log: MockFunction<import("..").Log, [(Partial<import("..").Log> | undefined)?]>;
|
|
47
|
-
logLevel: MockFunction<0 |
|
|
47
|
+
logLevel: MockFunction<0 | 10 | 20 | 30 | 40 | 50, []>;
|
|
48
48
|
markdownCodeBlockString: MockFunction<string, [({
|
|
49
49
|
lines?: number | undefined;
|
|
50
50
|
} | undefined)?]>;
|
|
@@ -82,6 +82,7 @@ export declare const mocker: Mocker<{
|
|
|
82
82
|
state: MockFunction<import("..").State, [(Partial<import("..").State> | undefined)?]>;
|
|
83
83
|
stateType: MockFunction<"completed" | "running" | "scheduled" | "pending" | "failed" | "cancelled" | "crashed" | "paused", []>;
|
|
84
84
|
string: MockFunction<string, [(number | undefined)?]>;
|
|
85
|
+
table: MockFunction<import("@prefecthq/prefect-design").TableData[], [(Partial<import("../mocks/table").MockTableOverrides> | undefined)?]>;
|
|
85
86
|
taskRun: MockFunction<import("..").TaskRun, [(Partial<import("..").TaskRun> | undefined)?]>;
|
|
86
87
|
uiFlowRunHistory: MockFunction<import("..").UiFlowRunHistory, [(Partial<import("..").UiFlowRunHistory> | undefined)?]>;
|
|
87
88
|
url: MockFunction<string, [(boolean | undefined)?]>;
|
|
@@ -5,4 +5,6 @@ export declare function isArtifactType<T extends ArtifactType>(artifact: Artifac
|
|
|
5
5
|
export declare function isKnownArtifactType(type: unknown): type is ArtifactType & Exclude<ArtifactType, 'unknown'>;
|
|
6
6
|
export declare function isResultArtifactData(data: ArtifactData): data is ResultArtifactData;
|
|
7
7
|
export declare function isMarkdownArtifactData(data: ArtifactData): data is MarkdownArtifactData;
|
|
8
|
+
export declare function isArrayOfMaps(data: unknown): data is Record<string, unknown>[];
|
|
9
|
+
export declare function isMapOfArrays(data: unknown): data is Record<string, unknown[]>;
|
|
8
10
|
export declare function isTableArtifactData(data: ArtifactData): data is TableArtifactData;
|
|
@@ -40,7 +40,7 @@ export declare const dateFunctions: {
|
|
|
40
40
|
differenceInCalendarQuarters(dateLeft: number | Date, dateRight: number | Date): number;
|
|
41
41
|
differenceInCalendarWeeks(dateLeft: number | Date, dateRight: number | Date, options?: {
|
|
42
42
|
locale?: Locale | undefined;
|
|
43
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
43
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
44
44
|
} | undefined): number;
|
|
45
45
|
differenceInCalendarYears(dateLeft: number | Date, dateRight: number | Date): number;
|
|
46
46
|
differenceInDays(dateLeft: number | Date, dateRight: number | Date): number;
|
|
@@ -79,7 +79,7 @@ export declare const dateFunctions: {
|
|
|
79
79
|
eachWeekendOfYear(date: number | Date): Date[];
|
|
80
80
|
eachWeekOfInterval(interval: Interval, options?: {
|
|
81
81
|
locale?: Locale | undefined;
|
|
82
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
82
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
83
83
|
} | undefined): Date[];
|
|
84
84
|
eachYearOfInterval(interval: Interval): Date[];
|
|
85
85
|
endOfDay(date: number | Date): Date;
|
|
@@ -97,13 +97,13 @@ export declare const dateFunctions: {
|
|
|
97
97
|
endOfTomorrow(): Date;
|
|
98
98
|
endOfWeek(date: number | Date, options?: {
|
|
99
99
|
locale?: Locale | undefined;
|
|
100
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
100
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
101
101
|
} | undefined): Date;
|
|
102
102
|
endOfYear(date: number | Date): Date;
|
|
103
103
|
endOfYesterday(): Date;
|
|
104
104
|
format(date: number | Date, format: string, options?: {
|
|
105
105
|
locale?: Locale | undefined;
|
|
106
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
106
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
107
107
|
firstWeekContainsDate?: number | undefined;
|
|
108
108
|
useAdditionalWeekYearTokens?: boolean | undefined;
|
|
109
109
|
useAdditionalDayOfYearTokens?: boolean | undefined;
|
|
@@ -147,7 +147,7 @@ export declare const dateFunctions: {
|
|
|
147
147
|
formatISODuration(duration: Duration): string;
|
|
148
148
|
formatRelative(date: number | Date, baseDate: number | Date, options?: {
|
|
149
149
|
locale?: Locale | undefined;
|
|
150
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
150
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
151
151
|
} | undefined): string;
|
|
152
152
|
formatRFC3339(date: number | Date, options?: {
|
|
153
153
|
fractionDigits?: 0 | 1 | 2 | 3 | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const dateFunctions: {
|
|
|
155
155
|
formatRFC7231(date: number | Date): string;
|
|
156
156
|
fromUnixTime(unixTime: number): Date;
|
|
157
157
|
getDate(date: number | Date): number;
|
|
158
|
-
getDay(date: number | Date): 0 | 1 | 4 |
|
|
158
|
+
getDay(date: number | Date): 0 | 1 | 4 | 2 | 6 | 5 | 3;
|
|
159
159
|
getDayOfYear(date: number | Date): number;
|
|
160
160
|
getDaysInMonth(date: number | Date): number;
|
|
161
161
|
getDaysInYear(date: number | Date): number;
|
|
@@ -176,21 +176,21 @@ export declare const dateFunctions: {
|
|
|
176
176
|
getUnixTime(date: number | Date): number;
|
|
177
177
|
getWeek(date: number | Date, options?: {
|
|
178
178
|
locale?: Locale | undefined;
|
|
179
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
180
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
179
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
180
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
181
181
|
} | undefined): number;
|
|
182
182
|
getWeekOfMonth(date: number | Date, options?: {
|
|
183
183
|
locale?: Locale | undefined;
|
|
184
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
184
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
185
185
|
} | undefined): number;
|
|
186
186
|
getWeeksInMonth(date: number | Date, options?: {
|
|
187
187
|
locale?: Locale | undefined;
|
|
188
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
188
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
189
189
|
} | undefined): number;
|
|
190
190
|
getWeekYear(date: number | Date, options?: {
|
|
191
191
|
locale?: Locale | undefined;
|
|
192
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
193
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
192
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
193
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
194
194
|
} | undefined): number;
|
|
195
195
|
getYear(date: number | Date): number;
|
|
196
196
|
hoursToMilliseconds(hours: number): number;
|
|
@@ -233,8 +233,8 @@ export declare const dateFunctions: {
|
|
|
233
233
|
isLeapYear(date: number | Date): boolean;
|
|
234
234
|
isMatch(dateString: string, formatString: string, options?: {
|
|
235
235
|
locale?: Locale | undefined;
|
|
236
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
237
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
236
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
237
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
238
238
|
useAdditionalWeekYearTokens?: boolean | undefined;
|
|
239
239
|
useAdditionalDayOfYearTokens?: boolean | undefined;
|
|
240
240
|
} | undefined): boolean;
|
|
@@ -250,7 +250,7 @@ export declare const dateFunctions: {
|
|
|
250
250
|
isSameSecond(dateLeft: number | Date, dateRight: number | Date): boolean;
|
|
251
251
|
isSameWeek(dateLeft: number | Date, dateRight: number | Date, options?: {
|
|
252
252
|
locale?: Locale | undefined;
|
|
253
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
253
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
254
254
|
} | undefined): boolean;
|
|
255
255
|
isSameYear(dateLeft: number | Date, dateRight: number | Date): boolean;
|
|
256
256
|
isSaturday(date: number | Date): boolean;
|
|
@@ -263,7 +263,7 @@ export declare const dateFunctions: {
|
|
|
263
263
|
isThisSecond(date: number | Date): boolean;
|
|
264
264
|
isThisWeek(date: number | Date, options?: {
|
|
265
265
|
locale?: Locale | undefined;
|
|
266
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
266
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
267
267
|
} | undefined): boolean;
|
|
268
268
|
isThisYear(date: number | Date): boolean;
|
|
269
269
|
isThursday(date: number | Date): boolean;
|
|
@@ -284,7 +284,7 @@ export declare const dateFunctions: {
|
|
|
284
284
|
} | undefined): Date;
|
|
285
285
|
lastDayOfWeek(date: number | Date, options?: {
|
|
286
286
|
locale?: Locale | undefined;
|
|
287
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
287
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
288
288
|
} | undefined): Date;
|
|
289
289
|
lastDayOfYear(date: number | Date): Date;
|
|
290
290
|
lightFormat(date: number | Date, format: string): string;
|
|
@@ -309,8 +309,8 @@ export declare const dateFunctions: {
|
|
|
309
309
|
nextWednesday(date: number | Date): Date;
|
|
310
310
|
parse(dateString: string, formatString: string, referenceDate: number | Date, options?: {
|
|
311
311
|
locale?: Locale | undefined;
|
|
312
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
313
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
312
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
313
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
314
314
|
useAdditionalWeekYearTokens?: boolean | undefined;
|
|
315
315
|
useAdditionalDayOfYearTokens?: boolean | undefined;
|
|
316
316
|
} | undefined): Date;
|
|
@@ -347,13 +347,13 @@ export declare const dateFunctions: {
|
|
|
347
347
|
setDate(date: number | Date, dayOfMonth: number): Date;
|
|
348
348
|
setDay(date: number | Date, day: number, options?: {
|
|
349
349
|
locale?: Locale | undefined;
|
|
350
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
350
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
351
351
|
} | undefined): Date;
|
|
352
352
|
setDayOfYear(date: number | Date, dayOfYear: number): Date;
|
|
353
353
|
setDefaultOptions(newOptions: {
|
|
354
354
|
locale?: Locale | undefined;
|
|
355
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
356
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
355
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
356
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
357
357
|
}): void;
|
|
358
358
|
setHours(date: number | Date, hours: number): Date;
|
|
359
359
|
setISODay(date: number | Date, day: number): Date;
|
|
@@ -366,13 +366,13 @@ export declare const dateFunctions: {
|
|
|
366
366
|
setSeconds(date: number | Date, seconds: number): Date;
|
|
367
367
|
setWeek(date: number | Date, week: number, options?: {
|
|
368
368
|
locale?: Locale | undefined;
|
|
369
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
370
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
369
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
370
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
371
371
|
} | undefined): Date;
|
|
372
372
|
setWeekYear(date: number | Date, weekYear: number, options?: {
|
|
373
373
|
locale?: Locale | undefined;
|
|
374
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
375
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
374
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
375
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
376
376
|
} | undefined): Date;
|
|
377
377
|
setYear(date: number | Date, year: number): Date;
|
|
378
378
|
startOfDay(date: number | Date): Date;
|
|
@@ -388,12 +388,12 @@ export declare const dateFunctions: {
|
|
|
388
388
|
startOfTomorrow(): Date;
|
|
389
389
|
startOfWeek(date: number | Date, options?: {
|
|
390
390
|
locale?: Locale | undefined;
|
|
391
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
391
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
392
392
|
} | undefined): Date;
|
|
393
393
|
startOfWeekYear(date: number | Date, options?: {
|
|
394
394
|
locale?: Locale | undefined;
|
|
395
|
-
weekStartsOn?: 0 | 1 | 4 |
|
|
396
|
-
firstWeekContainsDate?: 1 | 4 |
|
|
395
|
+
weekStartsOn?: 0 | 1 | 4 | 2 | 6 | 5 | 3 | undefined;
|
|
396
|
+
firstWeekContainsDate?: 1 | 4 | 2 | 6 | 7 | 5 | 3 | undefined;
|
|
397
397
|
} | undefined): Date;
|
|
398
398
|
startOfYear(date: number | Date): Date;
|
|
399
399
|
startOfYesterday(): Date;
|
|
@@ -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-9f20f10b.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-20251669-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-20251669-1ece7d32.mjs.map
|