@hybridcore/ui 1.3.7 → 1.4.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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/data-security-selectors/security-level/index.js +42 -40
- package/dist/components/date-time-picker/index.js +18 -19
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +106 -100
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +16 -15
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/{index-CJVcedWy.js → index-DPf5olog.js} +29 -27
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +561 -78
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -41
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +0 -0
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as i, Fragment as c, jsxs as x } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useMemo as R } from "react";
|
|
3
|
+
import { DataGrid as m } from "@mui/x-data-grid";
|
|
4
|
+
import { ButtonBase as D, Box as M } from "@mui/material";
|
|
5
|
+
import { DataGridActions as N } from "./styled.js";
|
|
6
|
+
import F from "dayjs";
|
|
7
|
+
import G from "lodash";
|
|
8
|
+
const $ = ({
|
|
9
|
+
template: n,
|
|
10
|
+
data: s,
|
|
11
|
+
selectedIds: p = [],
|
|
12
|
+
sortColumnsBy: f = "type",
|
|
13
|
+
actions: l,
|
|
14
|
+
actionsWidth: a = 50,
|
|
15
|
+
enableCheckboxSelection: h = !1,
|
|
16
|
+
onSelect: d,
|
|
17
|
+
onTitleClick: u
|
|
18
|
+
}) => {
|
|
19
|
+
const [y, g] = b(p), w = R(() => [
|
|
20
|
+
{
|
|
21
|
+
field: "template",
|
|
22
|
+
headerName: "",
|
|
23
|
+
sortable: !1,
|
|
24
|
+
filterable: !1,
|
|
25
|
+
align: "center",
|
|
26
|
+
width: 30,
|
|
27
|
+
renderCell: () => n ? /* @__PURE__ */ i(
|
|
28
|
+
"img",
|
|
29
|
+
{
|
|
30
|
+
src: n.icon,
|
|
31
|
+
height: 20,
|
|
32
|
+
style: { display: "inline", maxWidth: 20 }
|
|
33
|
+
}
|
|
34
|
+
) : /* @__PURE__ */ i(c, {})
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
field: "title",
|
|
38
|
+
headerName: "Title",
|
|
39
|
+
width: 400,
|
|
40
|
+
sortable: !1,
|
|
41
|
+
valueGetter: (e) => e.row.title,
|
|
42
|
+
renderCell: (e) => {
|
|
43
|
+
const { row: t, value: r } = e;
|
|
44
|
+
return u ? /* @__PURE__ */ i(
|
|
45
|
+
D,
|
|
46
|
+
{
|
|
47
|
+
onClick: () => u(t),
|
|
48
|
+
sx: { "&:hover": { textDecoration: "underline" } },
|
|
49
|
+
disableRipple: !0,
|
|
50
|
+
children: r
|
|
51
|
+
}
|
|
52
|
+
) : r;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
...n ? [
|
|
56
|
+
...n.properties.filter(
|
|
57
|
+
(e) => e.visible && e.type !== "geometry" && e.type !== "coordinate"
|
|
58
|
+
).sort(
|
|
59
|
+
(e, t) => f === "type" ? e.type < t.type ? -1 : e.type > t.type ? 1 : 0 : e.name < t.name ? -1 : 1
|
|
60
|
+
).map((e) => {
|
|
61
|
+
const t = `variables.${e.type}.${e.propertyId}`;
|
|
62
|
+
return {
|
|
63
|
+
field: t,
|
|
64
|
+
headerName: e.name,
|
|
65
|
+
sortable: !1,
|
|
66
|
+
width: 150,
|
|
67
|
+
valueFormatter: (r) => r.value && e.type === "date" ? F(r.value).format("DD/MM/YYYY HH:mm") : r.value,
|
|
68
|
+
valueGetter: (r) => G.get(r.row, t)
|
|
69
|
+
};
|
|
70
|
+
})
|
|
71
|
+
] : []
|
|
72
|
+
], [n]), v = (o) => {
|
|
73
|
+
g(o), d && d(o);
|
|
74
|
+
};
|
|
75
|
+
return /* @__PURE__ */ x(M, { position: "relative", children: [
|
|
76
|
+
/* @__PURE__ */ i(
|
|
77
|
+
m,
|
|
78
|
+
{
|
|
79
|
+
columns: w,
|
|
80
|
+
rows: s,
|
|
81
|
+
autoHeight: !0,
|
|
82
|
+
density: "compact",
|
|
83
|
+
sx: {
|
|
84
|
+
border: "none",
|
|
85
|
+
"& .MuiDataGrid-main": {
|
|
86
|
+
marginRight: l ? `${a}px` : 0
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
getRowId: (o) => o.id,
|
|
90
|
+
hideFooterPagination: !0,
|
|
91
|
+
hideFooter: !0,
|
|
92
|
+
checkboxSelection: h,
|
|
93
|
+
rowSelectionModel: y,
|
|
94
|
+
onRowSelectionModelChange: v,
|
|
95
|
+
keepNonExistentRowsSelected: !0
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
l !== void 0 && /* @__PURE__ */ i(N, { width: a, children: /* @__PURE__ */ i(
|
|
99
|
+
m,
|
|
100
|
+
{
|
|
101
|
+
columns: [
|
|
102
|
+
{
|
|
103
|
+
field: "actions",
|
|
104
|
+
type: "actions",
|
|
105
|
+
width: a,
|
|
106
|
+
headerClassName: "pinned",
|
|
107
|
+
getActions: () => l
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
rows: s,
|
|
111
|
+
autoHeight: !0,
|
|
112
|
+
density: "compact",
|
|
113
|
+
hideFooter: !0,
|
|
114
|
+
sx: { border: "none" },
|
|
115
|
+
slots: {
|
|
116
|
+
noRowsOverlay: () => /* @__PURE__ */ i(c, {})
|
|
117
|
+
},
|
|
118
|
+
getRowId: (o) => o.id
|
|
119
|
+
}
|
|
120
|
+
) })
|
|
121
|
+
] });
|
|
122
|
+
};
|
|
123
|
+
export {
|
|
124
|
+
$ as InstanceTable
|
|
125
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { styled as a, Box as i } from "@mui/material";
|
|
2
|
+
const d = a(i)(
|
|
3
|
+
({ theme: o, width: t }) => ({
|
|
4
|
+
position: "absolute",
|
|
5
|
+
top: 0,
|
|
6
|
+
right: 0,
|
|
7
|
+
width: t === void 0 ? o.spacing(10) : t,
|
|
8
|
+
background: o.palette.background.default
|
|
9
|
+
})
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
d as DataGridActions
|
|
13
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "lodash";
|
|
2
2
|
import "../../../Source-Hf_SiWEW.js";
|
|
3
|
-
import {
|
|
3
|
+
import { y as K, c as n, E as T, H as i, b as p, a as u, A as M, z as L, d as l, x as k, D as W, g as f, e as g, B as x, J as C } from "../../../ol-CHaVTXvL.js";
|
|
4
4
|
import "ol";
|
|
5
5
|
import "./kml.js";
|
|
6
6
|
import "../styled.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as r, F as t, a as i, C as s, I as c, T as d } from "../../Text-D6oGbCdi.js";
|
|
2
|
-
import { e as f } from "../../createStyled-
|
|
2
|
+
import { e as f } from "../../createStyled-BzvgQjjR.js";
|
|
3
3
|
const g = f(), a = 0.4, w = g("div")(
|
|
4
4
|
({ theme: o, cssPosition: n = "absolute" }) => ({
|
|
5
5
|
position: n,
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "react-phone-number-input";
|
|
3
3
|
import { Typography as i } from "@mui/material";
|
|
4
4
|
import { Container as a } from "./styled.js";
|
|
5
|
-
import '../../assets/
|
|
5
|
+
import '../../assets/index.css';const l = ({
|
|
6
6
|
label: r,
|
|
7
7
|
value: o,
|
|
8
8
|
placeholder: e,
|