@hybridcore/ui 1.6.18 → 1.6.19
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/{AccordionSummary-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
- package/dist/Add-CB4mPrke.js +77 -0
- package/dist/Alert-BsT46Tgd.js +334 -0
- package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
- package/dist/ButtonBase-DG5J0YgP.js +823 -0
- package/dist/Delete-ofipLwkd.js +23 -0
- package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
- package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
- package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
- package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
- package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
- package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
- package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
- package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
- package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
- package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
- package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +108 -48
- package/dist/components/charts/forecast-cone/logic.js +271 -191
- package/dist/components/charts/forecast-cone/styled.js +26 -5
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/sortable-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/index.js +30 -28
- package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
- package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/tree-select/index.js +1 -1
- package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
- package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
- package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
- package/dist/main.d.ts +28 -1
- package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
- package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
- package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
- package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
- package/dist/useTimeout-CM6EsHyp.js +60 -0
- package/package.json +1 -1
- package/dist/Add-Bk8R160M.js +0 -403
- package/dist/ButtonBase-DObmf4Q_.js +0 -886
- package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
- package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
|
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react-confirm";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
|
-
import { D as e } from "../../dialog-
|
|
6
|
-
import "../../Button-
|
|
5
|
+
import { D as e } from "../../dialog-CNxZ7uox.js";
|
|
6
|
+
import "../../Button-BMUZn0cT.js";
|
|
7
7
|
export {
|
|
8
8
|
e as default
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as ke, jsx as oe } from "react/jsx-runtime";
|
|
2
|
-
import { _ as Kt, a as A } from "../../../
|
|
2
|
+
import { _ as Kt, a as A } from "../../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
3
3
|
import * as V from "react";
|
|
4
4
|
import { useLayoutEffect as qt, useContext as en, useRef as j, useState as te, createContext as tn, useMemo as ee, useCallback as T, Component as nn, Fragment as Ne, useEffect as It, forwardRef as un } from "react";
|
|
5
5
|
import { _ as on } from "../../../setPrototypeOf-NPgp4cYc.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useDurationSelectLogic as l } from "./logic.js";
|
|
3
3
|
import { DurationSelectRoot as n, DurationSelectSelect as i } from "./styled.js";
|
|
4
|
-
import { M as c } from "../../MenuItem-
|
|
4
|
+
import { M as c } from "../../MenuItem-BjnnhDbD.js";
|
|
5
5
|
const h = (o) => {
|
|
6
6
|
const { state: a, actions: r } = l(o);
|
|
7
7
|
return /* @__PURE__ */ t(n, { sx: o.sx, children: /* @__PURE__ */ t(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled as a, Box as n, Typography as o, Chip as r } from "@mui/material";
|
|
2
|
-
import { A as t, a as c, b as i } from "../../AccordionSummary-
|
|
2
|
+
import { A as t, a as c, b as i } from "../../AccordionSummary-c6-Buzbq.js";
|
|
3
3
|
const s = (e) => e !== "ownerState", l = a(n, {
|
|
4
4
|
name: "HCInstanceHierarchyTable",
|
|
5
5
|
slot: "root",
|
|
@@ -7,11 +7,11 @@ import * as gn from "react";
|
|
|
7
7
|
import mn from "react";
|
|
8
8
|
import { useSortableListLogic as bn } from "./logic.js";
|
|
9
9
|
import { SortableListRoot as vn, SortableListItem as yn } from "./styled.js";
|
|
10
|
-
import { a as Me, _ as wn } from "../../
|
|
10
|
+
import { a as Me, _ as wn } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
11
11
|
import { P as z } from "../../index-CblbdqjE.js";
|
|
12
12
|
import { c as En } from "../../clsx-OuTLNxxd.js";
|
|
13
|
-
import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../
|
|
14
|
-
import { T as We } from "../../Typography-
|
|
13
|
+
import { g as Sn, a as Dn, s as ct, u as _n, c as Cn } from "../../styled-Ckq8ALHh.js";
|
|
14
|
+
import { T as We } from "../../Typography-B_LKrxyI.js";
|
|
15
15
|
function xn(n) {
|
|
16
16
|
return Dn("MuiCardHeader", n);
|
|
17
17
|
}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { DataGrid as d } from "@mui/x-data-grid";
|
|
3
|
-
import { A as n,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { B as
|
|
8
|
-
import { T as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
3
|
+
import { A as n, d as m } from "../../../../Add-CB4mPrke.js";
|
|
4
|
+
import s from "./property-list-columns.js";
|
|
5
|
+
import p from "./property-list-form.js";
|
|
6
|
+
import c from "./property-list-logic.js";
|
|
7
|
+
import { B as u } from "../../../../TextField-Db63_GNb.js";
|
|
8
|
+
import { T as y } from "../../../../Typography-B_LKrxyI.js";
|
|
9
|
+
import { A as h } from "../../../../Alert-BsT46Tgd.js";
|
|
10
|
+
import { B as f } from "../../../../Button-BMUZn0cT.js";
|
|
11
|
+
import { a as g, b, c as I } from "../../../../dialog-CNxZ7uox.js";
|
|
12
|
+
const v = (e) => {
|
|
12
13
|
var l;
|
|
13
|
-
const { state: r, action: o } =
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
14
|
+
const { state: r, action: o } = c(e);
|
|
15
|
+
return /* @__PURE__ */ i(u, { children: [
|
|
16
|
+
/* @__PURE__ */ t(y, { variant: "h6", marginY: 2, children: "Properties" }),
|
|
17
|
+
e.list.length > 0 ? /* @__PURE__ */ t(
|
|
17
18
|
d,
|
|
18
19
|
{
|
|
19
|
-
rows:
|
|
20
|
-
columns:
|
|
21
|
-
templateId:
|
|
20
|
+
rows: e.list,
|
|
21
|
+
columns: s({
|
|
22
|
+
templateId: e.templateId,
|
|
22
23
|
onEdit: o.handleOnEditClick,
|
|
23
24
|
onDelete: o.handleOnDeleteClick
|
|
24
25
|
}),
|
|
25
26
|
getRowId: (a) => a.id || a.propertyId,
|
|
26
27
|
autoHeight: !0
|
|
27
28
|
}
|
|
28
|
-
) : /* @__PURE__ */ i(
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
) : /* @__PURE__ */ i(h, { severity: "info", children: [
|
|
30
|
+
/* @__PURE__ */ t(n, { children: "No Property Added!" }),
|
|
30
31
|
"Add least one property before save the template!"
|
|
31
32
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ t(
|
|
33
34
|
f,
|
|
34
35
|
{
|
|
35
36
|
color: "primary",
|
|
36
37
|
onClick: o.handleOnAddClick,
|
|
37
38
|
sx: { mt: 2 },
|
|
38
|
-
startIcon: /* @__PURE__ */
|
|
39
|
+
startIcon: /* @__PURE__ */ t(m, {}),
|
|
39
40
|
children: "Add Property"
|
|
40
41
|
}
|
|
41
42
|
),
|
|
@@ -50,14 +51,15 @@ const T = (t) => {
|
|
|
50
51
|
maxWidth: "sm",
|
|
51
52
|
scroll: "body",
|
|
52
53
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
/* @__PURE__ */ t(b, { id: "alert-dialog-title", children: r.propertyForm.title }),
|
|
55
|
+
/* @__PURE__ */ t(I, { className: "pb-30", children: /* @__PURE__ */ t(
|
|
56
|
+
p,
|
|
56
57
|
{
|
|
57
|
-
inputVariant:
|
|
58
|
-
labelPosition:
|
|
58
|
+
inputVariant: e.inputVariant,
|
|
59
|
+
labelPosition: e.labelPosition,
|
|
60
|
+
templateId: e.templateId,
|
|
59
61
|
defaultValues: r.propertyForm.defaultValues,
|
|
60
|
-
disablePropertyId:
|
|
62
|
+
disablePropertyId: e.disablePropertyId && r.propertyForm.type === "edit" && !!((l = r.propertyForm.defaultValues) != null && l.id),
|
|
61
63
|
onSubmit: o.handleSubmit,
|
|
62
64
|
onCancel: o.dialog.close
|
|
63
65
|
}
|
|
@@ -68,5 +70,5 @@ const T = (t) => {
|
|
|
68
70
|
] });
|
|
69
71
|
};
|
|
70
72
|
export {
|
|
71
|
-
|
|
73
|
+
v as PropertyList
|
|
72
74
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { T as l } from "../../../../Typography-
|
|
4
|
-
|
|
1
|
+
import { jsxs as i, jsx as o, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { d as u, a as w } from "../../../../Delete-ofipLwkd.js";
|
|
3
|
+
import { T as l } from "../../../../Typography-B_LKrxyI.js";
|
|
4
|
+
import { I as s } from "../../../../IconButton-SJfF1cr9.js";
|
|
5
|
+
const y = (d) => [
|
|
5
6
|
{ field: "name", headerName: "Name", flex: 1 },
|
|
6
7
|
{ field: "propertyId", headerName: "Property ID", flex: 1 },
|
|
7
8
|
{
|
|
@@ -11,20 +12,20 @@ const v = (o) => [
|
|
|
11
12
|
renderCell: (t) => {
|
|
12
13
|
var n, m, f, h;
|
|
13
14
|
const { dataTypeInfo: e, defaultValue: a } = t.row;
|
|
14
|
-
let
|
|
15
|
-
return e != null && e.datePattern && (
|
|
15
|
+
let r = t.value;
|
|
16
|
+
return e != null && e.datePattern && (r += ` ${e.datePattern}`), e != null && e.coordinateFormat && (r += ` ${e.coordinateFormat}`), e != null && e.enumValues && (r += ` ${e.enumValues.join(",")}`), a && (r += ` ${a}`), /* @__PURE__ */ i("div", { className: "MuiDataGrid-cellContent", title: r, children: [
|
|
16
17
|
t.value,
|
|
17
|
-
((n = t.row.dataTypeInfo) == null ? void 0 : n.datePattern) && /* @__PURE__ */
|
|
18
|
+
((n = t.row.dataTypeInfo) == null ? void 0 : n.datePattern) && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
|
|
18
19
|
"(",
|
|
19
20
|
(m = t.row.dataTypeInfo) == null ? void 0 : m.datePattern,
|
|
20
21
|
")"
|
|
21
22
|
] }),
|
|
22
|
-
((f = t.row.dataTypeInfo) == null ? void 0 : f.coordinateFormat) && /* @__PURE__ */
|
|
23
|
+
((f = t.row.dataTypeInfo) == null ? void 0 : f.coordinateFormat) && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
|
|
23
24
|
"(",
|
|
24
25
|
(h = t.row.dataTypeInfo) == null ? void 0 : h.coordinateFormat,
|
|
25
26
|
")"
|
|
26
27
|
] }),
|
|
27
|
-
t.row.defaultValue !== null && t.row.defaultValue !== "" && /* @__PURE__ */
|
|
28
|
+
t.row.defaultValue !== null && t.row.defaultValue !== "" && /* @__PURE__ */ i(l, { variant: "caption", ml: 1, children: [
|
|
28
29
|
"(",
|
|
29
30
|
t.row.defaultValue,
|
|
30
31
|
")"
|
|
@@ -38,7 +39,7 @@ const v = (o) => [
|
|
|
38
39
|
width: 120,
|
|
39
40
|
renderCell: (t) => {
|
|
40
41
|
var e, a;
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ o(
|
|
42
43
|
"div",
|
|
43
44
|
{
|
|
44
45
|
className: "MuiDataGrid-cellContent",
|
|
@@ -97,28 +98,28 @@ const v = (o) => [
|
|
|
97
98
|
sortable: !1,
|
|
98
99
|
filterable: !1,
|
|
99
100
|
renderCell: (t) => {
|
|
100
|
-
const { inheritedFrom: e } = t.row;
|
|
101
|
-
return
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
|
|
101
|
+
const { inheritedFrom: e } = t.row, a = !!(e != null && e.templateId) && e.templateId !== d.templateId;
|
|
102
|
+
return /* @__PURE__ */ i(p, { children: [
|
|
103
|
+
/* @__PURE__ */ o(
|
|
104
|
+
s,
|
|
104
105
|
{
|
|
105
106
|
size: "medium",
|
|
106
|
-
onClick: () =>
|
|
107
|
-
children: /* @__PURE__ */
|
|
107
|
+
onClick: () => d.onEdit(t.row),
|
|
108
|
+
children: /* @__PURE__ */ o(u, { color: "primary" })
|
|
108
109
|
}
|
|
109
110
|
),
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
111
|
+
!a && /* @__PURE__ */ o(
|
|
112
|
+
s,
|
|
112
113
|
{
|
|
113
114
|
size: "medium",
|
|
114
|
-
onClick: () =>
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
onClick: () => d.onDelete(t.row),
|
|
116
|
+
children: /* @__PURE__ */ o(w, {})
|
|
116
117
|
}
|
|
117
118
|
)
|
|
118
|
-
] })
|
|
119
|
+
] });
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
];
|
|
122
123
|
export {
|
|
123
|
-
|
|
124
|
+
y as default
|
|
124
125
|
};
|