@ocelescope/log-overview 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/dist/index.js +14 -10
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AttributesTable, BarList, defineModule, defineModuleRoute, useCurrentOcel } from "@ocelescope/core";
|
|
2
2
|
import { BinocularsIcon } from "lucide-react";
|
|
3
|
-
import {
|
|
3
|
+
import { Container, Grid, LoadingOverlay, Stack, Table, Tabs, Text, Title } from "@mantine/core";
|
|
4
4
|
import { useEventCounts, useGetOcel, useObjectCounts, useQuantityInfo, useTimeInfo } from "@ocelescope/api-base";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { useMemo } from "react";
|
|
@@ -44,7 +44,6 @@ const OCELInfo = ({ ocelId }) => {
|
|
|
44
44
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [/* @__PURE__ */ jsx(Table.Th, { children: "Events:" }), /* @__PURE__ */ jsx(Table.Td, { children: `${totalEventCount.toLocaleString("en-US")} of ${Object.keys(eventCounts ?? {}).length} activities` })] }),
|
|
45
45
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [/* @__PURE__ */ jsx(Table.Th, { children: "Objects:" }), /* @__PURE__ */ jsx(Table.Td, { children: `${totalObjectCount.toLocaleString("en-US")} of ${Object.keys(objectCounts ?? {}).length} object types` })] }),
|
|
46
46
|
/* @__PURE__ */ jsxs(Table.Tr, { children: [/* @__PURE__ */ jsx(Table.Th, { children: "Timeframe:" }), /* @__PURE__ */ jsx(Table.Td, { children: `${formatTime(timeInfo?.start_time)} - ${formatTime(timeInfo?.end_time)}` })] }),
|
|
47
|
-
ocel.extensions.length > 0 && /* @__PURE__ */ jsxs(Table.Tr, { children: [/* @__PURE__ */ jsx(Table.Th, { children: "Extensions:" }), /* @__PURE__ */ jsx(Table.Td, { children: ocel.extensions.map(({ label }) => /* @__PURE__ */ jsx(Badge, { children: label })) })] }),
|
|
48
47
|
quantityInfo && quantityInfo.item_types.length > 0 && /* @__PURE__ */ jsxs(Table.Tr, { children: [/* @__PURE__ */ jsx(Table.Th, { children: "Quantities:" }), /* @__PURE__ */ jsx(Table.Td, { children: /* @__PURE__ */ jsxs(Stack, {
|
|
49
48
|
gap: 0,
|
|
50
49
|
children: [
|
|
@@ -58,11 +57,13 @@ const OCELInfo = ({ ocelId }) => {
|
|
|
58
57
|
};
|
|
59
58
|
//#endregion
|
|
60
59
|
//#region src/pages/logOverview.tsx
|
|
60
|
+
const TABLE_HEIGHT = 500;
|
|
61
61
|
const LogOverviewPage = () => {
|
|
62
62
|
const { id } = useCurrentOcel();
|
|
63
63
|
if (!id) return /* @__PURE__ */ jsx(LoadingOverlay, {});
|
|
64
64
|
return /* @__PURE__ */ jsx(Container, {
|
|
65
65
|
fluid: true,
|
|
66
|
+
p: "md",
|
|
66
67
|
children: /* @__PURE__ */ jsxs(Grid, { children: [
|
|
67
68
|
/* @__PURE__ */ jsx(Grid.Col, {
|
|
68
69
|
span: 12,
|
|
@@ -100,14 +101,16 @@ const LogOverviewPage = () => {
|
|
|
100
101
|
value: "events",
|
|
101
102
|
children: /* @__PURE__ */ jsx(AttributesTable, {
|
|
102
103
|
ocelId: id,
|
|
103
|
-
entityType: "events"
|
|
104
|
+
entityType: "events",
|
|
105
|
+
height: TABLE_HEIGHT
|
|
104
106
|
})
|
|
105
107
|
}),
|
|
106
108
|
/* @__PURE__ */ jsx(Tabs.Panel, {
|
|
107
109
|
value: "objects",
|
|
108
110
|
children: /* @__PURE__ */ jsx(AttributesTable, {
|
|
109
111
|
ocelId: id,
|
|
110
|
-
entityType: "objects"
|
|
112
|
+
entityType: "objects",
|
|
113
|
+
height: TABLE_HEIGHT
|
|
111
114
|
})
|
|
112
115
|
})
|
|
113
116
|
]
|
|
@@ -137,6 +140,12 @@ const LogOverviewPage = () => {
|
|
|
137
140
|
] })
|
|
138
141
|
}, id);
|
|
139
142
|
};
|
|
143
|
+
var logOverview_default = defineModuleRoute({
|
|
144
|
+
component: LogOverviewPage,
|
|
145
|
+
label: "Log Overview",
|
|
146
|
+
name: "logOverview",
|
|
147
|
+
requiresOcel: true
|
|
148
|
+
});
|
|
140
149
|
//#endregion
|
|
141
150
|
//#region src/index.ts
|
|
142
151
|
var src_default = defineModule({
|
|
@@ -144,12 +153,7 @@ var src_default = defineModule({
|
|
|
144
153
|
description: "A tool for inspecting OCELs",
|
|
145
154
|
label: "Log Overview",
|
|
146
155
|
authors: [{ name: "Öztürk, Görkem-Emre" }],
|
|
147
|
-
routes: [
|
|
148
|
-
component: LogOverviewPage,
|
|
149
|
-
label: "Log Overview",
|
|
150
|
-
name: "logOverview",
|
|
151
|
-
requiresOcel: true
|
|
152
|
-
})],
|
|
156
|
+
routes: [logOverview_default],
|
|
153
157
|
icon: BinocularsIcon
|
|
154
158
|
});
|
|
155
159
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocelescope/log-overview",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"description": "A tool for inspecting OCELs",
|
|
6
6
|
"author": "Görkem-Emre Öztürk <goerkem.oeztuerk@rwth-aachen.de>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@mantine/core": "^9.
|
|
30
|
+
"@mantine/core": "^9.5.1",
|
|
31
31
|
"@marko19907/string-to-color": "*",
|
|
32
|
+
"@ocelescope/api-base": "^0.8.0",
|
|
33
|
+
"@ocelescope/core": "^0.8.0",
|
|
34
|
+
"@ocelescope/resources": "^0.8.0",
|
|
32
35
|
"@tanstack/react-query": "^5.90.21",
|
|
33
|
-
"dayjs": "^1.11.
|
|
36
|
+
"dayjs": "^1.11.23",
|
|
34
37
|
"lucide-react": "^1.0.0",
|
|
35
38
|
"mantine-datatable": "^9.4.0",
|
|
36
|
-
"react": "^19.
|
|
37
|
-
"react-dom": "^19.
|
|
38
|
-
"@ocelescope/api-base": "^0.6.0",
|
|
39
|
-
"@ocelescope/core": "^0.6.0",
|
|
40
|
-
"@ocelescope/resources": "^0.6.0"
|
|
39
|
+
"react": "^19.3.0",
|
|
40
|
+
"react-dom": "^19.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@tsdown/css": "^0.
|
|
44
|
-
"@types/node": "^26.
|
|
45
|
-
"@types/react": "^19.
|
|
46
|
-
"@types/react-dom": "^19.
|
|
47
|
-
"tsdown": "^0.
|
|
48
|
-
"typescript": "^
|
|
43
|
+
"@tsdown/css": "^0.23.0",
|
|
44
|
+
"@types/node": "^26.6.1",
|
|
45
|
+
"@types/react": "^19.3.0",
|
|
46
|
+
"@types/react-dom": "^19.3.0",
|
|
47
|
+
"tsdown": "^0.23.0",
|
|
48
|
+
"typescript": "^6.0.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsdown",
|