@hybridcore/ui 1.3.7 → 1.4.1
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 +341 -179
- 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 +562 -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
package/dist/utils/ontology.js
CHANGED
|
@@ -1,37 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
for (
|
|
6
|
-
(
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
o && (f.length && (o.children = f), l.push(o));
|
|
1
|
+
import d from "lodash";
|
|
2
|
+
import { OBJECT_FALLBACK_ICON as p, EVENT_FALLBACK_ICON as g } from "../constants/index.js";
|
|
3
|
+
const N = (n, i = !0) => {
|
|
4
|
+
const t = [], e = n.values();
|
|
5
|
+
for (const c of e)
|
|
6
|
+
(c.parent === null || !n.has(c.parent)) && t.push(c.templateKey);
|
|
7
|
+
const o = (c) => {
|
|
8
|
+
const r = [], s = n.get(c);
|
|
9
|
+
if (s && s.childrenKeys)
|
|
10
|
+
for (const l of s.childrenKeys) {
|
|
11
|
+
const u = o(l), f = n.get(l);
|
|
12
|
+
f && (u.length && (f.children = u), r.push(f));
|
|
14
13
|
}
|
|
15
|
-
return
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
l.children = r, i && l.parent === null ? h.push(...l.children) : h.push(l);
|
|
14
|
+
return r;
|
|
15
|
+
}, h = [];
|
|
16
|
+
return t.forEach((c) => {
|
|
17
|
+
const r = n.get(c);
|
|
18
|
+
if (r) {
|
|
19
|
+
const s = o(c);
|
|
20
|
+
r.children = s, i && r.parent === null ? h.push(...r.children) : h.push(r);
|
|
23
21
|
}
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
for (
|
|
28
|
-
if (i.push(
|
|
29
|
-
const
|
|
30
|
-
i.push(...
|
|
22
|
+
}), d.uniqBy(h, "id");
|
|
23
|
+
}, y = (n) => {
|
|
24
|
+
const i = [];
|
|
25
|
+
for (const t in n)
|
|
26
|
+
if (i.push(n[t]), n[t].children) {
|
|
27
|
+
const e = y(n[t].children);
|
|
28
|
+
i.push(...e);
|
|
31
29
|
}
|
|
32
30
|
return i;
|
|
31
|
+
}, C = (n, i) => {
|
|
32
|
+
const t = [];
|
|
33
|
+
if (i && n && i.parent) {
|
|
34
|
+
const e = n.get(i.parent);
|
|
35
|
+
if (e) {
|
|
36
|
+
t.unshift(e);
|
|
37
|
+
const o = C(n, e);
|
|
38
|
+
t.unshift(...o);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
}, E = (n, i, t) => {
|
|
43
|
+
const e = n == null ? void 0 : n.get(i);
|
|
44
|
+
let o = p;
|
|
45
|
+
if (e)
|
|
46
|
+
if (e.icon) o = e.icon;
|
|
47
|
+
else {
|
|
48
|
+
if (!e.icon && e.parent)
|
|
49
|
+
return E(n, e.parent, t);
|
|
50
|
+
e.type === "EVENT" ? o = g : e.type === "OBJECT" && (o = p);
|
|
51
|
+
}
|
|
52
|
+
return t && (o = o.replace("ontology-icon/", `ontology-icon/${t}/`), o = o.replace(".svg", ".png")), o;
|
|
33
53
|
};
|
|
34
54
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
55
|
+
y as flattenNestedTemplates,
|
|
56
|
+
N as getNestedChildrenFromMap,
|
|
57
|
+
E as getPageIcon,
|
|
58
|
+
C as getTemplateHierarchy
|
|
37
59
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as D } from "./
|
|
2
|
-
import { _ as C,
|
|
3
|
-
import { P as i } from "./createStyled-
|
|
1
|
+
import { a as D } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import { _ as C, d as S } from "./ButtonBase-D0qccOVb.js";
|
|
3
|
+
import { P as i } from "./createStyled-BzvgQjjR.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
const N = {
|
|
@@ -10,8 +10,7 @@ var R = process.env.NODE_ENV !== "production" ? i.oneOfType([i.number, i.shape({
|
|
|
10
10
|
enter: i.number,
|
|
11
11
|
exit: i.number,
|
|
12
12
|
appear: i.number
|
|
13
|
-
}).isRequired]) : null
|
|
14
|
-
process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
13
|
+
}).isRequired]) : null, P = process.env.NODE_ENV !== "production" ? i.oneOfType([i.string, i.shape({
|
|
15
14
|
enter: i.string,
|
|
16
15
|
exit: i.string,
|
|
17
16
|
active: i.string
|
|
@@ -22,10 +21,9 @@ process.env.NODE_ENV !== "production" && i.oneOfType([i.string, i.shape({
|
|
|
22
21
|
exit: i.string,
|
|
23
22
|
exitDone: i.string,
|
|
24
23
|
exitActive: i.string
|
|
25
|
-
})])
|
|
26
|
-
var y = function(a) {
|
|
24
|
+
})]) : null, y = function(a) {
|
|
27
25
|
return a.scrollTop;
|
|
28
|
-
}, x = "unmounted", f = "exited", c = "entering", h = "entered",
|
|
26
|
+
}, x = "unmounted", f = "exited", c = "entering", h = "entered", g = "exiting", l = /* @__PURE__ */ function(u) {
|
|
29
27
|
C(a, u);
|
|
30
28
|
function a(r, e) {
|
|
31
29
|
var t;
|
|
@@ -48,7 +46,7 @@ var y = function(a) {
|
|
|
48
46
|
var t = null;
|
|
49
47
|
if (e !== this.props) {
|
|
50
48
|
var n = this.state.status;
|
|
51
|
-
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t =
|
|
49
|
+
this.props.in ? n !== c && n !== h && (t = c) : (n === c || n === h) && (t = g);
|
|
52
50
|
}
|
|
53
51
|
this.updateStatus(!1, t);
|
|
54
52
|
}, o.componentWillUnmount = function() {
|
|
@@ -74,7 +72,7 @@ var y = function(a) {
|
|
|
74
72
|
status: x
|
|
75
73
|
});
|
|
76
74
|
}, o.performEnter = function(e) {
|
|
77
|
-
var t = this, n = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1],
|
|
75
|
+
var t = this, n = this.props.enter, s = this.context ? this.context.isMounting : e, p = this.props.nodeRef ? [s] : [b.findDOMNode(this), s], d = p[0], m = p[1], T = this.getTimeouts(), O = s ? T.appear : T.enter;
|
|
78
76
|
if (!e && !n || N.disabled) {
|
|
79
77
|
this.safeSetState({
|
|
80
78
|
status: h
|
|
@@ -105,7 +103,7 @@ var y = function(a) {
|
|
|
105
103
|
return;
|
|
106
104
|
}
|
|
107
105
|
this.props.onExit(s), this.safeSetState({
|
|
108
|
-
status:
|
|
106
|
+
status: g
|
|
109
107
|
}, function() {
|
|
110
108
|
e.props.onExiting(s), e.onTransitionEnd(n.exit, function() {
|
|
111
109
|
e.safeSetState({
|
|
@@ -343,9 +341,9 @@ l.UNMOUNTED = x;
|
|
|
343
341
|
l.EXITED = f;
|
|
344
342
|
l.ENTERING = c;
|
|
345
343
|
l.ENTERED = h;
|
|
346
|
-
l.EXITING =
|
|
347
|
-
const
|
|
348
|
-
function
|
|
344
|
+
l.EXITING = g;
|
|
345
|
+
const U = (u) => u.scrollTop;
|
|
346
|
+
function w(u, a) {
|
|
349
347
|
var o, r;
|
|
350
348
|
const {
|
|
351
349
|
timeout: e,
|
|
@@ -360,6 +358,8 @@ function U(u, a) {
|
|
|
360
358
|
}
|
|
361
359
|
export {
|
|
362
360
|
l as T,
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
P as c,
|
|
362
|
+
y as f,
|
|
363
|
+
w as g,
|
|
364
|
+
U as r
|
|
365
365
|
};
|
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.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"author": "Hybrid Core",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"type": "module",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"preview": "vite preview",
|
|
21
21
|
"prepublishOnly": "yarn build",
|
|
22
22
|
"storybook": "storybook dev -p 6006",
|
|
23
|
+
"sb": "storybook dev -p 6006",
|
|
23
24
|
"build-storybook": "storybook build",
|
|
24
25
|
"tsc": "tsc -b ./tsconfig.lib.json"
|
|
25
26
|
},
|