@hybridcore/ui 1.5.70 → 1.5.74
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/AxisRendererY-CFo972D5.js +19269 -0
- package/dist/components/charts/candlestick/index.js +394 -19631
- package/dist/components/charts/highlighting-line-data/index.js +843 -0
- package/dist/components/paginated-list/index.js +100 -68
- package/dist/main.d.ts +28 -1
- package/dist/main.js +65 -63
- package/package.json +1 -1
|
@@ -1,84 +1,116 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { List as
|
|
3
|
-
import
|
|
4
|
-
import { useState as
|
|
5
|
-
import { Container as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
title:
|
|
9
|
-
data:
|
|
1
|
+
import { jsxs as c, jsx as o, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { List as y, Box as j, Divider as P, ListItem as z, ListItemText as A, Typography as B, Button as u, TablePagination as F } from "@mui/material";
|
|
3
|
+
import G from "lodash";
|
|
4
|
+
import { useState as g } from "react";
|
|
5
|
+
import { Container as M } from "../container/index.js";
|
|
6
|
+
const U = [5, 10, 25, 50];
|
|
7
|
+
function K({
|
|
8
|
+
title: f,
|
|
9
|
+
data: l = [],
|
|
10
10
|
payload: n,
|
|
11
|
-
totalCount:
|
|
12
|
-
onChange:
|
|
11
|
+
totalCount: v,
|
|
12
|
+
onChange: s,
|
|
13
|
+
onItemClick: t,
|
|
14
|
+
sx: w
|
|
13
15
|
}) {
|
|
14
|
-
const [
|
|
15
|
-
|
|
16
|
-
},
|
|
16
|
+
const [m, h] = g(0), [b, L] = g(5), [R, x] = g([]), a = (n == null ? void 0 : n.pageNumber) !== void 0 ? n.pageNumber : m, i = (n == null ? void 0 : n.rows) !== void 0 ? n.rows : b, T = (e, r) => {
|
|
17
|
+
h(r), s && s({ ...n, pageNumber: r, rows: i });
|
|
18
|
+
}, _ = (e) => {
|
|
17
19
|
const r = parseInt(e.target.value, 10);
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
20
|
+
L(r), h(0), s && s({ ...n, pageNumber: 0, rows: r });
|
|
21
|
+
}, D = (e) => (r) => {
|
|
22
|
+
r.stopPropagation(), x((d) => [...d, e]);
|
|
23
|
+
}, N = (e) => (r) => {
|
|
24
|
+
r.stopPropagation(), x((d) => d.filter((O) => O !== e));
|
|
25
|
+
}, S = s ? v || 0 : l.length, E = s ? l : l.slice(a * i, (a + 1) * i);
|
|
26
|
+
return /* @__PURE__ */ c(
|
|
27
|
+
M,
|
|
26
28
|
{
|
|
27
|
-
title:
|
|
29
|
+
title: f,
|
|
28
30
|
headerSx: {
|
|
29
31
|
py: 2,
|
|
30
32
|
px: 3
|
|
31
33
|
},
|
|
32
|
-
contentSx: {
|
|
34
|
+
contentSx: {
|
|
35
|
+
p: "0px !important",
|
|
36
|
+
display: "flex",
|
|
37
|
+
flexDirection: "column",
|
|
38
|
+
flex: 1,
|
|
39
|
+
overflow: "hidden"
|
|
40
|
+
},
|
|
41
|
+
sx: {
|
|
42
|
+
display: "flex",
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
height: "100%",
|
|
45
|
+
...w
|
|
46
|
+
},
|
|
33
47
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
r === 0 && /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
48
|
+
/* @__PURE__ */ o(y, { disablePadding: !0, sx: { flex: 1, overflowY: "auto" }, children: E.map((e, r) => /* @__PURE__ */ c(j, { children: [
|
|
49
|
+
r === 0 && /* @__PURE__ */ o(P, { component: "li" }),
|
|
50
|
+
/* @__PURE__ */ o(
|
|
51
|
+
z,
|
|
38
52
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
53
|
+
onClick: () => t == null ? void 0 : t(e),
|
|
54
|
+
sx: {
|
|
55
|
+
cursor: t ? "pointer" : "default",
|
|
56
|
+
"&:hover": t ? { backgroundColor: "action.hover" } : void 0
|
|
42
57
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
58
|
+
children: /* @__PURE__ */ o(
|
|
59
|
+
A,
|
|
60
|
+
{
|
|
61
|
+
primary: e.title,
|
|
62
|
+
secondaryTypographyProps: {
|
|
63
|
+
component: "div"
|
|
64
|
+
},
|
|
65
|
+
secondary: /* @__PURE__ */ o(p, { children: /* @__PURE__ */ o(B, { variant: "body2", children: R.includes(e.id) ? /* @__PURE__ */ c(p, { children: [
|
|
66
|
+
e.description,
|
|
67
|
+
/* @__PURE__ */ o(
|
|
68
|
+
u,
|
|
69
|
+
{
|
|
70
|
+
variant: "text",
|
|
71
|
+
size: "small",
|
|
72
|
+
sx: { py: 0, px: 1 },
|
|
73
|
+
onClick: N(e.id),
|
|
74
|
+
children: "show less"
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }) : /* @__PURE__ */ c(p, { children: [
|
|
78
|
+
G.truncate(e.description, { length: 100 }),
|
|
79
|
+
e.description && e.description.length > 100 && /* @__PURE__ */ o(
|
|
80
|
+
u,
|
|
81
|
+
{
|
|
82
|
+
variant: "text",
|
|
83
|
+
size: "small",
|
|
84
|
+
sx: { py: 0, px: 1 },
|
|
85
|
+
onClick: D(e.id),
|
|
86
|
+
children: "read more"
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] }) }) })
|
|
90
|
+
}
|
|
91
|
+
)
|
|
68
92
|
}
|
|
69
|
-
)
|
|
70
|
-
/* @__PURE__ */
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ o(P, { component: "li" })
|
|
71
95
|
] }, e.id || r)) }),
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
|
|
96
|
+
/* @__PURE__ */ o(
|
|
97
|
+
"div",
|
|
74
98
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
99
|
+
style: {
|
|
100
|
+
borderTop: "1px solid lightgray"
|
|
101
|
+
},
|
|
102
|
+
children: /* @__PURE__ */ o(
|
|
103
|
+
F,
|
|
104
|
+
{
|
|
105
|
+
component: "div",
|
|
106
|
+
count: S,
|
|
107
|
+
page: a,
|
|
108
|
+
rowsPerPage: i,
|
|
109
|
+
rowsPerPageOptions: U,
|
|
110
|
+
onPageChange: T,
|
|
111
|
+
onRowsPerPageChange: _
|
|
112
|
+
}
|
|
113
|
+
)
|
|
82
114
|
}
|
|
83
115
|
)
|
|
84
116
|
]
|
|
@@ -86,5 +118,5 @@ function U({
|
|
|
86
118
|
);
|
|
87
119
|
}
|
|
88
120
|
export {
|
|
89
|
-
|
|
121
|
+
K as PaginatedList
|
|
90
122
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { SxProps } from '@mui/material';
|
|
|
27
27
|
import { SxProps as SxProps_2 } from '@mui/material/styles';
|
|
28
28
|
import { TabsProps as TabsProps_2 } from '@mui/material';
|
|
29
29
|
import { Theme } from '@mui/material/styles';
|
|
30
|
+
import { Theme as Theme_2 } from '@mui/material';
|
|
30
31
|
import { ThemeOptions } from '@mui/material';
|
|
31
32
|
import { ThemeProvider } from '@mui/material';
|
|
32
33
|
import { View } from 'ol';
|
|
@@ -294,6 +295,18 @@ declare const hasDataAccess: (role: string, access: AccessType, permissions: AUT
|
|
|
294
295
|
|
|
295
296
|
declare const hasUIAccess: <T extends string>(feature: FeatureType | T, permissions?: AUTH.PermissionType) => boolean;
|
|
296
297
|
|
|
298
|
+
export declare function HighlightLineChart<T extends LineDataPoint>({ seriesData, height, width, chartId, showLegend, loading, emptyMessage, }: HighlightLineChartProps<T>): JSX_2.Element;
|
|
299
|
+
|
|
300
|
+
export declare interface HighlightLineChartProps<T extends LineDataPoint> {
|
|
301
|
+
seriesData: LineSeriesData<T>[];
|
|
302
|
+
height?: string | number;
|
|
303
|
+
width?: string | number;
|
|
304
|
+
chartId?: string;
|
|
305
|
+
showLegend?: boolean;
|
|
306
|
+
loading?: boolean;
|
|
307
|
+
emptyMessage?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
297
310
|
export declare const IconButton: default_2.FC<Props_6>;
|
|
298
311
|
|
|
299
312
|
declare function importKey(jwk: any): Promise<CryptoKey>;
|
|
@@ -546,6 +559,18 @@ declare interface LinearIndicatorProps {
|
|
|
546
559
|
showMiddle?: boolean;
|
|
547
560
|
}
|
|
548
561
|
|
|
562
|
+
export declare interface LineDataPoint {
|
|
563
|
+
date: number | Date; // timestamp veya Date
|
|
564
|
+
value: number;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export declare interface LineSeriesData<T extends LineDataPoint> {
|
|
568
|
+
id: string; // unique seri ID'si
|
|
569
|
+
name: string;
|
|
570
|
+
data: T[];
|
|
571
|
+
color?: string;
|
|
572
|
+
}
|
|
573
|
+
|
|
549
574
|
export declare const Loading: React.FC<Props_8>;
|
|
550
575
|
|
|
551
576
|
export { LocalizationProvider }
|
|
@@ -651,7 +676,7 @@ declare interface OptionsType {
|
|
|
651
676
|
|
|
652
677
|
declare type OrientationType_2 = "portrait" | "landscape";
|
|
653
678
|
|
|
654
|
-
export declare function PaginatedList({ title, data, payload, totalCount, onChange, }: PaginatedListProps): JSX_2.Element;
|
|
679
|
+
export declare function PaginatedList({ title, data, payload, totalCount, onChange, onItemClick, sx, }: PaginatedListProps): JSX_2.Element;
|
|
655
680
|
|
|
656
681
|
export declare interface PaginatedListProps {
|
|
657
682
|
title?: string;
|
|
@@ -659,6 +684,8 @@ export declare interface PaginatedListProps {
|
|
|
659
684
|
totalCount?: number;
|
|
660
685
|
payload?: Partial<FV.SearchDTO>;
|
|
661
686
|
onChange?: (params: Partial<FV.SearchDTO>) => void;
|
|
687
|
+
onItemClick?: (item: API.Object) => void;
|
|
688
|
+
sx?: SxProps<Theme_2>;
|
|
662
689
|
}
|
|
663
690
|
|
|
664
691
|
export declare const PhoneInput: React.FC<Props_9>;
|
package/dist/main.js
CHANGED
|
@@ -5,37 +5,38 @@ import { b as $t } from "./helpers-DaCoWmi2.js";
|
|
|
5
5
|
import { Card as Et } from "./components/card/index.js";
|
|
6
6
|
import { CardAlternate as zt } from "./components/card-alternate/index.js";
|
|
7
7
|
import { CandlestickChart as Nt } from "./components/charts/candlestick/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
8
|
+
import { HighlightLineChart as Vt } from "./components/charts/highlighting-line-data/index.js";
|
|
9
|
+
import { CollapsibleCard as qt } from "./components/collapsible-card/index.js";
|
|
10
|
+
import { ConditionalWrapper as Kt } from "./components/conditional-wrapper/index.js";
|
|
11
|
+
import { alert as Rt, confirm as Xt } from "./components/confirm/index.js";
|
|
12
|
+
import { Container as ee } from "./components/container/index.js";
|
|
13
|
+
import { ContextMenu as se } from "./components/context-menu/index.js";
|
|
14
|
+
import { DisseminationList as oe } from "./components/data-security-selectors/dissemination-list/index.js";
|
|
15
|
+
import { SecurityLevel as ie } from "./components/data-security-selectors/security-level/index.js";
|
|
16
|
+
import { DateTimePicker as de } from "./components/date-time-picker/index.js";
|
|
17
|
+
import { DocumentViewer as ce } from "./components/document-viewer/index.js";
|
|
18
|
+
import { GeometryPicker as me } from "./components/geometry-picker/index.js";
|
|
19
|
+
import { IconButton as pe } from "./components/icon-button/index.js";
|
|
20
|
+
import { InstanceForm as Me } from "./components/instance-form/index.js";
|
|
21
|
+
import { InstanceHierarchyTable as De } from "./components/instance-hierarchy-table/index.js";
|
|
22
|
+
import { InstanceTable as Ye } from "./components/instance-table/index.js";
|
|
23
|
+
import { InstanceVariableList as Te } from "./components/instance-variable-list/index.js";
|
|
24
|
+
import { KeyProtectionMenu as ke } from "./components/key-protection/menu.js";
|
|
25
|
+
import { S as Oe } from "./utils-Bq0ye5vf.js";
|
|
26
|
+
import { LinearIndicator as Se } from "./components/linear-indicator/index.js";
|
|
27
|
+
import { Loading as He } from "./components/loading/index.js";
|
|
28
|
+
import { i as Be } from "./index-JrtqxUdI.js";
|
|
29
|
+
import { PaginatedList as Ie } from "./components/paginated-list/index.js";
|
|
30
|
+
import { PhoneInput as je } from "./components/phone-input/index.js";
|
|
31
|
+
import { SearchInput as We } from "./components/search-input/index.js";
|
|
32
|
+
import { Tabs as Ue } from "./components/tabs/index.js";
|
|
33
|
+
import { TemplateFilters as Ze } from "./components/template-filters/index.js";
|
|
34
|
+
import { TemplateForm as Je } from "./components/template-form/index.js";
|
|
35
|
+
import { TemplatePropertyFilters as _e } from "./components/template-property-filters/index.js";
|
|
36
|
+
import { Property as Ge } from "./components/template-property-filters/property.js";
|
|
37
|
+
import { TreeSelect as Qe } from "./components/tree-select/index.js";
|
|
38
|
+
import { TreeViewFilter as Xe } from "./components/treeview-filter/index.js";
|
|
39
|
+
import { Uploader as er } from "./components/uploader/index.js";
|
|
39
40
|
import { a as dt } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
40
41
|
import C from "dayjs";
|
|
41
42
|
import { h as U, j as z } from "./createTheme-DrgvKMA_.js";
|
|
@@ -397,39 +398,40 @@ export {
|
|
|
397
398
|
Nt as CandlestickChart,
|
|
398
399
|
Et as Card,
|
|
399
400
|
zt as CardAlternate,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
pe as
|
|
410
|
-
Me as
|
|
411
|
-
De as
|
|
412
|
-
Ye as
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
Se as
|
|
401
|
+
qt as CollapsibleCard,
|
|
402
|
+
Kt as ConditionalWrapper,
|
|
403
|
+
ee as Container,
|
|
404
|
+
se as ContextMenu,
|
|
405
|
+
de as DateTimePicker,
|
|
406
|
+
oe as DisseminationList,
|
|
407
|
+
ce as DocumentViewer,
|
|
408
|
+
me as GeometryPicker,
|
|
409
|
+
Vt as HighlightLineChart,
|
|
410
|
+
pe as IconButton,
|
|
411
|
+
Me as InstanceForm,
|
|
412
|
+
De as InstanceHierarchyTable,
|
|
413
|
+
Ye as InstanceTable,
|
|
414
|
+
Te as InstanceVariableList,
|
|
415
|
+
Oe as KeyProductionUtils,
|
|
416
|
+
ke as KeyProtectionMenu,
|
|
417
|
+
Se as LinearIndicator,
|
|
418
|
+
He as Loading,
|
|
417
419
|
Ct as LocalizationProvider,
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
420
|
+
Be as Map,
|
|
421
|
+
Ie as PaginatedList,
|
|
422
|
+
je as PhoneInput,
|
|
423
|
+
Ge as PropertyFilterInput,
|
|
424
|
+
We as SearchInput,
|
|
425
|
+
ie as SecurityLevel,
|
|
426
|
+
Ue as Tabs,
|
|
427
|
+
Ze as TemplateFilters,
|
|
428
|
+
Je as TemplateForm,
|
|
429
|
+
_e as TemplatePropertyFilters,
|
|
428
430
|
Ht as ThemeProvider,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
431
|
+
Qe as TreeSelect,
|
|
432
|
+
Xe as TreeViewFilter,
|
|
433
|
+
er as Uploader,
|
|
434
|
+
Rt as alert,
|
|
435
|
+
Xt as confirm,
|
|
434
436
|
Ft as createTheme
|
|
435
437
|
};
|