@hybridcore/ui 1.4.5 → 1.4.7

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.
@@ -0,0 +1,335 @@
1
+ import { jsxs as h, Fragment as D, jsx as n } from "react/jsx-runtime";
2
+ import I from "lodash";
3
+ import N from "dayjs";
4
+ import { FormControl as W, FormLabel as j, FormGroup as Y, FormControlLabel as $, Checkbox as v, Typography as P, Button as L, Chip as O, Dialog as _, DialogTitle as E, DialogContent as G, DialogActions as M, InputAdornment as H, Tooltip as K } from "@mui/material";
5
+ import { Container as R, Values as U, MiniButton as q } from "./components/instance-form/components/composite-list/styled.js";
6
+ import { KeyboardArrowUp as J, KeyboardArrowDown as Q, Add as X, LockOutlined as Z } from "@mui/icons-material";
7
+ import z from "./hooks/useToggle.js";
8
+ import { GeometryPicker as ee } from "./components/geometry-picker/index.js";
9
+ import { PhoneInput as ne } from "./components/phone-input/index.js";
10
+ import { DateTimePicker as le } from "./components/date-time-picker/index.js";
11
+ import { T as S } from "./TextField-D87qTh1k.js";
12
+ import { B as T } from "./Box-BPyg-Ybm.js";
13
+ import { F as te } from "./FormControlLabel-D9KFjcIx.js";
14
+ import { C as ae } from "./Checkbox-qy3cjvnb.js";
15
+ import { F as oe, I as ie } from "./InputLabel-CWkW8NtU.js";
16
+ import { S as de } from "./Select-ClaBvSqf.js";
17
+ import { M as me } from "./MenuItem-D-INSvZa.js";
18
+ import { useState as B } from "react";
19
+ function ce({
20
+ property: i,
21
+ mapboxAccessToken: e,
22
+ value: l,
23
+ variant: r = "outlined",
24
+ size: m = "medium",
25
+ onChange: d
26
+ }) {
27
+ var g, V, t;
28
+ const f = z(!1), [c, p] = B(), [C, w] = B(!1), x = 10, A = (a) => {
29
+ p(I.get(a, i.propertyId));
30
+ }, y = () => {
31
+ d([...l || [], c]), p(""), f.action.close();
32
+ }, F = (a) => () => {
33
+ if (l) {
34
+ const o = [...l];
35
+ o.splice(a, 1), d(o);
36
+ }
37
+ }, k = (a) => {
38
+ const { value: o, checked: s } = a.target;
39
+ let u = I.isArray(l) ? l : [];
40
+ s ? u.push(o) : u = u.filter((b) => b !== o), d(u);
41
+ };
42
+ if (((V = (g = i.dataTypeInfo) == null ? void 0 : g.innerType) == null ? void 0 : V.type) === "enum") {
43
+ const { enumValues: a } = i.dataTypeInfo.innerType;
44
+ return /* @__PURE__ */ h(D, { children: [
45
+ /* @__PURE__ */ h(W, { fullWidth: !0, component: "fieldset", variant: r, children: [
46
+ /* @__PURE__ */ n(j, { component: "legend", sx: { mb: 1 }, children: i.name }),
47
+ /* @__PURE__ */ n(Y, { children: a && a.length > 0 ? a.slice(0, C ? 9999 : x).map((o, s) => /* @__PURE__ */ n(
48
+ $,
49
+ {
50
+ label: o,
51
+ control: /* @__PURE__ */ n(
52
+ v,
53
+ {
54
+ name: i.propertyId,
55
+ value: o,
56
+ size: "small",
57
+ checked: I.isArray(l) ? l.includes(o) : !1,
58
+ onChange: k
59
+ }
60
+ ),
61
+ componentsProps: {
62
+ typography: {
63
+ variant: "body2"
64
+ }
65
+ }
66
+ },
67
+ s
68
+ )) : /* @__PURE__ */ n(P, { variant: "caption", mb: 1, children: "No enum values!" }) })
69
+ ] }),
70
+ I.isArray(a) && a.length > x && /* @__PURE__ */ h(
71
+ L,
72
+ {
73
+ size: "small",
74
+ sx: { p: 0, textTransform: "none" },
75
+ endIcon: C ? /* @__PURE__ */ n(J, {}) : /* @__PURE__ */ n(Q, {}),
76
+ onClick: () => w((o) => !o),
77
+ children: [
78
+ "Show ",
79
+ C ? "Less" : "More"
80
+ ]
81
+ }
82
+ )
83
+ ] });
84
+ }
85
+ return /* @__PURE__ */ h(D, { children: [
86
+ /* @__PURE__ */ h(R, { variant: r, children: [
87
+ /* @__PURE__ */ n(P, { children: i.name }),
88
+ /* @__PURE__ */ n(U, { children: I.isArray(l) && l.map((a, o) => {
89
+ var s, u;
90
+ return /* @__PURE__ */ n(
91
+ O,
92
+ {
93
+ label: ((u = (s = i.dataTypeInfo) == null ? void 0 : s.innerType) == null ? void 0 : u.type) === "date" ? N(a).format("DD/MM/YYYY HH:mm:ss") : a,
94
+ size: m,
95
+ onDelete: F(o)
96
+ },
97
+ o
98
+ );
99
+ }) }),
100
+ /* @__PURE__ */ n(
101
+ q,
102
+ {
103
+ startIcon: /* @__PURE__ */ n(X, {}),
104
+ variant: "text",
105
+ onClick: f.action.open,
106
+ children: "Add"
107
+ }
108
+ )
109
+ ] }),
110
+ /* @__PURE__ */ h(
111
+ _,
112
+ {
113
+ open: f.state.isOpen,
114
+ onClose: f.action.close,
115
+ maxWidth: "sm",
116
+ fullWidth: !0,
117
+ children: [
118
+ /* @__PURE__ */ n(E, { children: "Add List Value" }),
119
+ /* @__PURE__ */ n(G, { children: (t = i.dataTypeInfo) != null && t.innerType ? /* @__PURE__ */ n(
120
+ se,
121
+ {
122
+ mapboxAccessToken: e,
123
+ property: {
124
+ ...i,
125
+ name: "Value",
126
+ type: i.dataTypeInfo.innerType.type
127
+ },
128
+ value: c,
129
+ onChange: A
130
+ }
131
+ ) : null }),
132
+ /* @__PURE__ */ h(M, { children: [
133
+ /* @__PURE__ */ n(
134
+ L,
135
+ {
136
+ variant: "contained",
137
+ color: "inherit",
138
+ onClick: f.action.close,
139
+ children: "Cancel"
140
+ }
141
+ ),
142
+ /* @__PURE__ */ n(L, { variant: "contained", color: "primary", onClick: y, children: "Ok" })
143
+ ] })
144
+ ]
145
+ }
146
+ )
147
+ ] });
148
+ }
149
+ function se({
150
+ mapboxAccessToken: i,
151
+ property: e,
152
+ value: l,
153
+ variant: r = "standard",
154
+ size: m = "medium",
155
+ disableMargin: d = !1,
156
+ defaultExtent: f,
157
+ // keyAuth,
158
+ onChange: c
159
+ }) {
160
+ var k, g, V;
161
+ const p = (t) => {
162
+ const o = t.target.value.split(",").map((s) => s.trimStart());
163
+ c({
164
+ [e.propertyId]: o
165
+ });
166
+ }, C = (t) => {
167
+ const { name: a, type: o, checked: s, value: u } = t.target;
168
+ let b = u;
169
+ e.type === "double" && (b = b.replace(",", "."), b = b.replace(/[^\d.-]+/g, "")), c({
170
+ [a]: o === "checkbox" ? s : b
171
+ });
172
+ }, w = (t) => {
173
+ c({
174
+ [e.propertyId]: t
175
+ });
176
+ }, x = (t) => {
177
+ c({
178
+ [e.propertyId]: t.target.value
179
+ });
180
+ }, A = (t) => (a) => {
181
+ c({
182
+ [t]: a
183
+ });
184
+ }, y = (t) => (a) => {
185
+ c({
186
+ [t]: a
187
+ });
188
+ }, F = (t) => (a) => {
189
+ c({
190
+ [t]: a
191
+ });
192
+ };
193
+ if ([
194
+ "string",
195
+ "integer",
196
+ "double",
197
+ "text",
198
+ "long",
199
+ "byte",
200
+ "bank-account"
201
+ ].includes(e.type))
202
+ return /* @__PURE__ */ n(
203
+ S,
204
+ {
205
+ label: e.name,
206
+ name: e.propertyId,
207
+ value: l ?? e.defaultValue ?? "",
208
+ defaultValue: l,
209
+ onChange: C,
210
+ variant: r,
211
+ type: "text",
212
+ multiline: e.type === "text",
213
+ disabled: !e.editable,
214
+ fullWidth: !0,
215
+ sx: { mb: d ? 0 : 2 },
216
+ InputProps: {
217
+ size: m,
218
+ ...e.privacyPreservationMethod === "ENCRYPTION" ? {
219
+ endAdornment: /* @__PURE__ */ n(H, { position: "end", children: /* @__PURE__ */ n(K, { title: "Encrypted Field", children: /* @__PURE__ */ n(Z, {}) }) })
220
+ } : {}
221
+ }
222
+ }
223
+ );
224
+ if (e.type === "date") {
225
+ const t = l !== void 0 ? N(l).format() : l;
226
+ return /* @__PURE__ */ n(T, { mb: d ? 0 : 2, children: /* @__PURE__ */ n(
227
+ le,
228
+ {
229
+ label: e.name,
230
+ value: t,
231
+ variant: r,
232
+ size: m,
233
+ name: e.propertyId,
234
+ onChange: w
235
+ }
236
+ ) });
237
+ }
238
+ if (e.type === "list") {
239
+ let t = "";
240
+ return e.defaultValue && (t = I.isArray(e.defaultValue) ? l.join(", ") : e.defaultValue), l && (t = I.isArray(l) ? l.join(",") : l), /* @__PURE__ */ n(
241
+ S,
242
+ {
243
+ label: e.name,
244
+ name: e.propertyId,
245
+ value: t,
246
+ onChange: p,
247
+ variant: r,
248
+ disabled: !e.editable,
249
+ fullWidth: !0,
250
+ helperText: m === "small" ? null : "Add list values with the comma (,) separated string",
251
+ sx: { mb: d ? 0 : 2 },
252
+ InputProps: {
253
+ size: m,
254
+ placeholder: m === "small" ? "Add list values with the comma (,) separated string" : ""
255
+ }
256
+ }
257
+ );
258
+ }
259
+ if (e.type === "boolean")
260
+ return /* @__PURE__ */ n(T, { mb: d ? 0 : 2, children: /* @__PURE__ */ n(
261
+ te,
262
+ {
263
+ control: /* @__PURE__ */ n(
264
+ ae,
265
+ {
266
+ name: e.propertyId,
267
+ checked: !!l,
268
+ onChange: C,
269
+ size: m
270
+ }
271
+ ),
272
+ label: e.name
273
+ }
274
+ ) });
275
+ if (e.type === "enum") {
276
+ let t = [];
277
+ return (k = e.dataTypeInfo) != null && k.enumValues && (t = e.dataTypeInfo.enumValues), (V = (g = e.dataTypeInfo) == null ? void 0 : g.innerType) != null && V.enumValues && (t = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ h(
278
+ oe,
279
+ {
280
+ fullWidth: !0,
281
+ variant: r,
282
+ sx: { mb: d ? 0 : 2 },
283
+ size: m,
284
+ children: [
285
+ /* @__PURE__ */ n(ie, { id: `${e.propertyId}-label`, children: e.name }),
286
+ /* @__PURE__ */ n(
287
+ de,
288
+ {
289
+ label: e.name,
290
+ name: e.name,
291
+ labelId: `${e.propertyId}-label`,
292
+ id: e.propertyId,
293
+ value: l ?? "",
294
+ onChange: x,
295
+ children: t.map((a, o) => /* @__PURE__ */ n(me, { value: a, children: a }, o))
296
+ }
297
+ )
298
+ ]
299
+ }
300
+ );
301
+ }
302
+ return e.type === "geometry" ? /* @__PURE__ */ n(T, { sx: { mb: d ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
303
+ ee,
304
+ {
305
+ mapboxAccessToken: i,
306
+ label: e.name,
307
+ value: l ?? e.defaultValue ?? "",
308
+ defaultExtent: f,
309
+ variant: r,
310
+ onChange: A(e.propertyId)
311
+ }
312
+ ) }) : e.type === "phone-number" ? /* @__PURE__ */ n(T, { sx: { mb: d ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
313
+ ne,
314
+ {
315
+ label: e.name,
316
+ placeholder: "Enter phone number",
317
+ value: l ?? e.defaultValue ?? "",
318
+ onChange: y(e.propertyId)
319
+ }
320
+ ) }) : e.type === "composite-list" ? /* @__PURE__ */ n(T, { sx: { mb: d ? 0 : 2, width: "100%" }, children: /* @__PURE__ */ n(
321
+ ce,
322
+ {
323
+ property: e,
324
+ value: l ?? e.defaultValue ?? "",
325
+ variant: r,
326
+ size: m,
327
+ mapboxAccessToken: i,
328
+ onChange: F(e.propertyId)
329
+ }
330
+ ) }) : /* @__PURE__ */ n(D, {});
331
+ }
332
+ export {
333
+ ce as C,
334
+ se as V
335
+ };
package/dist/main.d.ts CHANGED
@@ -517,6 +517,7 @@ declare interface Props {
517
517
  declare interface Props_10 {
518
518
  values: FV.TemplateFilter[];
519
519
  templates: Map<string | number, ONTOLOGY.TemplateType>;
520
+ inputVariant?: "standard" | "outlined" | "filled";
520
521
  onChange(values: FV.TemplateFilter[]): void;
521
522
  }
522
523
 
@@ -1,10 +1,10 @@
1
- import K, { jsx as t, jsxs as c, Fragment as J } from "react/jsx-runtime";
1
+ import K, { jsx as t, jsxs as m, Fragment as J } from "react/jsx-runtime";
2
2
  import * as Q from "react";
3
3
  import F from "react";
4
4
  import X from "lodash";
5
5
  import { r as Z, i as ee } from "./createSvgIcon-Cfm1LkEe.js";
6
6
  import { DATA_TYPES as R, COORDINATE_FORMAT as te, PRIVACY_PRESERVATION_METHOD as Y } from "./constants/index.js";
7
- import { T as b } from "./TextField-D87qTh1k.js";
7
+ import { T as h } from "./TextField-D87qTh1k.js";
8
8
  import { f as re, F as w, I as C } from "./InputLabel-CWkW8NtU.js";
9
9
  import { S as P } from "./Select-ClaBvSqf.js";
10
10
  import { M as _ } from "./MenuItem-D-INSvZa.js";
@@ -12,10 +12,10 @@ import { _ as M, a as ae } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
12
12
  import { P as n } from "./createStyled-BzvgQjjR.js";
13
13
  import { g as oe, u as le, c as ne, a as ie } from "./useThemeProps-uYx_RkOH.js";
14
14
  import { g as se, s as de } from "./styled-LNCprp4n.js";
15
- import { u as me } from "./useFormControl-CatNKXAi.js";
16
- import { F as f } from "./FormControlLabel-D9KFjcIx.js";
17
- import { C as y } from "./Checkbox-qy3cjvnb.js";
18
- import { B as ce } from "./Box-BPyg-Ybm.js";
15
+ import { u as ce } from "./useFormControl-CatNKXAi.js";
16
+ import { F as p } from "./FormControlLabel-D9KFjcIx.js";
17
+ import { C as f } from "./Checkbox-qy3cjvnb.js";
18
+ import { B as me } from "./Box-BPyg-Ybm.js";
19
19
  import { B as $ } from "./Button-DLwB_sKd.js";
20
20
  function ue(a) {
21
21
  return se("MuiFormGroup", a);
@@ -24,20 +24,20 @@ oe("MuiFormGroup", ["root", "row", "error"]);
24
24
  const pe = ["className", "row"], fe = (a) => {
25
25
  const {
26
26
  classes: i,
27
- row: m,
27
+ row: c,
28
28
  error: s
29
29
  } = a;
30
30
  return ie({
31
- root: ["root", m && "row", s && "error"]
31
+ root: ["root", c && "row", s && "error"]
32
32
  }, ue, i);
33
33
  }, ye = de("div", {
34
34
  name: "MuiFormGroup",
35
35
  slot: "Root",
36
36
  overridesResolver: (a, i) => {
37
37
  const {
38
- ownerState: m
38
+ ownerState: c
39
39
  } = a;
40
- return [i.root, m.row && i.row];
40
+ return [i.root, c.row && i.row];
41
41
  }
42
42
  })(({
43
43
  ownerState: a
@@ -47,26 +47,26 @@ const pe = ["className", "row"], fe = (a) => {
47
47
  flexWrap: "wrap"
48
48
  }, a.row && {
49
49
  flexDirection: "row"
50
- })), z = /* @__PURE__ */ Q.forwardRef(function(i, m) {
50
+ })), z = /* @__PURE__ */ Q.forwardRef(function(i, c) {
51
51
  const s = le({
52
52
  props: i,
53
53
  name: "MuiFormGroup"
54
54
  }), {
55
- className: v,
55
+ className: b,
56
56
  row: e = !1
57
- } = s, h = ae(s, pe), u = me(), T = re({
57
+ } = s, y = ae(s, pe), u = ce(), v = re({
58
58
  props: s,
59
59
  muiFormControl: u,
60
60
  states: ["error"]
61
61
  }), o = M({}, s, {
62
62
  row: e,
63
- error: T.error
63
+ error: v.error
64
64
  }), g = fe(o);
65
65
  return /* @__PURE__ */ t(ye, M({
66
- className: ne(g.root, v),
66
+ className: ne(g.root, b),
67
67
  ownerState: o,
68
- ref: m
69
- }, h));
68
+ ref: c
69
+ }, y));
70
70
  });
71
71
  process.env.NODE_ENV !== "production" && (z.propTypes = {
72
72
  // ----------------------------- Warning --------------------------------
@@ -119,46 +119,46 @@ function We({
119
119
  temporal: !1,
120
120
  unique: !1
121
121
  },
122
- disablePropertyId: m,
122
+ disablePropertyId: c,
123
123
  onSubmit: s,
124
- onCancel: v
124
+ onCancel: b
125
125
  }) {
126
126
  var D, k, E, S, j, O, W, N, G, V, A, U, B, L;
127
- const [e, h] = F.useState(i), [u, T] = F.useState({
127
+ const [e, y] = F.useState(i), [u, v] = F.useState({
128
128
  name: !1
129
129
  }), o = (r) => {
130
- var x, I;
130
+ var T, x;
131
131
  const l = r.target.name;
132
132
  let d = r.target.type === "checkbox" ? r.target.checked : r.target.value;
133
- if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (d = d.split(",")), ((I = (x = e.dataTypeInfo) == null ? void 0 : x.innerType) == null ? void 0 : I.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (d = d.split(",").map((p) => p.trim())), l.includes(".")) {
134
- let p = { ...e };
135
- X.set(p, l, d), h(p);
133
+ if (e.type === "enum" && l === "dataTypeInfo.enumValues" && (d = d.split(",")), ((x = (T = e.dataTypeInfo) == null ? void 0 : T.innerType) == null ? void 0 : x.type) === "enum" && l === "dataTypeInfo.innerType.enumValues" && (d = d.split(",")), l.includes(".")) {
134
+ let I = { ...e };
135
+ X.set(I, l, d), y(I);
136
136
  return;
137
137
  }
138
- h((p) => ({
139
- ...p,
138
+ y((I) => ({
139
+ ...I,
140
140
  [l]: d
141
141
  }));
142
142
  }, g = () => {
143
143
  if (!e.name) {
144
- T({ ...u, name: !0 });
144
+ v({ ...u, name: !0 });
145
145
  return;
146
146
  }
147
147
  s(e);
148
148
  };
149
- return F.useEffect(() => (u.name && e.name && T({ ...u, name: !1 }), () => {
149
+ return F.useEffect(() => (u.name && e.name && v({ ...u, name: !1 }), () => {
150
150
  }), [e.name]), F.useEffect(() => {
151
151
  if (!["date", "coordinate", "composite-list", "enum"].includes(e.type)) {
152
152
  if (e.dataTypeInfo) {
153
- const { coordinateFormat: r, datePattern: l, innerType: d, enumValues: x } = e.dataTypeInfo;
154
- (r || l || d || x) && h((I) => ({ ...I, dataTypeInfo: {} }));
153
+ const { coordinateFormat: r, datePattern: l, innerType: d, enumValues: T } = e.dataTypeInfo;
154
+ (r || l || d || T) && y((x) => ({ ...x, dataTypeInfo: {} }));
155
155
  }
156
156
  return () => {
157
157
  };
158
158
  }
159
- }, [e.type]), /* @__PURE__ */ c(J, { children: [
159
+ }, [e.type]), /* @__PURE__ */ m(J, { children: [
160
160
  /* @__PURE__ */ t(
161
- b,
161
+ h,
162
162
  {
163
163
  label: "Name",
164
164
  name: "name",
@@ -175,19 +175,19 @@ function We({
175
175
  }
176
176
  ),
177
177
  /* @__PURE__ */ t(
178
- b,
178
+ h,
179
179
  {
180
180
  label: "Property ID",
181
181
  name: "propertyId",
182
182
  variant: a,
183
183
  fullWidth: !0,
184
- disabled: m,
184
+ disabled: c,
185
185
  sx: { mb: 2 },
186
186
  value: e.propertyId,
187
187
  onChange: o
188
188
  }
189
189
  ),
190
- /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
190
+ /* @__PURE__ */ m(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
191
191
  /* @__PURE__ */ t(C, { id: "type-select-label", children: "Type" }),
192
192
  /* @__PURE__ */ t(
193
193
  P,
@@ -203,7 +203,7 @@ function We({
203
203
  )
204
204
  ] }),
205
205
  e.type === "date" && /* @__PURE__ */ t(
206
- b,
206
+ h,
207
207
  {
208
208
  label: "Date Format",
209
209
  name: "dataTypeInfo.datePattern",
@@ -214,7 +214,7 @@ function We({
214
214
  onChange: o
215
215
  }
216
216
  ),
217
- e.type === "coordinate" && /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
217
+ e.type === "coordinate" && /* @__PURE__ */ m(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
218
218
  /* @__PURE__ */ t(C, { id: "coordinate-format-select-label", children: "Cordinate Format" }),
219
219
  /* @__PURE__ */ t(
220
220
  P,
@@ -229,7 +229,7 @@ function We({
229
229
  }
230
230
  )
231
231
  ] }),
232
- e.type === "composite-list" && /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
232
+ e.type === "composite-list" && /* @__PURE__ */ m(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
233
233
  /* @__PURE__ */ t(C, { id: "composite-list-select-label", children: "Inner Type" }),
234
234
  /* @__PURE__ */ t(
235
235
  P,
@@ -247,7 +247,7 @@ function We({
247
247
  )
248
248
  ] }),
249
249
  (e.type === "enum" || ((O = (j = e.dataTypeInfo) == null ? void 0 : j.innerType) == null ? void 0 : O.type) === "enum") && /* @__PURE__ */ t(
250
- b,
250
+ h,
251
251
  {
252
252
  label: "Enum Values",
253
253
  name: ((N = (W = e.dataTypeInfo) == null ? void 0 : W.innerType) == null ? void 0 : N.type) === "enum" ? "dataTypeInfo.innerType.enumValues" : "dataTypeInfo.enumValues",
@@ -260,7 +260,7 @@ function We({
260
260
  }
261
261
  ),
262
262
  /* @__PURE__ */ t(
263
- b,
263
+ h,
264
264
  {
265
265
  label: "Default Value",
266
266
  name: "defaultValue",
@@ -271,7 +271,7 @@ function We({
271
271
  onChange: o
272
272
  }
273
273
  ),
274
- /* @__PURE__ */ c(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
274
+ /* @__PURE__ */ m(w, { fullWidth: !0, variant: a, sx: { mb: 2 }, children: [
275
275
  /* @__PURE__ */ t(C, { id: "privacy-method-label", children: "Privacy Preservation Method" }),
276
276
  /* @__PURE__ */ t(
277
277
  P,
@@ -286,13 +286,13 @@ function We({
286
286
  }
287
287
  )
288
288
  ] }),
289
- /* @__PURE__ */ c(z, { row: !0, sx: { mb: 2 }, children: [
289
+ /* @__PURE__ */ m(z, { row: !0, sx: { mb: 2 }, children: [
290
290
  /* @__PURE__ */ t(
291
- f,
291
+ p,
292
292
  {
293
293
  label: "Required",
294
294
  control: /* @__PURE__ */ t(
295
- y,
295
+ f,
296
296
  {
297
297
  name: "required",
298
298
  checked: e.required,
@@ -303,11 +303,11 @@ function We({
303
303
  }
304
304
  ),
305
305
  /* @__PURE__ */ t(
306
- f,
306
+ p,
307
307
  {
308
308
  label: "Editable",
309
309
  control: /* @__PURE__ */ t(
310
- y,
310
+ f,
311
311
  {
312
312
  name: "editable",
313
313
  checked: e.editable,
@@ -318,11 +318,11 @@ function We({
318
318
  }
319
319
  ),
320
320
  /* @__PURE__ */ t(
321
- f,
321
+ p,
322
322
  {
323
323
  label: "Visible",
324
324
  control: /* @__PURE__ */ t(
325
- y,
325
+ f,
326
326
  {
327
327
  name: "visible",
328
328
  checked: e.visible,
@@ -333,19 +333,19 @@ function We({
333
333
  }
334
334
  ),
335
335
  /* @__PURE__ */ t(
336
- f,
336
+ p,
337
337
  {
338
338
  label: "Unique",
339
- control: /* @__PURE__ */ t(y, { name: "unique", checked: e.unique, onChange: o }),
339
+ control: /* @__PURE__ */ t(f, { name: "unique", checked: e.unique, onChange: o }),
340
340
  sx: { width: "30%" }
341
341
  }
342
342
  ),
343
343
  /* @__PURE__ */ t(
344
- f,
344
+ p,
345
345
  {
346
346
  label: "Distinctive",
347
347
  control: /* @__PURE__ */ t(
348
- y,
348
+ f,
349
349
  {
350
350
  name: "distinctive",
351
351
  checked: e.distinctive,
@@ -356,11 +356,11 @@ function We({
356
356
  }
357
357
  ),
358
358
  /* @__PURE__ */ t(
359
- f,
359
+ p,
360
360
  {
361
361
  label: "Temporal",
362
362
  control: /* @__PURE__ */ t(
363
- y,
363
+ f,
364
364
  {
365
365
  name: "temporal",
366
366
  checked: e.temporal,
@@ -371,8 +371,8 @@ function We({
371
371
  }
372
372
  )
373
373
  ] }),
374
- /* @__PURE__ */ c(ce, { display: "flex", justifyContent: "flex-end", children: [
375
- /* @__PURE__ */ t($, { variant: "contained", onClick: v, sx: { marginRight: 2 }, children: "Cancel" }),
374
+ /* @__PURE__ */ m(me, { display: "flex", justifyContent: "flex-end", children: [
375
+ /* @__PURE__ */ t($, { variant: "contained", onClick: b, sx: { marginRight: 2 }, children: "Cancel" }),
376
376
  /* @__PURE__ */ t(
377
377
  $,
378
378
  {
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.5",
4
+ "version": "1.4.7",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",