@ocelescope/core 0.6.0 → 0.8.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/README.md +61 -14
- package/dist/ActivityPicker-DbrGeiC_.js +18 -0
- package/dist/AreaChart-DoD3LM50.js +36 -0
- package/dist/BarChart-Cixo5Okd.js +69 -0
- package/dist/EventAttributePicker-Cf2vVKv5.js +27 -0
- package/dist/LineChart-CVz-dkJI.js +64 -0
- package/dist/NamePicker-Be-qmr1x.js +43 -0
- package/dist/ObjectAttributePicker-CL43EsYt.js +27 -0
- package/dist/ObjectTypePicker-CKmszS0y.js +18 -0
- package/dist/OcelChart-DvGTjJXo.js +41 -0
- package/dist/PieChart-DBiASngC.js +62 -0
- package/dist/Plot-CxHHyXot.js +75 -0
- package/dist/ScatterChart-jIQOjQes.js +36 -0
- package/dist/SqlChart-bwDArK2l.js +101 -0
- package/dist/SunburstChart-D6FhYBHI.js +73 -0
- package/dist/cartesian-5TPNWjl_.js +41 -0
- package/dist/index.d.ts +478 -39
- package/dist/index.js +182 -85
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/series-BBXVjHHY.js +32 -0
- package/dist/style.css +46576 -1
- package/dist/useCurrentOCEL-BeBa7K0g.js +34 -0
- package/dist/useOcelId-BSU0-Srk.js +6 -0
- package/dist/useOcelQuery-D1QM-Zgv.js +34 -0
- package/package.json +27 -23
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AggregatedAttribute, RelationCountSummary, TypedAttribute, ValueType } from "@ocelescope/api-base";
|
|
1
|
+
import { Select } from "@mantine/core";
|
|
2
|
+
import { AggregatedAttribute, RelationCountSummary, SqlQueryResult, TypedAttribute, ValueType } from "@ocelescope/api-base";
|
|
3
3
|
import { DataTableColumn } from "mantine-datatable";
|
|
4
4
|
import { ComponentProps, SVGProps } from "react";
|
|
5
5
|
import { Dropzone, FileWithPath } from "@mantine/dropzone";
|
|
6
|
+
import { ViewerConfig, ViewerProps } from "@r4pm/components";
|
|
6
7
|
import { GetStaticPaths, GetStaticProps, NextApiRequest, NextApiResponse } from "next";
|
|
7
8
|
//#region src/components/AttributeTable.d.ts
|
|
8
9
|
type OcelVersion$1 = "original" | "filtered";
|
|
@@ -16,18 +17,139 @@ declare const AttributesTable: React.FC<{
|
|
|
16
17
|
ocelVersion?: OcelVersion$1;
|
|
17
18
|
alwaysExpandable?: boolean;
|
|
18
19
|
visibleAttributes?: string[];
|
|
20
|
+
height?: string | number;
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
19
23
|
}>;
|
|
20
24
|
//#endregion
|
|
21
25
|
//#region src/components/BarList/BarList.d.ts
|
|
22
|
-
declare const BarList: React.FC<{
|
|
26
|
+
export declare const BarList: React.FC<{
|
|
23
27
|
data: Record<string, number>;
|
|
24
28
|
labelHeader: string;
|
|
25
29
|
valueHeader?: string;
|
|
26
30
|
maxVisibleItems?: number;
|
|
27
31
|
}>;
|
|
28
32
|
//#endregion
|
|
33
|
+
//#region src/components/charts/types.d.ts
|
|
34
|
+
/** One row of a tidy result: a value per column. */
|
|
35
|
+
type Row = Record<string, unknown>;
|
|
36
|
+
/** What every chart is given: rows, and which columns to read them by. */
|
|
37
|
+
interface ChartProps {
|
|
38
|
+
rows: readonly Row[];
|
|
39
|
+
/** Column whose values name the categories. */
|
|
40
|
+
x: string;
|
|
41
|
+
/** Column, or columns, holding the numbers. */
|
|
42
|
+
y: string | readonly string[];
|
|
43
|
+
/** Column unfolded into one series per distinct value. */
|
|
44
|
+
series?: string;
|
|
45
|
+
/** Colour for a name, e.g. the one the graph viewers give it. */
|
|
46
|
+
colorOf?: (name: string) => string;
|
|
47
|
+
/** A click on a mark, by the name that mark carries. */
|
|
48
|
+
onSelect?: (name: string, point: unknown) => void;
|
|
49
|
+
}
|
|
50
|
+
/** What the charts drawn against two axes take on top of the rest. */
|
|
51
|
+
interface CartesianChartProps extends ChartProps {
|
|
52
|
+
/** Hold the x axis to this range instead of fitting it to the rows - so
|
|
53
|
+
* that several charts share one timeline, or a lone reading does not zoom
|
|
54
|
+
* the axis down to the millisecond around itself. */
|
|
55
|
+
xRange?: readonly [unknown, unknown];
|
|
56
|
+
}
|
|
57
|
+
/** One trace's worth of rows: what it is called, and what it draws. */
|
|
58
|
+
interface Series {
|
|
59
|
+
name: string;
|
|
60
|
+
labels: string[];
|
|
61
|
+
/** Numbers where the rows hold numbers, and the text itself where they do
|
|
62
|
+
* not - an attribute reading "in transit" belongs on its own axis, not at
|
|
63
|
+
* zero. Plotly decides the axis from what it is given. */
|
|
64
|
+
values: Array<number | string>;
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/charts/BarChart.d.ts
|
|
68
|
+
interface BarChartProps extends CartesianChartProps {
|
|
69
|
+
/** Stack the traces instead of standing them side by side. */
|
|
70
|
+
stacked?: boolean;
|
|
71
|
+
/** Bars along the x axis, which long category names need. */
|
|
72
|
+
horizontal?: boolean;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/components/charts/LineChart.d.ts
|
|
76
|
+
interface LineChartProps extends CartesianChartProps {
|
|
77
|
+
/** Hold each value until the next one, instead of sloping between them.
|
|
78
|
+
* What a thing was worth between two readings is what it last read. */
|
|
79
|
+
step?: boolean;
|
|
80
|
+
/** Give every line its own overlaid scale. Useful when the series have
|
|
81
|
+
* different units or ranges. Axes alternate left and right and use the
|
|
82
|
+
* line colour, so the association stays visible without separate plots. */
|
|
83
|
+
yAxes?: "shared" | "independent";
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region src/components/charts/PieChart.d.ts
|
|
87
|
+
interface PieChartProps extends ChartProps {
|
|
88
|
+
/** The hole in the middle, as a share of the radius. 0 for a full pie. */
|
|
89
|
+
hole?: number;
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region src/components/charts/SunburstChart.d.ts
|
|
93
|
+
interface SunburstChartProps extends ChartProps {
|
|
94
|
+
/** The rings, innermost first. Defaults to the category, then the series. */
|
|
95
|
+
path?: readonly string[];
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/charts/AreaChart.d.ts
|
|
99
|
+
type AreaChartProps = CartesianChartProps;
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/components/charts/ScatterChart.d.ts
|
|
102
|
+
type ScatterChartProps = CartesianChartProps;
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/components/charts/index.d.ts
|
|
105
|
+
type ChartType = "bar" | "line" | "area" | "scatter" | "pie" | "sunburst";
|
|
106
|
+
/** How a query's result is drawn, when the columns alone should not decide. */
|
|
107
|
+
interface ChartOptions {
|
|
108
|
+
type?: ChartType;
|
|
109
|
+
/** Types offered in the header switch. Fewer than two hides it. */
|
|
110
|
+
types?: ChartType[];
|
|
111
|
+
/** Category column. Defaults to the first non-numeric column. */
|
|
112
|
+
x?: string;
|
|
113
|
+
/** Measure column(s). Defaults to every numeric column. */
|
|
114
|
+
y?: string | string[];
|
|
115
|
+
/** Column unfolded into one series per distinct value. */
|
|
116
|
+
series?: string;
|
|
117
|
+
/** Sunburst rings, innermost first. Defaults to `[x, series]`. */
|
|
118
|
+
path?: string[];
|
|
119
|
+
stacked?: boolean;
|
|
120
|
+
horizontal?: boolean;
|
|
121
|
+
/** For line charts, overlay one y scale per line rather than sharing one. */
|
|
122
|
+
yAxes?: "shared" | "independent";
|
|
123
|
+
/** Colour through the host's resolver under this scope ("activity",
|
|
124
|
+
* "objectType"), so a category keeps the colour the graph viewers give it. */
|
|
125
|
+
colorScope?: string;
|
|
126
|
+
title?: string;
|
|
127
|
+
height?: number | string;
|
|
128
|
+
}
|
|
129
|
+
type SqlChartProps = ViewerProps<SqlQueryResult> & ChartOptions;
|
|
130
|
+
interface OcelChartProps extends ChartOptions, ViewerConfig {
|
|
131
|
+
/** DuckDB SQL over the OCEL's stored tables: `events`, `objects`, `e2o`,
|
|
132
|
+
* `o2o`, `object_changes`. One `SELECT`; the backend refuses anything else. */
|
|
133
|
+
sql: string;
|
|
134
|
+
/** Values bound to the query's `?` placeholders. Bind them here rather than
|
|
135
|
+
* building the SQL by hand. */
|
|
136
|
+
parameters?: unknown[];
|
|
137
|
+
/** Defaults to the filtered log, which is what the rest of the app shows. */
|
|
138
|
+
ocelVersion?: "filtered" | "original";
|
|
139
|
+
/** Hold the query back, e.g. until the user has picked an activity. */
|
|
140
|
+
enabled?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export declare const BarChart: import("react").ComponentType<BarChartProps>;
|
|
143
|
+
export declare const LineChart: import("react").ComponentType<LineChartProps>;
|
|
144
|
+
export declare const AreaChart: import("react").ComponentType<CartesianChartProps>;
|
|
145
|
+
export declare const ScatterChart: import("react").ComponentType<CartesianChartProps>;
|
|
146
|
+
export declare const PieChart: import("react").ComponentType<PieChartProps>;
|
|
147
|
+
export declare const SunburstChart: import("react").ComponentType<SunburstChartProps>;
|
|
148
|
+
export declare const SqlChart: import("react").ComponentType<SqlChartProps>;
|
|
149
|
+
export declare const OcelChart: import("react").ComponentType<OcelChartProps>;
|
|
150
|
+
//#endregion
|
|
29
151
|
//#region src/components/Dropzone/Dropzone.d.ts
|
|
30
|
-
declare const FileDropzone: React.FC<{
|
|
152
|
+
export declare const FileDropzone: React.FC<{
|
|
31
153
|
onUpload: (files: FileWithPath[]) => void;
|
|
32
154
|
accept?: ComponentProps<typeof Dropzone>["accept"];
|
|
33
155
|
content: {
|
|
@@ -39,7 +161,7 @@ declare const FileDropzone: React.FC<{
|
|
|
39
161
|
}>;
|
|
40
162
|
//#endregion
|
|
41
163
|
//#region src/components/Dropzone/FullScreenUpload.d.ts
|
|
42
|
-
declare const FullScreenUpload: React.FC<{
|
|
164
|
+
export declare const FullScreenUpload: React.FC<{
|
|
43
165
|
onSuccess?: () => void;
|
|
44
166
|
accept?: ComponentProps<typeof Dropzone.FullScreen>["accept"];
|
|
45
167
|
label?: React.ReactNode;
|
|
@@ -47,10 +169,10 @@ declare const FullScreenUpload: React.FC<{
|
|
|
47
169
|
}>;
|
|
48
170
|
//#endregion
|
|
49
171
|
//#region src/components/EventHandler.d.ts
|
|
50
|
-
declare const sseHandler: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
|
172
|
+
export declare const sseHandler: (req: NextApiRequest, res: NextApiResponse) => Promise<void>;
|
|
51
173
|
//#endregion
|
|
52
174
|
//#region src/components/HelpModal/HelpModal.d.ts
|
|
53
|
-
declare const HelpModal: React.FC<{
|
|
175
|
+
export declare const HelpModal: React.FC<{
|
|
54
176
|
visible: boolean;
|
|
55
177
|
onClose: () => void;
|
|
56
178
|
}>;
|
|
@@ -60,7 +182,7 @@ type Author = {
|
|
|
60
182
|
name: string;
|
|
61
183
|
link?: string;
|
|
62
184
|
};
|
|
63
|
-
type ModuleDefinition = {
|
|
185
|
+
export type ModuleDefinition = {
|
|
64
186
|
name: string;
|
|
65
187
|
label: string;
|
|
66
188
|
authors: Author[];
|
|
@@ -68,28 +190,28 @@ type ModuleDefinition = {
|
|
|
68
190
|
routes: ModuleRouteDefinition[];
|
|
69
191
|
icon?: React.ComponentType<SVGProps<SVGSVGElement>>;
|
|
70
192
|
};
|
|
71
|
-
type ModuleRouteDefinition = {
|
|
193
|
+
export type ModuleRouteDefinition = {
|
|
72
194
|
name: string;
|
|
73
195
|
label: string;
|
|
74
196
|
requiresOcel?: boolean;
|
|
75
197
|
component: React.ComponentType;
|
|
76
198
|
};
|
|
77
|
-
type OcelescopeConfig = {
|
|
199
|
+
export type OcelescopeConfig = {
|
|
78
200
|
modules?: readonly ModuleDefinition[];
|
|
79
201
|
navbarGroups?: {
|
|
80
202
|
title?: string;
|
|
81
203
|
modulesNames: string[];
|
|
82
204
|
}[];
|
|
83
205
|
};
|
|
84
|
-
declare const defineModule: (def: ModuleDefinition) => ModuleDefinition;
|
|
85
|
-
declare const defineModuleRoute: (def: ModuleRouteDefinition) => ModuleRouteDefinition;
|
|
206
|
+
export declare const defineModule: (def: ModuleDefinition) => ModuleDefinition;
|
|
207
|
+
export declare const defineModuleRoute: (def: ModuleRouteDefinition) => ModuleRouteDefinition;
|
|
86
208
|
//#endregion
|
|
87
209
|
//#region src/components/ModulePage.d.ts
|
|
88
210
|
type ModulePageProps = {
|
|
89
211
|
moduleName: string;
|
|
90
212
|
routeName: string;
|
|
91
213
|
};
|
|
92
|
-
declare const createModulesPage: (config: OcelescopeConfig) => {
|
|
214
|
+
export declare const createModulesPage: (config: OcelescopeConfig) => {
|
|
93
215
|
getStaticPaths: GetStaticPaths;
|
|
94
216
|
getStaticProps: GetStaticProps<ModulePageProps>;
|
|
95
217
|
ModulePage: import("react").FunctionComponent<ModulePageProps> & {
|
|
@@ -98,25 +220,131 @@ declare const createModulesPage: (config: OcelescopeConfig) => {
|
|
|
98
220
|
};
|
|
99
221
|
//#endregion
|
|
100
222
|
//#region src/components/OcelescopeApp.d.ts
|
|
101
|
-
declare const OcelescopeApp: (config: OcelescopeConfig) => React.FC<any>;
|
|
223
|
+
export declare const OcelescopeApp: (config: OcelescopeConfig) => React.FC<any>;
|
|
102
224
|
//#endregion
|
|
103
225
|
//#region src/components/OcelescopeDocument.d.ts
|
|
104
|
-
declare const OcelescopeDocument: React.FC;
|
|
226
|
+
export declare const OcelescopeDocument: React.FC;
|
|
105
227
|
//#endregion
|
|
106
228
|
//#region src/components/OcelSelect/OcelSelect.d.ts
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
229
|
+
export declare const OcelSelect: ({ value, ...props }: Omit<ComponentProps<typeof Select<string>>, "data">) => import("react").JSX.Element;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/components/pickers/types.d.ts
|
|
232
|
+
/** Which OCEL a picker reads its choices from. */
|
|
233
|
+
interface OcelSource {
|
|
234
|
+
/** Defaults to the OCEL the app has selected. */
|
|
235
|
+
ocelId?: string;
|
|
236
|
+
/** The unfiltered log, for choices that must not shift under a filter. */
|
|
237
|
+
ocelVersion?: "filtered" | "original";
|
|
238
|
+
}
|
|
239
|
+
/** Picking one name, or none. */
|
|
240
|
+
interface SinglePicker {
|
|
241
|
+
multiple?: false;
|
|
242
|
+
value: string | null | undefined;
|
|
243
|
+
onChange: (value: string | undefined) => void;
|
|
244
|
+
}
|
|
245
|
+
/** Picking any number of names. */
|
|
246
|
+
interface MultiPicker {
|
|
247
|
+
multiple: true;
|
|
248
|
+
value: readonly string[];
|
|
249
|
+
onChange: (value: string[]) => void;
|
|
250
|
+
}
|
|
251
|
+
/** What a picker picks. Single unless it says otherwise. */
|
|
252
|
+
type Selection = SinglePicker | MultiPicker;
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/components/pickers/NamePicker.d.ts
|
|
255
|
+
/** A name to pick, and how often it occurs. */
|
|
256
|
+
interface NameItem {
|
|
257
|
+
key: string;
|
|
258
|
+
count: number;
|
|
259
|
+
}
|
|
260
|
+
interface NamePickerProps {
|
|
261
|
+
/** Name to count, or the same as a list. */
|
|
262
|
+
items: Record<string, number> | readonly NameItem[];
|
|
263
|
+
label?: string;
|
|
264
|
+
/** A search box above the list. */
|
|
265
|
+
searchable?: boolean;
|
|
266
|
+
/** A bar behind each name, as long as its share of the largest count. */
|
|
267
|
+
bars?: boolean;
|
|
268
|
+
/** The count itself, beside each name. */
|
|
269
|
+
counts?: boolean;
|
|
270
|
+
/** The rail that drags a cut through the list, taking the top names. */
|
|
271
|
+
cutoff?: boolean;
|
|
272
|
+
sort?: "count" | "name";
|
|
273
|
+
/** Colour scope, so a name keeps the colour the viewers give it. */
|
|
274
|
+
scope?: string;
|
|
275
|
+
loading?: boolean;
|
|
276
|
+
emptyText?: string;
|
|
277
|
+
disabled?: boolean;
|
|
278
|
+
autoFocus?: boolean;
|
|
279
|
+
}
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/components/pickers/ActivityPicker.d.ts
|
|
282
|
+
type ActivityPickerProps = OcelSource & Omit<NamePickerProps, "items" | "scope" | "loading">;
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/components/pickers/EventAttributePicker.d.ts
|
|
285
|
+
type EventAttributePickerProps = OcelSource & Omit<NamePickerProps, "items" | "scope" | "loading"> & {
|
|
286
|
+
/** Offer only what this activity's events carry. Without it, every
|
|
287
|
+
* attribute any event in the log carries. */
|
|
288
|
+
activity?: string;
|
|
289
|
+
};
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/components/pickers/IdPicker.d.ts
|
|
292
|
+
interface IdPickerProps {
|
|
293
|
+
/** The ids to offer. Usually a page of them, from a search. */
|
|
294
|
+
ids: readonly string[];
|
|
295
|
+
label?: string;
|
|
114
296
|
placeholder?: string;
|
|
115
|
-
|
|
297
|
+
/** What the reader has typed, when the caller searches for them. */
|
|
298
|
+
search?: string;
|
|
299
|
+
onSearch?: (search: string) => void;
|
|
300
|
+
loading?: boolean;
|
|
301
|
+
emptyText?: string;
|
|
116
302
|
disabled?: boolean;
|
|
117
|
-
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Picking ids by typing.
|
|
306
|
+
*
|
|
307
|
+
* Presentational: a log holds far more events and objects than a list can
|
|
308
|
+
* show, so the caller decides which ids a search turns up.
|
|
309
|
+
*/
|
|
310
|
+
export declare const IdPicker: ({ ids, label, placeholder, search, onSearch, loading, emptyText, disabled, ...selection }: IdPickerProps & Selection) => import("react").JSX.Element;
|
|
311
|
+
//#endregion
|
|
312
|
+
//#region src/components/pickers/EventPicker.d.ts
|
|
313
|
+
type EventPickerProps = OcelSource & Omit<IdPickerProps, "ids" | "search" | "onSearch" | "loading"> & {
|
|
314
|
+
/** How many ids a search turns up. */
|
|
315
|
+
limit?: number;
|
|
316
|
+
};
|
|
317
|
+
/** Events of the log, found by typing part of an id. */
|
|
318
|
+
export declare const EventPicker: ({ ocelId, ocelVersion, limit, ...picker }: EventPickerProps & Selection) => import("react").JSX.Element;
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/components/pickers/ObjectAttributePicker.d.ts
|
|
321
|
+
type ObjectAttributePickerProps = OcelSource & Omit<NamePickerProps, "items" | "scope" | "loading"> & {
|
|
322
|
+
/** Offer only what objects of this type carry. Without it, every
|
|
323
|
+
* attribute any object in the log carries. */
|
|
324
|
+
objectType?: string;
|
|
118
325
|
};
|
|
119
|
-
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/components/pickers/ObjectPicker.d.ts
|
|
328
|
+
type ObjectPickerProps = OcelSource & Omit<IdPickerProps, "ids" | "search" | "onSearch" | "loading"> & {
|
|
329
|
+
/** How many ids a search turns up. */
|
|
330
|
+
limit?: number;
|
|
331
|
+
};
|
|
332
|
+
/** Objects of the log, found by typing part of an id. */
|
|
333
|
+
export declare const ObjectPicker: ({ ocelId, ocelVersion, limit, ...picker }: ObjectPickerProps & Selection) => import("react").JSX.Element;
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region src/components/pickers/ObjectTypePicker.d.ts
|
|
336
|
+
type ObjectTypePickerProps = OcelSource & Omit<NamePickerProps, "items" | "scope" | "loading">;
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region src/components/pickers/index.d.ts
|
|
339
|
+
export declare const NamePicker: import("react").ComponentType<NamePickerProps & Selection>;
|
|
340
|
+
export declare const ActivityPicker: import("react").ComponentType<OcelSource & Omit<NamePickerProps, "loading" | "items" | "scope"> & Selection>;
|
|
341
|
+
export declare const ObjectTypePicker: import("react").ComponentType<OcelSource & Omit<NamePickerProps, "loading" | "items" | "scope"> & Selection>;
|
|
342
|
+
export declare const EventAttributePicker: import("react").ComponentType<OcelSource & Omit<NamePickerProps, "loading" | "items" | "scope"> & {
|
|
343
|
+
activity?: string;
|
|
344
|
+
} & Selection>;
|
|
345
|
+
export declare const ObjectAttributePicker: import("react").ComponentType<OcelSource & Omit<NamePickerProps, "loading" | "items" | "scope"> & {
|
|
346
|
+
objectType?: string;
|
|
347
|
+
} & Selection>;
|
|
120
348
|
//#endregion
|
|
121
349
|
//#region src/components/RelationTable.d.ts
|
|
122
350
|
type RelationType = "o2o" | "e2o";
|
|
@@ -135,52 +363,263 @@ declare const RelationTable: React.FC<{
|
|
|
135
363
|
source: string;
|
|
136
364
|
target: string;
|
|
137
365
|
}[];
|
|
366
|
+
height?: string | number;
|
|
367
|
+
className?: string;
|
|
368
|
+
style?: React.CSSProperties;
|
|
138
369
|
}>;
|
|
139
370
|
//#endregion
|
|
140
371
|
//#region src/components/UploadModal/UploadModal.d.ts
|
|
141
|
-
declare const UploadModal: React.FC<{
|
|
372
|
+
export declare const UploadModal: React.FC<{
|
|
142
373
|
visible: boolean;
|
|
143
374
|
onClose: () => void;
|
|
144
375
|
}>;
|
|
145
376
|
//#endregion
|
|
146
377
|
//#region src/components/UploadSection/UploadSection.d.ts
|
|
147
|
-
declare const UploadSection: React.FC<{
|
|
378
|
+
export declare const UploadSection: React.FC<{
|
|
148
379
|
onSuccess?: () => void;
|
|
149
380
|
}>;
|
|
150
381
|
//#endregion
|
|
151
382
|
//#region src/hooks/useCurrentOCEL.d.ts
|
|
152
|
-
declare const useCurrentOcel: () => {
|
|
383
|
+
export declare const useCurrentOcel: () => {
|
|
153
384
|
id: string | null;
|
|
154
385
|
setCurrentOcel: (id: string) => void;
|
|
155
386
|
};
|
|
156
387
|
//#endregion
|
|
157
388
|
//#region src/hooks/useDownload.d.ts
|
|
158
|
-
declare const useDownloadFile: () => (path: string) => Promise<void>;
|
|
159
|
-
declare const useDownloadOCEL: () => {
|
|
389
|
+
export declare const useDownloadFile: () => (path: string) => Promise<void>;
|
|
390
|
+
export declare const useDownloadOCEL: () => {
|
|
160
391
|
download: (ocelId: string, params?: import("@ocelescope/api-base").DownloadOCELParams | undefined) => void;
|
|
161
392
|
};
|
|
162
|
-
declare const useDownloadFlatOCEL: () => {
|
|
393
|
+
export declare const useDownloadFlatOCEL: () => {
|
|
163
394
|
download: (ocelId: string | null, params?: import("@ocelescope/api-base").DownloadFlatLogParams | undefined) => void;
|
|
164
395
|
};
|
|
165
|
-
declare const useDownloadVariantFlatLog: () => {
|
|
396
|
+
export declare const useDownloadVariantFlatLog: () => {
|
|
166
397
|
download: (ocelId: string | null, params?: import("@ocelescope/api-base").DownloadVariantFlatLogParams | undefined) => void;
|
|
167
398
|
};
|
|
168
|
-
declare const useDownloadResource: () => {
|
|
399
|
+
export declare const useDownloadResource: () => {
|
|
169
400
|
download: (resourceId: string) => void;
|
|
170
401
|
};
|
|
171
|
-
declare const useDownloadResourceAsPnml: () => {
|
|
402
|
+
export declare const useDownloadResourceAsPnml: () => {
|
|
172
403
|
download: (resourceId: string) => void;
|
|
173
404
|
};
|
|
174
405
|
//#endregion
|
|
175
406
|
//#region src/hooks/useInvalidate.d.ts
|
|
176
407
|
type InvalidationRouteName = "ocels" | "resources" | "tasks" | "plugins" | "discoveryMethods";
|
|
177
|
-
declare const useInvalidate: () => (routeNames: InvalidationRouteName[]) => Promise<void>;
|
|
408
|
+
export declare const useInvalidate: () => (routeNames: InvalidationRouteName[]) => Promise<void>;
|
|
409
|
+
//#endregion
|
|
410
|
+
//#region src/hooks/useOcelQuery.d.ts
|
|
411
|
+
interface OcelQueryOptions {
|
|
412
|
+
/** DuckDB SQL over the OCEL's stored tables: `events`, `objects`, `e2o`,
|
|
413
|
+
* `o2o`, `object_changes`. One `SELECT`; the backend refuses anything else. */
|
|
414
|
+
sql: string;
|
|
415
|
+
/** Values bound to the query's `?` placeholders. Bind them here rather than
|
|
416
|
+
* building the SQL by hand. */
|
|
417
|
+
parameters?: unknown[];
|
|
418
|
+
/** Defaults to the filtered log, which is what the rest of the app shows. */
|
|
419
|
+
ocelVersion?: "filtered" | "original";
|
|
420
|
+
/** Hold the query back, e.g. until the user has picked an activity. */
|
|
421
|
+
enabled?: boolean;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Run SQL against the current OCEL.
|
|
425
|
+
*
|
|
426
|
+
* `OcelChart` draws with this; use it directly when a module wants the rows
|
|
427
|
+
* themselves - a list of activities to choose from, a count to show in a
|
|
428
|
+
* heading.
|
|
429
|
+
*/
|
|
430
|
+
export declare const useOcelQuery: ({ sql, parameters, ocelVersion, enabled }: OcelQueryOptions) => {
|
|
431
|
+
ocelId: string | null;
|
|
432
|
+
error: unknown;
|
|
433
|
+
data: import("@ocelescope/api-base").SqlQueryResult;
|
|
434
|
+
isError: true;
|
|
435
|
+
isPending: false;
|
|
436
|
+
isLoading: false;
|
|
437
|
+
isLoadingError: false;
|
|
438
|
+
isRefetchError: true;
|
|
439
|
+
isSuccess: false;
|
|
440
|
+
isPlaceholderData: false;
|
|
441
|
+
status: "error";
|
|
442
|
+
dataUpdatedAt: number;
|
|
443
|
+
errorUpdatedAt: number;
|
|
444
|
+
failureCount: number;
|
|
445
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
446
|
+
errorUpdateCount: number;
|
|
447
|
+
isFetched: boolean;
|
|
448
|
+
isFetchedAfterMount: boolean;
|
|
449
|
+
isFetching: boolean;
|
|
450
|
+
isInitialLoading: boolean;
|
|
451
|
+
isPaused: boolean;
|
|
452
|
+
isRefetching: boolean;
|
|
453
|
+
isStale: boolean;
|
|
454
|
+
isEnabled: boolean;
|
|
455
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
456
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
457
|
+
queryKey: readonly unknown[] & {
|
|
458
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
459
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
460
|
+
};
|
|
461
|
+
} | {
|
|
462
|
+
ocelId: string | null;
|
|
463
|
+
error: unknown;
|
|
464
|
+
data: import("@ocelescope/api-base").SqlQueryResult;
|
|
465
|
+
isError: false;
|
|
466
|
+
isPending: false;
|
|
467
|
+
isLoading: false;
|
|
468
|
+
isLoadingError: false;
|
|
469
|
+
isRefetchError: false;
|
|
470
|
+
isSuccess: true;
|
|
471
|
+
isPlaceholderData: false;
|
|
472
|
+
status: "success";
|
|
473
|
+
dataUpdatedAt: number;
|
|
474
|
+
errorUpdatedAt: number;
|
|
475
|
+
failureCount: number;
|
|
476
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
477
|
+
errorUpdateCount: number;
|
|
478
|
+
isFetched: boolean;
|
|
479
|
+
isFetchedAfterMount: boolean;
|
|
480
|
+
isFetching: boolean;
|
|
481
|
+
isInitialLoading: boolean;
|
|
482
|
+
isPaused: boolean;
|
|
483
|
+
isRefetching: boolean;
|
|
484
|
+
isStale: boolean;
|
|
485
|
+
isEnabled: boolean;
|
|
486
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
487
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
488
|
+
queryKey: readonly unknown[] & {
|
|
489
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
490
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
491
|
+
};
|
|
492
|
+
} | {
|
|
493
|
+
ocelId: string | null;
|
|
494
|
+
error: unknown;
|
|
495
|
+
data: undefined;
|
|
496
|
+
isError: true;
|
|
497
|
+
isPending: false;
|
|
498
|
+
isLoading: false;
|
|
499
|
+
isLoadingError: true;
|
|
500
|
+
isRefetchError: false;
|
|
501
|
+
isSuccess: false;
|
|
502
|
+
isPlaceholderData: false;
|
|
503
|
+
status: "error";
|
|
504
|
+
dataUpdatedAt: number;
|
|
505
|
+
errorUpdatedAt: number;
|
|
506
|
+
failureCount: number;
|
|
507
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
508
|
+
errorUpdateCount: number;
|
|
509
|
+
isFetched: boolean;
|
|
510
|
+
isFetchedAfterMount: boolean;
|
|
511
|
+
isFetching: boolean;
|
|
512
|
+
isInitialLoading: boolean;
|
|
513
|
+
isPaused: boolean;
|
|
514
|
+
isRefetching: boolean;
|
|
515
|
+
isStale: boolean;
|
|
516
|
+
isEnabled: boolean;
|
|
517
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
518
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
519
|
+
queryKey: readonly unknown[] & {
|
|
520
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
521
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
522
|
+
};
|
|
523
|
+
} | {
|
|
524
|
+
ocelId: string | null;
|
|
525
|
+
error: unknown;
|
|
526
|
+
data: undefined;
|
|
527
|
+
isError: false;
|
|
528
|
+
isPending: true;
|
|
529
|
+
isLoading: true;
|
|
530
|
+
isLoadingError: false;
|
|
531
|
+
isRefetchError: false;
|
|
532
|
+
isSuccess: false;
|
|
533
|
+
isPlaceholderData: false;
|
|
534
|
+
status: "pending";
|
|
535
|
+
dataUpdatedAt: number;
|
|
536
|
+
errorUpdatedAt: number;
|
|
537
|
+
failureCount: number;
|
|
538
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
539
|
+
errorUpdateCount: number;
|
|
540
|
+
isFetched: boolean;
|
|
541
|
+
isFetchedAfterMount: boolean;
|
|
542
|
+
isFetching: boolean;
|
|
543
|
+
isInitialLoading: boolean;
|
|
544
|
+
isPaused: boolean;
|
|
545
|
+
isRefetching: boolean;
|
|
546
|
+
isStale: boolean;
|
|
547
|
+
isEnabled: boolean;
|
|
548
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
549
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
550
|
+
queryKey: readonly unknown[] & {
|
|
551
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
552
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
553
|
+
};
|
|
554
|
+
} | {
|
|
555
|
+
ocelId: string | null;
|
|
556
|
+
error: unknown;
|
|
557
|
+
data: undefined;
|
|
558
|
+
isError: false;
|
|
559
|
+
isPending: true;
|
|
560
|
+
isLoadingError: false;
|
|
561
|
+
isRefetchError: false;
|
|
562
|
+
isSuccess: false;
|
|
563
|
+
isPlaceholderData: false;
|
|
564
|
+
status: "pending";
|
|
565
|
+
dataUpdatedAt: number;
|
|
566
|
+
errorUpdatedAt: number;
|
|
567
|
+
failureCount: number;
|
|
568
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
569
|
+
errorUpdateCount: number;
|
|
570
|
+
isFetched: boolean;
|
|
571
|
+
isFetchedAfterMount: boolean;
|
|
572
|
+
isFetching: boolean;
|
|
573
|
+
isLoading: boolean;
|
|
574
|
+
isInitialLoading: boolean;
|
|
575
|
+
isPaused: boolean;
|
|
576
|
+
isRefetching: boolean;
|
|
577
|
+
isStale: boolean;
|
|
578
|
+
isEnabled: boolean;
|
|
579
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
580
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
581
|
+
queryKey: readonly unknown[] & {
|
|
582
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
583
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
ocelId: string | null;
|
|
587
|
+
error: unknown;
|
|
588
|
+
data: import("@ocelescope/api-base").SqlQueryResult;
|
|
589
|
+
isError: false;
|
|
590
|
+
isPending: false;
|
|
591
|
+
isLoading: false;
|
|
592
|
+
isLoadingError: false;
|
|
593
|
+
isRefetchError: false;
|
|
594
|
+
isSuccess: true;
|
|
595
|
+
isPlaceholderData: true;
|
|
596
|
+
status: "success";
|
|
597
|
+
dataUpdatedAt: number;
|
|
598
|
+
errorUpdatedAt: number;
|
|
599
|
+
failureCount: number;
|
|
600
|
+
failureReason: import("@ocelescope/api-base").HTTPValidationError$1 | null;
|
|
601
|
+
errorUpdateCount: number;
|
|
602
|
+
isFetched: boolean;
|
|
603
|
+
isFetchedAfterMount: boolean;
|
|
604
|
+
isFetching: boolean;
|
|
605
|
+
isInitialLoading: boolean;
|
|
606
|
+
isPaused: boolean;
|
|
607
|
+
isRefetching: boolean;
|
|
608
|
+
isStale: boolean;
|
|
609
|
+
isEnabled: boolean;
|
|
610
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@ocelescope/api-base").SqlQueryResult, import("@ocelescope/api-base").HTTPValidationError$1>>;
|
|
611
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
612
|
+
queryKey: readonly unknown[] & {
|
|
613
|
+
[dataTagSymbol]: import("@ocelescope/api-base").SqlQueryResult;
|
|
614
|
+
[dataTagErrorSymbol]: import("@ocelescope/api-base").HTTPValidationError$1;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
178
617
|
//#endregion
|
|
179
618
|
//#region src/lib/attributes.d.ts
|
|
180
|
-
declare const formatAttributeValue: (type: ValueType, value: string | number) => string | number;
|
|
619
|
+
export declare const formatAttributeValue: (type: ValueType, value: string | number) => string | number;
|
|
181
620
|
//#endregion
|
|
182
621
|
//#region src/lib/env.d.ts
|
|
183
|
-
declare const env: {
|
|
622
|
+
export declare const env: {
|
|
184
623
|
appVersion: string;
|
|
185
624
|
projectPage: string;
|
|
186
625
|
docsUrl: string;
|
|
@@ -195,7 +634,7 @@ declare const env: {
|
|
|
195
634
|
};
|
|
196
635
|
//#endregion
|
|
197
636
|
//#region src/lib/getModuleRoute.d.ts
|
|
198
|
-
declare const getModuleRoute: ({ moduleName, routeName, query }: {
|
|
637
|
+
export declare const getModuleRoute: ({ moduleName, routeName, query }: {
|
|
199
638
|
moduleName: string;
|
|
200
639
|
routeName?: string;
|
|
201
640
|
query?: Record<string, string>;
|
|
@@ -206,4 +645,4 @@ declare const getModuleRoute: ({ moduleName, routeName, query }: {
|
|
|
206
645
|
pathname: string;
|
|
207
646
|
};
|
|
208
647
|
//#endregion
|
|
209
|
-
export {
|
|
648
|
+
export { type ActivityPickerProps, type AreaChartProps, AttributesTable, type BarChartProps, type CartesianChartProps, type ChartOptions, type ChartProps, type ChartType, type EventAttributePickerProps, type EventPickerProps, type IdPickerProps, type LineChartProps, type MultiPicker, type NameItem, type NamePickerProps, type ObjectAttributePickerProps, type ObjectPickerProps, type ObjectTypePickerProps, type OcelChartProps, type OcelQueryOptions, type OcelSource, type PieChartProps, RelationTable, type Row, type ScatterChartProps, type Selection, type Series, type SinglePicker, type SqlChartProps, type SunburstChartProps };
|