@hybridcore/ui 1.5.79 → 1.5.82

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/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/styles';
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<T extends CandlestickData>({ data, seriesName, height, width, chartId, showVolume, risingColor, fallingColor, loading, emptyMessage, }: CandlestickChartProps<T>): JSX_2.Element;
68
+ export declare function CandlestickChart(inProps: CandlestickChartProps): JSX_2.Element;
68
69
 
69
- export declare interface CandlestickChartProps<T extends CandlestickData> {
70
- data: T[];
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<Theme>;
175
+ sx?: SxProps_2<Theme_2>;
174
176
  /**
175
177
  *
176
178
  */
177
- headerSx?: SxProps_2<Theme>;
179
+ headerSx?: SxProps_2<Theme_2>;
178
180
  /**
179
181
  *
180
182
  */
181
- contentSx?: SxProps_2<Theme>;
183
+ contentSx?: SxProps_2<Theme_2>;
182
184
  /**
183
185
  *
184
186
  */
@@ -193,6 +195,11 @@ export declare const ContextMenu: React.FC<Props_3>;
193
195
 
194
196
  export { createTheme }
195
197
 
198
+ declare interface DataPointType {
199
+ t: string; // ISO date
200
+ v: number;
201
+ }
202
+
196
203
  declare interface DataType extends ItemProps {
197
204
  idKey?: string;
198
205
  children?: DataType[];
@@ -295,23 +302,24 @@ declare const hasDataAccess: (role: string, access: AccessType, permissions: AUT
295
302
 
296
303
  declare const hasUIAccess: <T extends string>(feature: FeatureType | T, permissions?: AUTH.PermissionType) => boolean;
297
304
 
298
- export declare function HighlightLineChart<T extends LineDataPoint>({ seriesData, height, width, chartId, showLegend, loading, emptyMessage, }: HighlightLineChartProps<T>): JSX_2.Element;
305
+ export declare function HighlightLineChart(props: HighlightLineChartProps): JSX_2.Element;
299
306
 
300
- export declare interface HighlightLineChartProps<T extends LineDataPoint> {
301
- seriesData: LineSeriesData<T>[];
307
+ export declare interface HighlightLineChartProps {
308
+ seriesData: LineSeriesData[];
302
309
  height?: string | number;
303
310
  width?: string | number;
304
311
  chartId?: string;
305
312
  showLegend?: boolean;
306
313
  loading?: boolean;
307
314
  emptyMessage?: string;
315
+ sx?: SxProps<Theme>;
308
316
  }
309
317
 
310
318
  export declare const IconButton: default_2.FC<Props_6>;
311
319
 
312
320
  declare function importKey(jwk: any): Promise<CryptoKey>;
313
321
 
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;
322
+ 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
323
 
316
324
  export declare interface InstanceFormHandle {
317
325
  /**
@@ -342,7 +350,12 @@ export declare interface InstanceFormHandle {
342
350
  }
343
351
 
344
352
  declare interface InstanceFormProps<
345
- T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File,
353
+ T extends
354
+ | ONTOLOGY.Object
355
+ | ONTOLOGY.Event
356
+ | ONTOLOGY.Agent
357
+ | ONTOLOGY.File
358
+ | ONTOLOGY.System,
346
359
  K extends
347
360
  | INSTANCE.CreateObjectDTO
348
361
  | INSTANCE.UpdateObjectDTO
@@ -351,6 +364,8 @@ K extends
351
364
  | INSTANCE.CreateAgentDTO
352
365
  | INSTANCE.CreateFileDTO
353
366
  | INSTANCE.UpdateFileDTO
367
+ | INSTANCE.CreateSystemDTO
368
+ | INSTANCE.UpdateSystemDTO
354
369
  > {
355
370
  /**
356
371
  *
@@ -560,14 +575,14 @@ declare interface LinearIndicatorProps {
560
575
  }
561
576
 
562
577
  export declare interface LineDataPoint {
563
- date: number | Date; // timestamp veya Date
578
+ date: number; // timestamp
564
579
  value: number;
565
580
  }
566
581
 
567
- export declare interface LineSeriesData<T extends LineDataPoint> {
582
+ export declare interface LineSeriesData {
568
583
  id: string; // unique seri ID'si
569
584
  name: string;
570
- data: T[];
585
+ data: LineDataPoint[];
571
586
  color?: string;
572
587
  }
573
588
 
@@ -663,29 +678,42 @@ export declare namespace Map_2 {
663
678
  }
664
679
  }
665
680
 
666
- export declare const MetricCard: ({ label, value, change, changeType, trend, icon: Icon, iconPosition, description, variant, sx, }: MetricCardProps) => JSX_2.Element;
681
+ export declare const MetricCard: (props: MetricCardProps & React_2.RefAttributes<HTMLDivElement>) => React_2.ReactNode | null;
667
682
 
668
683
  export declare interface MetricCardProps {
669
684
  label: string;
670
- value: string | number;
671
- change?: number;
672
- changeType?: MetricChangeType;
673
- trend?: MetricTrend;
674
- icon?: React.ElementType;
675
- iconPosition?:
676
- | "left"
677
- | "right"
678
- | "top-left"
679
- | "top-right"
680
- | "bottom-left"
681
- | "bottom-right";
685
+ value: DataPointType[];
682
686
  description?: string;
683
687
  variant?: MetricVariant;
684
- sx?: SxProps<Theme_2>;
688
+ loading?: boolean;
689
+
690
+ showChange?: boolean;
691
+ changeType?: MetricChangeType;
692
+
693
+ showTrend?: boolean;
694
+
695
+ showIcon?: boolean;
696
+ icon?: React.ElementType;
697
+ iconPosition?: MetricIconPosition;
698
+
699
+ showChart?: boolean;
700
+ chartType?: MetricChartType;
701
+
702
+ sx?: SxProps<Theme>;
685
703
  }
686
704
 
687
705
  export declare type MetricChangeType = "percentage" | "absolute";
688
706
 
707
+ declare type MetricChartType = "column" | "line";
708
+
709
+ declare type MetricIconPosition =
710
+ | "left"
711
+ | "right"
712
+ | "top-left"
713
+ | "top-right"
714
+ | "bottom-left"
715
+ | "bottom-right";
716
+
689
717
  export declare type MetricTrend = "up" | "down" | "neutral";
690
718
 
691
719
  export declare type MetricVariant =
@@ -708,16 +736,23 @@ declare interface OptionsType {
708
736
 
709
737
  declare type OrientationType_2 = "portrait" | "landscape";
710
738
 
711
- export declare function PaginatedList({ title, data, payload, totalCount, onChange, onItemClick, sx, }: PaginatedListProps): JSX_2.Element;
739
+ export declare function PaginatedList(inProps: PaginatedListProps): JSX_2.Element;
740
+
741
+ declare interface PaginatedListItem {
742
+ id: number;
743
+ title: string;
744
+ description: string;
745
+ icon?: React.ReactNode;
746
+ }
712
747
 
713
748
  export declare interface PaginatedListProps {
714
749
  title?: string;
715
- data: API.Object[];
750
+ data: PaginatedListItem[];
716
751
  totalCount?: number;
717
752
  payload?: Partial<FV.SearchDTO>;
718
753
  onChange?: (params: Partial<FV.SearchDTO>) => void;
719
- onItemClick?: (item: API.Object) => void;
720
- sx?: SxProps<Theme_2>;
754
+ onItemClick?: (item: PaginatedListItem) => void;
755
+ sx?: SxProps<Theme>;
721
756
  }
722
757
 
723
758
  export declare const PhoneInput: React.FC<Props_9>;
@@ -919,7 +954,7 @@ declare interface SearchInputProps {
919
954
  variant?: "outlined" | "filled" | "standard";
920
955
  size?: "small" | "medium";
921
956
  iconSize?: "small" | "medium" | "large";
922
- sx?: SxProps_2<Theme>;
957
+ sx?: SxProps_2<Theme_2>;
923
958
  onChange?(value: string): void;
924
959
  onSubmit?(value: string | undefined): void;
925
960
  }
@@ -1045,7 +1080,7 @@ declare interface TemplateFilterProps {
1045
1080
 
1046
1081
  export declare const TemplateFilters: React.FC<TemplateFilterProps>;
1047
1082
 
1048
- 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;
1083
+ 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;
1049
1084
 
1050
1085
  export declare interface TemplateFormHandle {
1051
1086
  getValues: (key?: string) => any;
@@ -1064,12 +1099,12 @@ K extends
1064
1099
  | ONTOLOGY.CreateEventDTO
1065
1100
  | ONTOLOGY.CreateFileDTO
1066
1101
  | ONTOLOGY.CreateAgentDTO
1067
- | ONTOLOGY.CreateSystemOntologyDTO
1102
+ | ONTOLOGY.CreateSystemDTO
1068
1103
  | ONTOLOGY.UpdateObjectDTO
1069
1104
  | ONTOLOGY.UpdateEventDTO
1070
1105
  | ONTOLOGY.UpdateFileDTO
1071
1106
  | ONTOLOGY.UpdateAgentDTO
1072
- | ONTOLOGY.UpdateSystemOntologyDTO
1107
+ | ONTOLOGY.UpdateSystemDTO
1073
1108
  > {
1074
1109
  mappedTemplates: Map<string | number, T>;
1075
1110
 
@@ -1078,12 +1113,12 @@ K extends
1078
1113
  ONTOLOGY.CreateEventDTO &
1079
1114
  ONTOLOGY.CreateFileDTO &
1080
1115
  ONTOLOGY.CreateAgentDTO &
1081
- ONTOLOGY.CreateSystemOntologyDTO &
1116
+ ONTOLOGY.CreateSystemDTO &
1082
1117
  ONTOLOGY.UpdateObjectDTO &
1083
1118
  ONTOLOGY.UpdateEventDTO &
1084
1119
  ONTOLOGY.UpdateFileDTO &
1085
1120
  ONTOLOGY.UpdateAgentDTO &
1086
- ONTOLOGY.UpdateSystemOntologyDTO
1121
+ ONTOLOGY.UpdateSystemDTO
1087
1122
  >;
1088
1123
  loading?: boolean;
1089
1124
  agentTemplates?: Map<string | number, ONTOLOGY.Agent>;
@@ -1154,6 +1189,46 @@ export { }
1154
1189
 
1155
1190
 
1156
1191
 
1192
+ declare module "@mui/material/styles" {
1193
+ interface ComponentNameToClassKey {
1194
+ MuiCandlestickChart: "root";
1195
+ }
1196
+
1197
+ interface ComponentsPropsList {
1198
+ MuiCandlestickChart: CandlestickChartProps;
1199
+ }
1200
+
1201
+ interface Components {
1202
+ MuiCandlestickChart?: {
1203
+ defaultProps?: ComponentsPropsList["MuiCandlestickChart"];
1204
+ styleOverrides?: ComponentsOverrides<Theme>["MuiCandlestickChart"];
1205
+ variants?: ComponentsVariants["MuiCandlestickChart"];
1206
+ };
1207
+ }
1208
+ }
1209
+
1210
+
1211
+
1212
+ declare module "@mui/material/styles" {
1213
+ interface ComponentNameToClassKey {
1214
+ MuiHighlightLineChart: "root";
1215
+ }
1216
+
1217
+ interface ComponentsPropsList {
1218
+ MuiHighlightLineChart: HighlightLineChartProps;
1219
+ }
1220
+
1221
+ interface Components {
1222
+ MuiHighlightLineChart?: {
1223
+ defaultProps?: ComponentsPropsList["MuiHighlightLineChart"];
1224
+ styleOverrides?: ComponentsOverrides<Theme>["MuiHighlightLineChart"];
1225
+ variants?: ComponentsVariants["MuiHighlightLineChart"];
1226
+ };
1227
+ }
1228
+ }
1229
+
1230
+
1231
+
1157
1232
  declare namespace MAP {
1158
1233
  interface Coordinate {
1159
1234
  latitude: number;
@@ -1236,6 +1311,76 @@ declare namespace MAP {
1236
1311
  }
1237
1312
  }
1238
1313
 
1314
+
1315
+
1316
+ declare module "@mui/material/styles" {
1317
+ interface ComponentNameToClassKey {
1318
+ MuiMetricCard:
1319
+ | "root"
1320
+ | "content"
1321
+ | "label"
1322
+ | "value"
1323
+ | "trendContainer"
1324
+ | "trendValue"
1325
+ | "description"
1326
+ | "icon"
1327
+ | "cornerIcon"
1328
+ | "chart";
1329
+ }
1330
+
1331
+ interface ComponentsPropsList {
1332
+ MuiMetricCard: MetricCardProps;
1333
+ }
1334
+
1335
+ interface Components {
1336
+ MuiMetricCard?: {
1337
+ defaultProps?: ComponentsPropsList["MuiMetricCard"];
1338
+ styleOverrides?: ComponentsOverrides<Theme>["MuiMetricCard"];
1339
+ variants?: ComponentsVariants["MuiMetricCard"];
1340
+ };
1341
+ }
1342
+ }
1343
+
1344
+
1345
+
1346
+ declare module "@mui/material/styles" {
1347
+ interface ComponentNameToClassKey {
1348
+ MuiPaginatedList: "root" | "content" | "header" | "list" | "pagination";
1349
+ }
1350
+
1351
+ interface ComponentsPropsList {
1352
+ MuiPaginatedList: PaginatedListProps;
1353
+ }
1354
+
1355
+ interface Components {
1356
+ MuiPaginatedList?: {
1357
+ defaultProps?: ComponentsPropsList["MuiPaginatedList"];
1358
+ styleOverrides?: ComponentsOverrides<Theme>["MuiPaginatedList"];
1359
+ variants?: ComponentsVariants["MuiPaginatedList"];
1360
+ };
1361
+ }
1362
+ }
1363
+
1364
+
1365
+
1366
+ declare module "@mui/material/styles" {
1367
+ interface ComponentNameToClassKey {
1368
+ MuiProfileCard: "root" | "image" | "hierarchy" | "variables";
1369
+ }
1370
+
1371
+ interface ComponentsPropsList {
1372
+ MuiProfileCard: ProfileCardProps;
1373
+ }
1374
+
1375
+ interface Components {
1376
+ MuiProfileCard?: {
1377
+ defaultProps?: ComponentsPropsList["MuiProfileCard"];
1378
+ styleOverrides?: ComponentsOverrides<Theme>["MuiProfileCard"];
1379
+ variants?: ComponentsVariants["MuiProfileCard"];
1380
+ };
1381
+ }
1382
+ }
1383
+
1239
1384
  declare namespace AUTH {
1240
1385
  type ModuleType =
1241
1386
  | "UI"
@@ -1993,7 +2138,7 @@ declare namespace ONTOLOGY {
1993
2138
  editable: boolean;
1994
2139
  }
1995
2140
 
1996
- interface CreateSystemOntologyDTO {
2141
+ interface CreateSystemDTO {
1997
2142
  templateKey: string;
1998
2143
  name: string;
1999
2144
  description: string;
@@ -2007,7 +2152,7 @@ declare namespace ONTOLOGY {
2007
2152
  editable: boolean;
2008
2153
  }
2009
2154
 
2010
- interface UpdateSystemOntologyDTO extends CreateSystemOntologyDTO {
2155
+ interface UpdateSystemDTO extends CreateSystemDTO {
2011
2156
  id: number;
2012
2157
  }
2013
2158
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.5.79",
4
+ "version": "1.5.82",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",