@hybridcore/ui 1.5.65 → 1.5.67

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.
@@ -2,7 +2,7 @@ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import { DataGrid as d } from "@mui/x-data-grid";
3
3
  import { A as n, a as m, d as s } from "../../../../Add-Cjs72ewI.js";
4
4
  import p from "./property-list-columns.js";
5
- import { a as c } from "../../../../property-list-form-D77cAJ24.js";
5
+ import { a as c } from "../../../../property-list-form-BMdYISml.js";
6
6
  import u from "./property-list-logic.js";
7
7
  import { B as f } from "../../../../Box-SSMZuKnS.js";
8
8
  import { T as y } from "../../../../Typography-CLq43OVQ.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "lodash";
4
- import { a as b } from "../../../../property-list-form-D77cAJ24.js";
4
+ import { a as b } from "../../../../property-list-form-BMdYISml.js";
5
5
  import "../../../../constants/index.js";
6
6
  import "../../../../TextField-CdKnj6de.js";
7
7
  import "../../../../InputLabel-ClDXuWBr.js";
@@ -10,7 +10,7 @@ import { getNestedChildrenFromMap as _ } from "../../utils/ontology.js";
10
10
  import { TreeSelect as w } from "../tree-select/index.js";
11
11
  import A from "./components/select-icon/index.js";
12
12
  import { T as m } from "../../TextField-CdKnj6de.js";
13
- import { F as h } from "../../property-list-form-D77cAJ24.js";
13
+ import { F as h } from "../../property-list-form-BMdYISml.js";
14
14
  import { F as d } from "../../FormControlLabel-BNT5EI0b.js";
15
15
  import { C as c } from "../../Checkbox-B0P8LhCl.js";
16
16
  import { B as p } from "../../Box-SSMZuKnS.js";
@@ -3,6 +3,7 @@ const o = [
3
3
  "boolean",
4
4
  "byte",
5
5
  "composite-list",
6
+ "composite-matrix",
6
7
  "coordinate",
7
8
  "date",
8
9
  "double",
@@ -1,4 +1,4 @@
1
- import H, { jsx as t, jsxs as m, Fragment as K } from "react/jsx-runtime";
1
+ import H, { jsx as t, jsxs as d, Fragment as K } from "react/jsx-runtime";
2
2
  import * as J from "react";
3
3
  import I from "react";
4
4
  import Q from "lodash";
@@ -13,12 +13,12 @@ import { P as n } from "./createTheme-DrgvKMA_.js";
13
13
  import { g as ae, u as oe, c as le, a as ne } from "./useThemeProps-BlXpIqSE.js";
14
14
  import { s as ie } from "./styled-DkqItiLo.js";
15
15
  import { g as se } from "./createTheme-DVoJnXAT.js";
16
- import { u as de } from "./useFormControl-CatNKXAi.js";
16
+ import { u as me } from "./useFormControl-CatNKXAi.js";
17
17
  import { F as p } from "./FormControlLabel-BNT5EI0b.js";
18
18
  import { C as f } from "./Checkbox-B0P8LhCl.js";
19
19
  import { B as ce } from "./Box-SSMZuKnS.js";
20
20
  import { B as Y } from "./Button-jy67CcTH.js";
21
- function me(a) {
21
+ function de(a) {
22
22
  return se("MuiFormGroup", a);
23
23
  }
24
24
  ae("MuiFormGroup", ["root", "row", "error"]);
@@ -30,7 +30,7 @@ const ue = ["className", "row"], pe = (a) => {
30
30
  } = a;
31
31
  return ne({
32
32
  root: ["root", c && "row", s && "error"]
33
- }, me, i);
33
+ }, de, i);
34
34
  }, fe = ie("div", {
35
35
  name: "MuiFormGroup",
36
36
  slot: "Root",
@@ -55,7 +55,7 @@ const ue = ["className", "row"], pe = (a) => {
55
55
  }), {
56
56
  className: h,
57
57
  row: e = !1
58
- } = s, y = re(s, ue), u = de(), b = te({
58
+ } = s, y = re(s, ue), u = me(), b = te({
59
59
  props: s,
60
60
  muiFormControl: u,
61
61
  states: ["error"]
@@ -130,15 +130,15 @@ function We({
130
130
  }), o = (r) => {
131
131
  var v, T;
132
132
  const l = r.target.name;
133
- let d = r.target.type === "checkbox" ? r.target.checked : r.target.value;
134
- if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (d = d.split(",")), ((T = (v = e.dataTypeInfo) == null ? void 0 : v.innerType) == null ? void 0 : T.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (d = d.split(",")), l.includes(".")) {
133
+ let m = r.target.type === "checkbox" ? r.target.checked : r.target.value;
134
+ if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (m = m.split(",")), ((T = (v = e.dataTypeInfo) == null ? void 0 : v.innerType) == null ? void 0 : T.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (m = m.split(",")), l.includes(".")) {
135
135
  let x = { ...e };
136
- Q.set(x, l, d), y(x);
136
+ Q.set(x, l, m), y(x);
137
137
  return;
138
138
  }
139
139
  y((x) => ({
140
140
  ...x,
141
- [l]: d
141
+ [l]: m
142
142
  }));
143
143
  }, P = () => {
144
144
  if (!e.name) {
@@ -149,15 +149,21 @@ function We({
149
149
  };
150
150
  return I.useEffect(() => (u.name && e.name && b({ ...u, name: !1 }), () => {
151
151
  }), [e.name]), I.useEffect(() => {
152
- if (!["date", "coordinate", "composite-list", "enum"].includes(e.type)) {
152
+ if (![
153
+ "date",
154
+ "coordinate",
155
+ "composite-list",
156
+ "enum",
157
+ "composite-matrix"
158
+ ].includes(e.type)) {
153
159
  if (e.dataTypeInfo) {
154
- const { coordinateFormat: r, datePattern: l, innerType: d, enumValues: v } = e.dataTypeInfo;
155
- (r || l || d || v) && y((T) => ({ ...T, dataTypeInfo: {} }));
160
+ const { coordinateFormat: r, datePattern: l, innerType: m, enumValues: v } = e.dataTypeInfo;
161
+ (r || l || m || v) && y((T) => ({ ...T, dataTypeInfo: {} }));
156
162
  }
157
163
  return () => {
158
164
  };
159
165
  }
160
- }, [e.type]), /* @__PURE__ */ m(K, { children: [
166
+ }, [e.type]), /* @__PURE__ */ d(K, { children: [
161
167
  /* @__PURE__ */ t(
162
168
  w,
163
169
  {
@@ -188,7 +194,7 @@ function We({
188
194
  onChange: o
189
195
  }
190
196
  ),
191
- /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
197
+ /* @__PURE__ */ d(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
192
198
  /* @__PURE__ */ t(F, { id: "type-select-label", children: "Type" }),
193
199
  /* @__PURE__ */ t(
194
200
  _,
@@ -203,7 +209,7 @@ function We({
203
209
  }
204
210
  )
205
211
  ] }),
206
- e.type === "coordinate" && /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
212
+ e.type === "coordinate" && /* @__PURE__ */ d(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
207
213
  /* @__PURE__ */ t(F, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
208
214
  /* @__PURE__ */ t(
209
215
  _,
@@ -218,7 +224,7 @@ function We({
218
224
  }
219
225
  )
220
226
  ] }),
221
- e.type === "composite-list" && /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
227
+ (e.type === "composite-list" || e.type === "composite-matrix") && /* @__PURE__ */ d(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
222
228
  /* @__PURE__ */ t(F, { id: "composite-list-select-label", children: "Inner Type" }),
223
229
  /* @__PURE__ */ t(
224
230
  _,
@@ -260,7 +266,7 @@ function We({
260
266
  onChange: o
261
267
  }
262
268
  ),
263
- /* @__PURE__ */ m(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
269
+ /* @__PURE__ */ d(C, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
264
270
  /* @__PURE__ */ t(F, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
265
271
  /* @__PURE__ */ t(
266
272
  _,
@@ -275,7 +281,7 @@ function We({
275
281
  }
276
282
  )
277
283
  ] }),
278
- /* @__PURE__ */ m($, { row: !0, sx: { mb: 2 }, children: [
284
+ /* @__PURE__ */ d($, { row: !0, sx: { mb: 2 }, children: [
279
285
  /* @__PURE__ */ t(
280
286
  p,
281
287
  {
@@ -360,7 +366,7 @@ function We({
360
366
  }
361
367
  )
362
368
  ] }),
363
- /* @__PURE__ */ m(ce, { display: "flex", justifyContent: "flex-end", children: [
369
+ /* @__PURE__ */ d(ce, { display: "flex", justifyContent: "flex-end", children: [
364
370
  /* @__PURE__ */ t(Y, { variant: "contained", onClick: h, sx: { marginRight: 2 }, children: "Cancel" }),
365
371
  /* @__PURE__ */ t(
366
372
  Y,
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.65",
4
+ "version": "1.5.67",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",