@hybridcore/ui 1.5.78 → 1.5.80
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/components/charts/candlestick/index.js +30 -613
- package/dist/components/charts/candlestick/logic.js +642 -0
- package/dist/components/charts/candlestick/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/index.js +31 -813
- package/dist/components/charts/highlighting-line-data/logic.js +836 -0
- package/dist/components/charts/highlighting-line-data/styled.js +12 -0
- package/dist/components/metric-card/index.js +56 -170
- package/dist/components/metric-card/logic.js +46 -0
- package/dist/components/metric-card/styled.js +136 -0
- package/dist/components/paginated-list/index.js +68 -95
- package/dist/components/paginated-list/logic.js +45 -0
- package/dist/components/paginated-list/styled.js +49 -0
- package/dist/components/profile-card/index.js +80 -0
- package/dist/components/profile-card/logic.js +33 -0
- package/dist/components/profile-card/styled.js +43 -0
- package/dist/main.d.ts +165 -33
- package/package.json +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { styled as t, Card as e, CardHeader as a, CardContent as n, List as o } from "@mui/material";
|
|
2
|
+
const s = t(e, {
|
|
3
|
+
name: "MuiPaginatedList",
|
|
4
|
+
slot: "Root"
|
|
5
|
+
})(() => ({
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
height: "100%"
|
|
9
|
+
})), r = t(a, {
|
|
10
|
+
name: "MuiPaginatedList",
|
|
11
|
+
slot: "Header"
|
|
12
|
+
})(({ theme: i }) => ({
|
|
13
|
+
padding: i.spacing(3),
|
|
14
|
+
paddingBottom: 0,
|
|
15
|
+
"& .MuiCardHeader-title": {
|
|
16
|
+
fontSize: "1rem",
|
|
17
|
+
fontWeight: 500
|
|
18
|
+
},
|
|
19
|
+
"& .MuiCardHeader-subheader": {
|
|
20
|
+
fontSize: ".875rem"
|
|
21
|
+
}
|
|
22
|
+
})), l = t(n, {
|
|
23
|
+
name: "MuiPaginatedList",
|
|
24
|
+
slot: "Content"
|
|
25
|
+
})(() => ({
|
|
26
|
+
padding: "0px !important",
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
flex: 1,
|
|
30
|
+
overflow: "hidden"
|
|
31
|
+
})), g = t(o, {
|
|
32
|
+
name: "MuiPaginatedList",
|
|
33
|
+
slot: "List"
|
|
34
|
+
})(() => ({
|
|
35
|
+
flex: 1,
|
|
36
|
+
overflowY: "auto"
|
|
37
|
+
})), m = t("div", {
|
|
38
|
+
name: "MuiPaginatedList",
|
|
39
|
+
slot: "Pagination"
|
|
40
|
+
})(({ theme: i }) => ({
|
|
41
|
+
borderTop: `1px solid ${i.palette.divider}`
|
|
42
|
+
}));
|
|
43
|
+
export {
|
|
44
|
+
l as PaginatedListContent,
|
|
45
|
+
r as PaginatedListHeader,
|
|
46
|
+
g as PaginatedListList,
|
|
47
|
+
m as PaginatedListPagination,
|
|
48
|
+
s as PaginatedListRoot
|
|
49
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowRight as d } from "@mui/icons-material";
|
|
3
|
+
import { Box as l, Typography as n } from "@mui/material";
|
|
4
|
+
import p from "lodash";
|
|
5
|
+
import x from "react";
|
|
6
|
+
import b from "../instance-variable-list/variable.js";
|
|
7
|
+
import { useProfileCardLogic as u } from "./logic.js";
|
|
8
|
+
import { ProfileCardRoot as v, ProfileCardImage as P, ProfileCardHierarchy as C, ProfileCardVariables as I } from "./styled.js";
|
|
9
|
+
function A(s) {
|
|
10
|
+
const {
|
|
11
|
+
instance: r,
|
|
12
|
+
imageUrl: h,
|
|
13
|
+
templateHierarchy: m,
|
|
14
|
+
propertyNames: c,
|
|
15
|
+
ownerState: a,
|
|
16
|
+
sx: f,
|
|
17
|
+
templateIconUrl: g,
|
|
18
|
+
other: y
|
|
19
|
+
} = u(s);
|
|
20
|
+
return console.log(c, 26), /* @__PURE__ */ i(v, { ownerState: a, sx: f, ...y, children: [
|
|
21
|
+
/* @__PURE__ */ e(l, { mb: 2, children: /* @__PURE__ */ e(
|
|
22
|
+
P,
|
|
23
|
+
{
|
|
24
|
+
src: h || "https://picsum.photos/600/400",
|
|
25
|
+
alt: "Profile",
|
|
26
|
+
ownerState: a
|
|
27
|
+
}
|
|
28
|
+
) }),
|
|
29
|
+
/* @__PURE__ */ i(l, { display: "flex", alignItems: "center", mb: 1, children: [
|
|
30
|
+
/* @__PURE__ */ e("img", { src: g, alt: "Template Icon" }),
|
|
31
|
+
/* @__PURE__ */ e(n, { variant: "h5", component: "h2", gutterBottom: !0, children: r.title })
|
|
32
|
+
] }),
|
|
33
|
+
r.description && /* @__PURE__ */ e(n, { variant: "body1", paragraph: !0, children: r.description }),
|
|
34
|
+
/* @__PURE__ */ i(C, { ownerState: a, children: [
|
|
35
|
+
m.map((t, o) => /* @__PURE__ */ i(l, { display: "inline", alignItems: "center", children: [
|
|
36
|
+
o > 0 && /* @__PURE__ */ e(
|
|
37
|
+
d,
|
|
38
|
+
{
|
|
39
|
+
sx: { height: 20, verticalAlign: "middle" },
|
|
40
|
+
color: "disabled"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e(n, { variant: "caption", color: "text.secondary", children: t.name })
|
|
44
|
+
] }, t.id || o)),
|
|
45
|
+
/* @__PURE__ */ i(l, { display: "inline", alignItems: "center", children: [
|
|
46
|
+
m.length > 0 && /* @__PURE__ */ e(
|
|
47
|
+
d,
|
|
48
|
+
{
|
|
49
|
+
sx: { height: 20, verticalAlign: "middle" },
|
|
50
|
+
color: "disabled"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ e(
|
|
54
|
+
n,
|
|
55
|
+
{
|
|
56
|
+
variant: "caption",
|
|
57
|
+
color: "text.secondary",
|
|
58
|
+
fontWeight: "bold",
|
|
59
|
+
children: r.template.name
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] })
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ e(I, { ownerState: a, children: p.keys(r.variables).map((t, o) => /* @__PURE__ */ e(
|
|
65
|
+
b,
|
|
66
|
+
{
|
|
67
|
+
type: t,
|
|
68
|
+
data: p.get(r.variables, t),
|
|
69
|
+
hashPrefix: `${r.template.type}-${r.template.templateKey}-`,
|
|
70
|
+
properties: c
|
|
71
|
+
},
|
|
72
|
+
o
|
|
73
|
+
)) })
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
const V = x.memo(A);
|
|
77
|
+
export {
|
|
78
|
+
A as ProfileCard,
|
|
79
|
+
V as default
|
|
80
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useThemeProps as g } from "@mui/material";
|
|
2
|
+
import { useMemo as n } from "react";
|
|
3
|
+
import { getTemplateHierarchy as M } from "../../utils/ontology.js";
|
|
4
|
+
const $ = (c) => {
|
|
5
|
+
const a = g({ props: c, name: "MuiProfileCard" }), { instance: t, templates: e, sx: m, ...i } = a, l = t.profileImageUrl, o = e.get(t.template.id), f = o == null ? void 0 : o.icon, h = n(() => {
|
|
6
|
+
const r = e.get(t.template.id);
|
|
7
|
+
return r ? M(e, r) : [];
|
|
8
|
+
}, [e, t.template.id]), u = n(() => {
|
|
9
|
+
const r = /* @__PURE__ */ new Map();
|
|
10
|
+
return e && e.forEach((s) => {
|
|
11
|
+
s.properties.forEach((p) => {
|
|
12
|
+
const d = `${s.type}-${s.templateKey}-${p.propertyId}`;
|
|
13
|
+
r.set(d, p.name);
|
|
14
|
+
});
|
|
15
|
+
}), r;
|
|
16
|
+
}, [e]), y = {
|
|
17
|
+
...a
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
instance: t,
|
|
21
|
+
templates: e,
|
|
22
|
+
imageUrl: l,
|
|
23
|
+
templateHierarchy: h,
|
|
24
|
+
propertyNames: u,
|
|
25
|
+
ownerState: y,
|
|
26
|
+
sx: m,
|
|
27
|
+
templateIconUrl: f,
|
|
28
|
+
other: i
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
$ as useProfileCardLogic
|
|
33
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { styled as e, Container as i, Box as a } from "@mui/material";
|
|
2
|
+
const d = e(i, {
|
|
3
|
+
name: "MuiProfileCard",
|
|
4
|
+
slot: "Root",
|
|
5
|
+
overridesResolver: (r, o) => o.root
|
|
6
|
+
})(({ theme: r }) => ({
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
padding: r.spacing(3),
|
|
11
|
+
borderRadius: r.shape.borderRadius * 2,
|
|
12
|
+
boxShadow: r.shadows[1],
|
|
13
|
+
backgroundColor: r.palette.background.paper
|
|
14
|
+
})), l = e("img", {
|
|
15
|
+
name: "MuiProfileCard",
|
|
16
|
+
slot: "Image",
|
|
17
|
+
overridesResolver: (r, o) => o.image
|
|
18
|
+
})(({ theme: r }) => ({
|
|
19
|
+
maxWidth: 200,
|
|
20
|
+
borderRadius: "100%",
|
|
21
|
+
height: 200,
|
|
22
|
+
marginBottom: r.spacing(2)
|
|
23
|
+
})), t = e(a, {
|
|
24
|
+
name: "MuiProfileCard",
|
|
25
|
+
slot: "Hierarchy",
|
|
26
|
+
overridesResolver: (r, o) => o.hierarchy
|
|
27
|
+
})(({ theme: r }) => ({
|
|
28
|
+
marginLeft: 0,
|
|
29
|
+
marginBottom: r.spacing(2),
|
|
30
|
+
textAlign: "left"
|
|
31
|
+
})), n = e(a, {
|
|
32
|
+
name: "MuiProfileCard",
|
|
33
|
+
slot: "Variables",
|
|
34
|
+
overridesResolver: (r, o) => o.variables
|
|
35
|
+
})(({ theme: r }) => ({
|
|
36
|
+
paddingTop: r.spacing(2)
|
|
37
|
+
}));
|
|
38
|
+
export {
|
|
39
|
+
t as ProfileCardHierarchy,
|
|
40
|
+
l as ProfileCardImage,
|
|
41
|
+
d as ProfileCardRoot,
|
|
42
|
+
n as ProfileCardVariables
|
|
43
|
+
};
|
package/dist/main.d.ts
CHANGED
|
@@ -21,13 +21,14 @@ import { IconButtonProps } from '@mui/material/IconButton';
|
|
|
21
21
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
22
22
|
import { LocalizationProvider } from '@mui/x-date-pickers';
|
|
23
23
|
import { Pixel } from 'ol/pixel';
|
|
24
|
+
import * as React_2 from 'react';
|
|
24
25
|
import { ReactNode } from 'react';
|
|
25
26
|
import { Size } from 'ol/size';
|
|
26
27
|
import { SxProps } from '@mui/material';
|
|
27
28
|
import { SxProps as SxProps_2 } from '@mui/material/styles';
|
|
28
29
|
import { TabsProps as TabsProps_2 } from '@mui/material';
|
|
29
|
-
import { Theme } from '@mui/material
|
|
30
|
-
import { Theme as Theme_2 } from '@mui/material';
|
|
30
|
+
import { Theme } from '@mui/material';
|
|
31
|
+
import { Theme as Theme_2 } from '@mui/material/styles';
|
|
31
32
|
import { ThemeOptions } from '@mui/material';
|
|
32
33
|
import { ThemeProvider } from '@mui/material';
|
|
33
34
|
import { View } from 'ol';
|
|
@@ -64,10 +65,10 @@ declare interface ButtonType {
|
|
|
64
65
|
onClick?(event?: React.MouseEvent<HTMLElement>): void;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
export declare function CandlestickChart
|
|
68
|
+
export declare function CandlestickChart(inProps: CandlestickChartProps): JSX_2.Element;
|
|
68
69
|
|
|
69
|
-
export declare interface CandlestickChartProps
|
|
70
|
-
data:
|
|
70
|
+
export declare interface CandlestickChartProps {
|
|
71
|
+
data: CandlestickData[];
|
|
71
72
|
height?: string | number;
|
|
72
73
|
width?: string | number;
|
|
73
74
|
chartId?: string;
|
|
@@ -77,6 +78,7 @@ export declare interface CandlestickChartProps<T extends CandlestickData> {
|
|
|
77
78
|
loading?: boolean;
|
|
78
79
|
emptyMessage?: string;
|
|
79
80
|
seriesName?: string;
|
|
81
|
+
sx?: SxProps<Theme>;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
export declare interface CandlestickData {
|
|
@@ -170,15 +172,15 @@ declare interface ContainerProps {
|
|
|
170
172
|
/**
|
|
171
173
|
*
|
|
172
174
|
*/
|
|
173
|
-
sx?: SxProps_2<
|
|
175
|
+
sx?: SxProps_2<Theme_2>;
|
|
174
176
|
/**
|
|
175
177
|
*
|
|
176
178
|
*/
|
|
177
|
-
headerSx?: SxProps_2<
|
|
179
|
+
headerSx?: SxProps_2<Theme_2>;
|
|
178
180
|
/**
|
|
179
181
|
*
|
|
180
182
|
*/
|
|
181
|
-
contentSx?: SxProps_2<
|
|
183
|
+
contentSx?: SxProps_2<Theme_2>;
|
|
182
184
|
/**
|
|
183
185
|
*
|
|
184
186
|
*/
|
|
@@ -295,23 +297,24 @@ declare const hasDataAccess: (role: string, access: AccessType, permissions: AUT
|
|
|
295
297
|
|
|
296
298
|
declare const hasUIAccess: <T extends string>(feature: FeatureType | T, permissions?: AUTH.PermissionType) => boolean;
|
|
297
299
|
|
|
298
|
-
export declare function HighlightLineChart
|
|
300
|
+
export declare function HighlightLineChart(props: HighlightLineChartProps): JSX_2.Element;
|
|
299
301
|
|
|
300
|
-
export declare interface HighlightLineChartProps
|
|
301
|
-
seriesData: LineSeriesData
|
|
302
|
+
export declare interface HighlightLineChartProps {
|
|
303
|
+
seriesData: LineSeriesData[];
|
|
302
304
|
height?: string | number;
|
|
303
305
|
width?: string | number;
|
|
304
306
|
chartId?: string;
|
|
305
307
|
showLegend?: boolean;
|
|
306
308
|
loading?: boolean;
|
|
307
309
|
emptyMessage?: string;
|
|
310
|
+
sx?: SxProps<Theme>;
|
|
308
311
|
}
|
|
309
312
|
|
|
310
313
|
export declare const IconButton: default_2.FC<Props_6>;
|
|
311
314
|
|
|
312
315
|
declare function importKey(jwk: any): Promise<CryptoKey>;
|
|
313
316
|
|
|
314
|
-
export declare const InstanceForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends INSTANCE.CreateObjectDTO | INSTANCE.UpdateObjectDTO | INSTANCE.CreateEventDTO | INSTANCE.UpdateEventDTO | INSTANCE.CreateAgentDTO | INSTANCE.CreateFileDTO | INSTANCE.UpdateFileDTO>(props: InstanceFormProps<T, K> & default_2.RefAttributes<InstanceFormHandle>) => default_2.ReactNode | null;
|
|
317
|
+
export declare const InstanceForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File | ONTOLOGY.System, K extends INSTANCE.CreateObjectDTO | INSTANCE.UpdateObjectDTO | INSTANCE.CreateEventDTO | INSTANCE.UpdateEventDTO | INSTANCE.CreateAgentDTO | INSTANCE.CreateFileDTO | INSTANCE.UpdateFileDTO | INSTANCE.CreateSystemDTO | INSTANCE.UpdateSystemDTO>(props: InstanceFormProps<T, K> & default_2.RefAttributes<InstanceFormHandle>) => default_2.ReactNode | null;
|
|
315
318
|
|
|
316
319
|
export declare interface InstanceFormHandle {
|
|
317
320
|
/**
|
|
@@ -342,7 +345,12 @@ export declare interface InstanceFormHandle {
|
|
|
342
345
|
}
|
|
343
346
|
|
|
344
347
|
declare interface InstanceFormProps<
|
|
345
|
-
T extends
|
|
348
|
+
T extends
|
|
349
|
+
| ONTOLOGY.Object
|
|
350
|
+
| ONTOLOGY.Event
|
|
351
|
+
| ONTOLOGY.Agent
|
|
352
|
+
| ONTOLOGY.File
|
|
353
|
+
| ONTOLOGY.System,
|
|
346
354
|
K extends
|
|
347
355
|
| INSTANCE.CreateObjectDTO
|
|
348
356
|
| INSTANCE.UpdateObjectDTO
|
|
@@ -351,6 +359,8 @@ K extends
|
|
|
351
359
|
| INSTANCE.CreateAgentDTO
|
|
352
360
|
| INSTANCE.CreateFileDTO
|
|
353
361
|
| INSTANCE.UpdateFileDTO
|
|
362
|
+
| INSTANCE.CreateSystemDTO
|
|
363
|
+
| INSTANCE.UpdateSystemDTO
|
|
354
364
|
> {
|
|
355
365
|
/**
|
|
356
366
|
*
|
|
@@ -560,14 +570,14 @@ declare interface LinearIndicatorProps {
|
|
|
560
570
|
}
|
|
561
571
|
|
|
562
572
|
export declare interface LineDataPoint {
|
|
563
|
-
date: number
|
|
573
|
+
date: number; // timestamp
|
|
564
574
|
value: number;
|
|
565
575
|
}
|
|
566
576
|
|
|
567
|
-
export declare interface LineSeriesData
|
|
577
|
+
export declare interface LineSeriesData {
|
|
568
578
|
id: string; // unique seri ID'si
|
|
569
579
|
name: string;
|
|
570
|
-
data:
|
|
580
|
+
data: LineDataPoint[];
|
|
571
581
|
color?: string;
|
|
572
582
|
}
|
|
573
583
|
|
|
@@ -663,19 +673,25 @@ export declare namespace Map_2 {
|
|
|
663
673
|
}
|
|
664
674
|
}
|
|
665
675
|
|
|
666
|
-
export declare const MetricCard: (
|
|
676
|
+
export declare const MetricCard: (props: MetricCardProps & React_2.RefAttributes<HTMLDivElement>) => React_2.ReactNode | null;
|
|
667
677
|
|
|
668
678
|
export declare interface MetricCardProps {
|
|
669
|
-
label
|
|
670
|
-
value
|
|
679
|
+
label?: string;
|
|
680
|
+
value?: string | number;
|
|
671
681
|
change?: number;
|
|
672
682
|
changeType?: MetricChangeType;
|
|
673
683
|
trend?: MetricTrend;
|
|
674
684
|
icon?: React.ElementType;
|
|
675
|
-
iconPosition?:
|
|
685
|
+
iconPosition?:
|
|
686
|
+
| "left"
|
|
687
|
+
| "right"
|
|
688
|
+
| "top-left"
|
|
689
|
+
| "top-right"
|
|
690
|
+
| "bottom-left"
|
|
691
|
+
| "bottom-right";
|
|
676
692
|
description?: string;
|
|
677
693
|
variant?: MetricVariant;
|
|
678
|
-
sx?: SxProps<
|
|
694
|
+
sx?: SxProps<Theme>;
|
|
679
695
|
}
|
|
680
696
|
|
|
681
697
|
export declare type MetricChangeType = "percentage" | "absolute";
|
|
@@ -702,16 +718,23 @@ declare interface OptionsType {
|
|
|
702
718
|
|
|
703
719
|
declare type OrientationType_2 = "portrait" | "landscape";
|
|
704
720
|
|
|
705
|
-
export declare function PaginatedList(
|
|
721
|
+
export declare function PaginatedList(inProps: PaginatedListProps): JSX_2.Element;
|
|
722
|
+
|
|
723
|
+
declare interface PaginatedListItem {
|
|
724
|
+
id: number;
|
|
725
|
+
title: string;
|
|
726
|
+
description: string;
|
|
727
|
+
icon?: React.ReactNode;
|
|
728
|
+
}
|
|
706
729
|
|
|
707
730
|
export declare interface PaginatedListProps {
|
|
708
731
|
title?: string;
|
|
709
|
-
data:
|
|
732
|
+
data: PaginatedListItem[];
|
|
710
733
|
totalCount?: number;
|
|
711
734
|
payload?: Partial<FV.SearchDTO>;
|
|
712
735
|
onChange?: (params: Partial<FV.SearchDTO>) => void;
|
|
713
|
-
onItemClick?: (item:
|
|
714
|
-
sx?: SxProps<
|
|
736
|
+
onItemClick?: (item: PaginatedListItem) => void;
|
|
737
|
+
sx?: SxProps<Theme>;
|
|
715
738
|
}
|
|
716
739
|
|
|
717
740
|
export declare const PhoneInput: React.FC<Props_9>;
|
|
@@ -913,7 +936,7 @@ declare interface SearchInputProps {
|
|
|
913
936
|
variant?: "outlined" | "filled" | "standard";
|
|
914
937
|
size?: "small" | "medium";
|
|
915
938
|
iconSize?: "small" | "medium" | "large";
|
|
916
|
-
sx?: SxProps_2<
|
|
939
|
+
sx?: SxProps_2<Theme_2>;
|
|
917
940
|
onChange?(value: string): void;
|
|
918
941
|
onSubmit?(value: string | undefined): void;
|
|
919
942
|
}
|
|
@@ -1039,7 +1062,7 @@ declare interface TemplateFilterProps {
|
|
|
1039
1062
|
|
|
1040
1063
|
export declare const TemplateFilters: React.FC<TemplateFilterProps>;
|
|
1041
1064
|
|
|
1042
|
-
export declare const TemplateForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends ONTOLOGY.CreateObjectDTO | ONTOLOGY.CreateEventDTO | ONTOLOGY.CreateFileDTO | ONTOLOGY.CreateAgentDTO | ONTOLOGY.UpdateObjectDTO | ONTOLOGY.UpdateEventDTO | ONTOLOGY.UpdateFileDTO | ONTOLOGY.UpdateAgentDTO>(props: TemplateFormProps<T, K> & default_2.RefAttributes<TemplateFormHandle>) => default_2.ReactNode | null;
|
|
1065
|
+
export declare const TemplateForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File | ONTOLOGY.System, K extends ONTOLOGY.CreateObjectDTO | ONTOLOGY.CreateEventDTO | ONTOLOGY.CreateFileDTO | ONTOLOGY.CreateAgentDTO | ONTOLOGY.UpdateObjectDTO | ONTOLOGY.UpdateEventDTO | ONTOLOGY.UpdateFileDTO | ONTOLOGY.UpdateAgentDTO | ONTOLOGY.CreateSystemDTO | ONTOLOGY.UpdateSystemDTO>(props: TemplateFormProps<T, K> & default_2.RefAttributes<TemplateFormHandle>) => default_2.ReactNode | null;
|
|
1043
1066
|
|
|
1044
1067
|
export declare interface TemplateFormHandle {
|
|
1045
1068
|
getValues: (key?: string) => any;
|
|
@@ -1058,12 +1081,12 @@ K extends
|
|
|
1058
1081
|
| ONTOLOGY.CreateEventDTO
|
|
1059
1082
|
| ONTOLOGY.CreateFileDTO
|
|
1060
1083
|
| ONTOLOGY.CreateAgentDTO
|
|
1061
|
-
| ONTOLOGY.
|
|
1084
|
+
| ONTOLOGY.CreateSystemDTO
|
|
1062
1085
|
| ONTOLOGY.UpdateObjectDTO
|
|
1063
1086
|
| ONTOLOGY.UpdateEventDTO
|
|
1064
1087
|
| ONTOLOGY.UpdateFileDTO
|
|
1065
1088
|
| ONTOLOGY.UpdateAgentDTO
|
|
1066
|
-
| ONTOLOGY.
|
|
1089
|
+
| ONTOLOGY.UpdateSystemDTO
|
|
1067
1090
|
> {
|
|
1068
1091
|
mappedTemplates: Map<string | number, T>;
|
|
1069
1092
|
|
|
@@ -1072,12 +1095,12 @@ K extends
|
|
|
1072
1095
|
ONTOLOGY.CreateEventDTO &
|
|
1073
1096
|
ONTOLOGY.CreateFileDTO &
|
|
1074
1097
|
ONTOLOGY.CreateAgentDTO &
|
|
1075
|
-
ONTOLOGY.
|
|
1098
|
+
ONTOLOGY.CreateSystemDTO &
|
|
1076
1099
|
ONTOLOGY.UpdateObjectDTO &
|
|
1077
1100
|
ONTOLOGY.UpdateEventDTO &
|
|
1078
1101
|
ONTOLOGY.UpdateFileDTO &
|
|
1079
1102
|
ONTOLOGY.UpdateAgentDTO &
|
|
1080
|
-
ONTOLOGY.
|
|
1103
|
+
ONTOLOGY.UpdateSystemDTO
|
|
1081
1104
|
>;
|
|
1082
1105
|
loading?: boolean;
|
|
1083
1106
|
agentTemplates?: Map<string | number, ONTOLOGY.Agent>;
|
|
@@ -1148,6 +1171,46 @@ export { }
|
|
|
1148
1171
|
|
|
1149
1172
|
|
|
1150
1173
|
|
|
1174
|
+
declare module "@mui/material/styles" {
|
|
1175
|
+
interface ComponentNameToClassKey {
|
|
1176
|
+
MuiCandlestickChart: "root";
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
interface ComponentsPropsList {
|
|
1180
|
+
MuiCandlestickChart: CandlestickChartProps;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
interface Components {
|
|
1184
|
+
MuiCandlestickChart?: {
|
|
1185
|
+
defaultProps?: ComponentsPropsList["MuiCandlestickChart"];
|
|
1186
|
+
styleOverrides?: ComponentsOverrides<Theme>["MuiCandlestickChart"];
|
|
1187
|
+
variants?: ComponentsVariants["MuiCandlestickChart"];
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
declare module "@mui/material/styles" {
|
|
1195
|
+
interface ComponentNameToClassKey {
|
|
1196
|
+
MuiHighlightLineChart: "root";
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
interface ComponentsPropsList {
|
|
1200
|
+
MuiHighlightLineChart: HighlightLineChartProps;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
interface Components {
|
|
1204
|
+
MuiHighlightLineChart?: {
|
|
1205
|
+
defaultProps?: ComponentsPropsList["MuiHighlightLineChart"];
|
|
1206
|
+
styleOverrides?: ComponentsOverrides<Theme>["MuiHighlightLineChart"];
|
|
1207
|
+
variants?: ComponentsVariants["MuiHighlightLineChart"];
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1151
1214
|
declare namespace MAP {
|
|
1152
1215
|
interface Coordinate {
|
|
1153
1216
|
latitude: number;
|
|
@@ -1230,6 +1293,75 @@ declare namespace MAP {
|
|
|
1230
1293
|
}
|
|
1231
1294
|
}
|
|
1232
1295
|
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
declare module "@mui/material/styles" {
|
|
1299
|
+
interface ComponentNameToClassKey {
|
|
1300
|
+
MuiMetricCard:
|
|
1301
|
+
| "root"
|
|
1302
|
+
| "content"
|
|
1303
|
+
| "label"
|
|
1304
|
+
| "value"
|
|
1305
|
+
| "trendContainer"
|
|
1306
|
+
| "trendValue"
|
|
1307
|
+
| "description"
|
|
1308
|
+
| "icon"
|
|
1309
|
+
| "cornerIcon";
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
interface ComponentsPropsList {
|
|
1313
|
+
MuiMetricCard: MetricCardProps;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
interface Components {
|
|
1317
|
+
MuiMetricCard?: {
|
|
1318
|
+
defaultProps?: ComponentsPropsList["MuiMetricCard"];
|
|
1319
|
+
styleOverrides?: ComponentsOverrides<Theme>["MuiMetricCard"];
|
|
1320
|
+
variants?: ComponentsVariants["MuiMetricCard"];
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
declare module "@mui/material/styles" {
|
|
1328
|
+
interface ComponentNameToClassKey {
|
|
1329
|
+
MuiPaginatedList: "root" | "content" | "header" | "list" | "pagination";
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
interface ComponentsPropsList {
|
|
1333
|
+
MuiPaginatedList: PaginatedListProps;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
interface Components {
|
|
1337
|
+
MuiPaginatedList?: {
|
|
1338
|
+
defaultProps?: ComponentsPropsList["MuiPaginatedList"];
|
|
1339
|
+
styleOverrides?: ComponentsOverrides<Theme>["MuiPaginatedList"];
|
|
1340
|
+
variants?: ComponentsVariants["MuiPaginatedList"];
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
|
|
1347
|
+
declare module "@mui/material/styles" {
|
|
1348
|
+
interface ComponentNameToClassKey {
|
|
1349
|
+
MuiProfileCard: "root" | "image" | "hierarchy" | "variables";
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
interface ComponentsPropsList {
|
|
1353
|
+
MuiProfileCard: ProfileCardProps;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
interface Components {
|
|
1357
|
+
MuiProfileCard?: {
|
|
1358
|
+
defaultProps?: ComponentsPropsList["MuiProfileCard"];
|
|
1359
|
+
styleOverrides?: ComponentsOverrides<Theme>["MuiProfileCard"];
|
|
1360
|
+
variants?: ComponentsVariants["MuiProfileCard"];
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1233
1365
|
declare namespace AUTH {
|
|
1234
1366
|
type ModuleType =
|
|
1235
1367
|
| "UI"
|
|
@@ -1987,7 +2119,7 @@ declare namespace ONTOLOGY {
|
|
|
1987
2119
|
editable: boolean;
|
|
1988
2120
|
}
|
|
1989
2121
|
|
|
1990
|
-
interface
|
|
2122
|
+
interface CreateSystemDTO {
|
|
1991
2123
|
templateKey: string;
|
|
1992
2124
|
name: string;
|
|
1993
2125
|
description: string;
|
|
@@ -2001,7 +2133,7 @@ declare namespace ONTOLOGY {
|
|
|
2001
2133
|
editable: boolean;
|
|
2002
2134
|
}
|
|
2003
2135
|
|
|
2004
|
-
interface
|
|
2136
|
+
interface UpdateSystemDTO extends CreateSystemDTO {
|
|
2005
2137
|
id: number;
|
|
2006
2138
|
}
|
|
2007
2139
|
|