@hybridcore/ui 1.5.50 → 1.5.51

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.
@@ -1,21 +1,37 @@
1
- import { jsxs as a, Fragment as t, jsx as r } from "react/jsx-runtime";
2
- import { Box as c, Typography as e } from "@mui/material";
3
- const x = (l, o) => (p) => /* @__PURE__ */ a(t, { children: [
4
- /* @__PURE__ */ a(c, { sx: { mb: 1, maxWidth: 400 }, children: [
5
- /* @__PURE__ */ r(
6
- e,
1
+ import { jsxs as o, Fragment as n, jsx as t } from "react/jsx-runtime";
2
+ import { Box as r, Typography as i } from "@mui/material";
3
+ const x = (a, l, e) => (p) => /* @__PURE__ */ o(n, { children: [
4
+ /* @__PURE__ */ o(r, { sx: { mb: 1 }, children: [
5
+ /* @__PURE__ */ o(
6
+ i,
7
7
  {
8
8
  component: "label",
9
9
  sx: {
10
- display: "block",
10
+ display: "inline-block",
11
11
  color: "#1e262b",
12
- fontSize: "16px"
12
+ fontSize: "16px",
13
+ position: "relative"
13
14
  },
14
- children: l
15
+ children: [
16
+ a,
17
+ l && /* @__PURE__ */ t(
18
+ "span",
19
+ {
20
+ style: {
21
+ position: "absolute",
22
+ top: "-3px",
23
+ right: "-9px",
24
+ fontWeight: "bold",
25
+ fontSize: "16px"
26
+ },
27
+ children: "*"
28
+ }
29
+ )
30
+ ]
15
31
  }
16
32
  ),
17
- o && /* @__PURE__ */ r(
18
- e,
33
+ e && /* @__PURE__ */ t(
34
+ i,
19
35
  {
20
36
  variant: "caption",
21
37
  sx: {
@@ -24,7 +40,7 @@ const x = (l, o) => (p) => /* @__PURE__ */ a(t, { children: [
24
40
  fontSize: "13px",
25
41
  mt: 0.5
26
42
  },
27
- children: o
43
+ children: e
28
44
  }
29
45
  )
30
46
  ] }),
@@ -6,7 +6,7 @@ import "lodash";
6
6
  import "react";
7
7
  import "../../../../hooks/useToggle.js";
8
8
  import "../../../conditional-wrapper/index.js";
9
- import { C as s } from "../../../../index-KcxlW4QD.js";
9
+ import { C as s } from "../../../../index-CCkupzf4.js";
10
10
  import "./styled.js";
11
11
  export {
12
12
  s as default
@@ -3,7 +3,7 @@ import "@mui/icons-material";
3
3
  import "@mui/material";
4
4
  import "dayjs";
5
5
  import "lodash";
6
- import { V as j } from "../../../../index-KcxlW4QD.js";
6
+ import { V as j } from "../../../../index-CCkupzf4.js";
7
7
  import "../../../date-time-picker/index.js";
8
8
  import "../../../geometry-picker/index.js";
9
9
  import "../../../phone-input/index.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as u, Fragment as I, jsxs as _ } from "react/jsx-runtime";
2
2
  import b from "react";
3
- import { V as g } from "../../../../index-KcxlW4QD.js";
3
+ import { V as g } from "../../../../index-CCkupzf4.js";
4
4
  import p from "lodash";
5
5
  import { Box as i } from "@mui/material";
6
6
  function C({
@@ -1,15 +1,15 @@
1
1
  import { jsx as t, jsxs as c, Fragment as Oe } from "react/jsx-runtime";
2
- import Ce from "lodash";
3
- import v, { useRef as Ve } from "react";
2
+ import Le from "lodash";
3
+ import p, { useRef as Ve } from "react";
4
4
  import { useForm as Se, Controller as h } from "react-hook-form";
5
- import { Box as l, Typography as g, TextField as x, FormHelperText as fe, FormGroup as Fe, FormControlLabel as ue, Checkbox as he, Button as I } from "@mui/material";
5
+ import { Box as l, Typography as y, TextField as x, FormHelperText as fe, FormGroup as Fe, FormControlLabel as ue, Checkbox as he, Button as C } from "@mui/material";
6
6
  import { getNestedChildrenFromMap as ke } from "../../utils/ontology.js";
7
7
  import { ConditionalWrapper as m } from "../conditional-wrapper/index.js";
8
- import { Container as Re } from "../container/index.js";
9
- import { DisseminationList as Ee } from "../data-security-selectors/dissemination-list/index.js";
10
- import { SecurityLevel as Pe } from "../data-security-selectors/security-level/index.js";
11
- import { i as De, d as Be } from "../../utils-Bq0ye5vf.js";
12
- import { TreeSelect as Ae } from "../tree-select/index.js";
8
+ import { Container as Ee } from "../container/index.js";
9
+ import { DisseminationList as Pe } from "../data-security-selectors/dissemination-list/index.js";
10
+ import { SecurityLevel as Re } from "../data-security-selectors/security-level/index.js";
11
+ import { i as Be, d as Ae } from "../../utils-Bq0ye5vf.js";
12
+ import { TreeSelect as De } from "../tree-select/index.js";
13
13
  import Ne from "./components/policy-list/index.js";
14
14
  import O from "./components/TopLabelWrapper.js";
15
15
  import _e from "./components/variables/index.js";
@@ -20,26 +20,26 @@ const We = {
20
20
  key_ops: ["encrypt", "decrypt"],
21
21
  kty: "oct"
22
22
  };
23
- function qe(e, ve) {
24
- var E, P, D, B, A, N, _, W, q, $, K, M, U, j, G, H, J, Q, Y, z, X, Z, ee, te, ie, ne, le, ae, de, re, oe, ce, se;
25
- const C = Ve(null), {
23
+ function qe(e, pe) {
24
+ var P, R, B, A, D, N, _, W, q, $, K, M, U, j, G, H, J, Q, Y, z, X, Z, ee, te, ie, ne, le, ae, de, re, oe, ce, se;
25
+ const L = Ve(null), {
26
26
  register: V,
27
- handleSubmit: pe,
27
+ handleSubmit: ve,
28
28
  control: f,
29
- formState: { errors: ge, isDirty: S },
29
+ formState: { errors: ye, isDirty: S },
30
30
  getValues: F,
31
31
  setValue: T,
32
- reset: ye,
32
+ reset: ge,
33
33
  watch: k
34
34
  } = Se({
35
35
  defaultValues: e.defaultValues
36
- }), a = (e == null ? void 0 : e.labelPosition) ?? "default", [be, xe] = v.useState([]), [w, R] = v.useState(), [$e, Te] = v.useState(0), we = v.useMemo(() => {
36
+ }), a = (e == null ? void 0 : e.labelPosition) ?? "default", [be, xe] = p.useState([]), [w, E] = p.useState(), [$e, Te] = p.useState(0), we = p.useMemo(() => {
37
37
  const i = [];
38
38
  return e.mappedTemplates.forEach((n) => {
39
39
  n.creatable || i.push(String(n.id));
40
40
  }), i;
41
41
  }, [e.mappedTemplates]);
42
- v.useEffect(() => {
42
+ p.useEffect(() => {
43
43
  (async () => {
44
44
  const i = { ...e.defaultValues }, n = e.mappedTemplates.get(i.templateId);
45
45
  if (n) {
@@ -48,38 +48,38 @@ function qe(e, ve) {
48
48
  );
49
49
  if (r.length > 0)
50
50
  for (let o = 0; o < r.length; o++) {
51
- const d = r[o], s = Ce.get(i, `variables.${d.propertyId}`);
51
+ const d = r[o], s = Le.get(i, `variables.${d.propertyId}`);
52
52
  if (s && e.keyAuth) {
53
- const u = await De(We), y = await Be(u, String(s));
54
- y.data && (T(`variables.${d.propertyId}`, y.data), Te((b) => b + 1));
53
+ const u = await Be(We), g = await Ae(u, String(s));
54
+ g.data && (T(`variables.${d.propertyId}`, g.data), Te((b) => b + 1));
55
55
  }
56
56
  }
57
57
  }
58
58
  })();
59
59
  }, [e.defaultValues, e.mappedTemplates, e.keyAuth]);
60
- const L = () => {
60
+ const I = () => {
61
61
  const i = F("templateId");
62
- w && R(void 0);
62
+ w && E(void 0);
63
63
  const n = ke(e.mappedTemplates);
64
64
  xe(n);
65
65
  for (const r of e.mappedTemplates.values())
66
66
  if (r.id === i) {
67
- R(r);
67
+ E(r);
68
68
  break;
69
69
  }
70
70
  };
71
- v.useImperativeHandle(ve, () => ({
71
+ p.useImperativeHandle(pe, () => ({
72
72
  requestSubmit() {
73
73
  var i;
74
- (i = C.current) == null || i.requestSubmit();
74
+ (i = L.current) == null || i.requestSubmit();
75
75
  },
76
76
  resetForm() {
77
- ye({
77
+ ge({
78
78
  title: "",
79
79
  description: "",
80
80
  templateId: 0,
81
81
  variables: {}
82
- }), L();
82
+ }), I();
83
83
  },
84
84
  setFormValue(i, n) {
85
85
  T(i, n);
@@ -90,8 +90,8 @@ function qe(e, ve) {
90
90
  isDirty() {
91
91
  return S;
92
92
  }
93
- })), v.useEffect(() => (L(), () => {
94
- }), [e.mappedTemplates]), v.useEffect(() => {
93
+ })), p.useEffect(() => (I(), () => {
94
+ }), [e.mappedTemplates]), p.useEffect(() => {
95
95
  e.onSelectedTemplateChange && e.onSelectedTemplateChange(w);
96
96
  }, [w]);
97
97
  const Ie = () => {
@@ -99,7 +99,7 @@ function qe(e, ve) {
99
99
  e.onCancel(S);
100
100
  return;
101
101
  }
102
- }, p = (i) => {
102
+ }, v = (i) => {
103
103
  var o, d;
104
104
  if (!i) return;
105
105
  const n = (d = (o = e == null ? void 0 : e.fieldOptions) == null ? void 0 : o[i]) == null ? void 0 : d.maxChar;
@@ -110,7 +110,7 @@ function qe(e, ve) {
110
110
  {
111
111
  condition: e.variant === void 0 || e.variant === "inline",
112
112
  wrapper: (i) => /* @__PURE__ */ t(
113
- Re,
113
+ Ee,
114
114
  {
115
115
  disableHeader: !0,
116
116
  sx: { position: "relative", overflow: "visible" },
@@ -120,16 +120,16 @@ function qe(e, ve) {
120
120
  children: /* @__PURE__ */ c(
121
121
  "form",
122
122
  {
123
- ref: C,
124
- onSubmit: pe(e.onSubmit),
123
+ ref: L,
124
+ onSubmit: ve(e.onSubmit),
125
125
  style: { display: "flex", flexDirection: "column" },
126
126
  children: [
127
- !((P = (E = e.fieldOptions) == null ? void 0 : E.title) != null && P.hidden) && /* @__PURE__ */ t(
127
+ !((R = (P = e.fieldOptions) == null ? void 0 : P.title) != null && R.hidden) && /* @__PURE__ */ t(
128
128
  m,
129
129
  {
130
130
  condition: a === "left",
131
131
  wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
132
- /* @__PURE__ */ t(g, { width: "32%", children: "Title *" }),
132
+ /* @__PURE__ */ t(y, { width: "32%", children: "Title *" }),
133
133
  /* @__PURE__ */ t(l, { width: "68%", children: i })
134
134
  ] }),
135
135
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -137,17 +137,17 @@ function qe(e, ve) {
137
137
  m,
138
138
  {
139
139
  condition: a === "top",
140
- wrapper: O("Title *"),
140
+ wrapper: O("Title", !0),
141
141
  children: /* @__PURE__ */ t(
142
142
  x,
143
143
  {
144
144
  label: a === "default" ? "Title *" : void 0,
145
145
  variant: e.inputVariant,
146
- placeholder: ((B = (D = e.fieldOptions) == null ? void 0 : D.title) == null ? void 0 : B.placeholder) ?? "",
147
- inputProps: p("title") ? { maxLength: p("title") } : void 0,
146
+ placeholder: ((A = (B = e.fieldOptions) == null ? void 0 : B.title) == null ? void 0 : A.placeholder) ?? "",
147
+ inputProps: v("title") ? { maxLength: v("title") } : void 0,
148
148
  fullWidth: !0,
149
149
  ...V("title", { required: !0 }),
150
- ...ge.title && {
150
+ ...ye.title && {
151
151
  helperText: "This field is required!",
152
152
  error: !0
153
153
  }
@@ -155,7 +155,7 @@ function qe(e, ve) {
155
155
  )
156
156
  }
157
157
  ),
158
- p("title") && /* @__PURE__ */ t(fe, { sx: { textAlign: "right", mt: 0.5 }, children: `${(A = k("title")) == null ? void 0 : A.length}/${p("title")}` }),
158
+ v("title") && /* @__PURE__ */ t(fe, { sx: { textAlign: "right", mt: 0.5 }, children: `${(D = k("title")) == null ? void 0 : D.length}/${v("title")}` }),
159
159
  e.fieldOptions && ((N = e.fieldOptions.title) == null ? void 0 : N.helperText)
160
160
  ] })
161
161
  }
@@ -165,7 +165,7 @@ function qe(e, ve) {
165
165
  {
166
166
  condition: a === "left",
167
167
  wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
168
- /* @__PURE__ */ t(g, { width: "32%", children: "Description" }),
168
+ /* @__PURE__ */ t(y, { width: "32%", children: "Description" }),
169
169
  /* @__PURE__ */ t(l, { width: "68%", children: i })
170
170
  ] }),
171
171
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -173,12 +173,12 @@ function qe(e, ve) {
173
173
  m,
174
174
  {
175
175
  condition: a === "top",
176
- wrapper: O("Description"),
176
+ wrapper: O("Description", !1),
177
177
  children: /* @__PURE__ */ t(
178
178
  x,
179
179
  {
180
180
  label: a === "default" ? "Description" : void 0,
181
- inputProps: p("description") ? { maxLength: p("description") } : void 0,
181
+ inputProps: v("description") ? { maxLength: v("description") } : void 0,
182
182
  placeholder: (($ = (q = e.fieldOptions) == null ? void 0 : q.description) == null ? void 0 : $.placeholder) ?? "",
183
183
  variant: e.inputVariant,
184
184
  fullWidth: !0,
@@ -189,7 +189,7 @@ function qe(e, ve) {
189
189
  )
190
190
  }
191
191
  ),
192
- p("description") && /* @__PURE__ */ t(fe, { sx: { textAlign: "right", mt: 0.5 }, children: `${(U = k("description")) == null ? void 0 : U.length}/${p(
192
+ v("description") && /* @__PURE__ */ t(fe, { sx: { textAlign: "right", mt: 0.5 }, children: `${(U = k("description")) == null ? void 0 : U.length}/${v(
193
193
  "description"
194
194
  )}` }),
195
195
  e.fieldOptions && ((j = e.fieldOptions.description) == null ? void 0 : j.helperText)
@@ -201,7 +201,7 @@ function qe(e, ve) {
201
201
  {
202
202
  condition: a === "left",
203
203
  wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
204
- /* @__PURE__ */ t(g, { width: "32%", children: "Template" }),
204
+ /* @__PURE__ */ t(y, { width: "32%", children: "Template" }),
205
205
  /* @__PURE__ */ t(l, { width: "68%", children: i })
206
206
  ] }),
207
207
  children: /* @__PURE__ */ c(Fe, { sx: { mb: 2 }, children: [
@@ -209,7 +209,7 @@ function qe(e, ve) {
209
209
  m,
210
210
  {
211
211
  condition: a === "top",
212
- wrapper: O("Template"),
212
+ wrapper: O("Template", !1),
213
213
  children: /* @__PURE__ */ t(
214
214
  h,
215
215
  {
@@ -234,7 +234,7 @@ function qe(e, ve) {
234
234
  );
235
235
  }
236
236
  return /* @__PURE__ */ t(
237
- Ae,
237
+ De,
238
238
  {
239
239
  label: a === "default" ? "Template" : void 0,
240
240
  data: be,
@@ -247,7 +247,7 @@ function qe(e, ve) {
247
247
  value: s ? Number(d) : 0
248
248
  }
249
249
  };
250
- n(u), L();
250
+ n(u), I();
251
251
  }
252
252
  }
253
253
  );
@@ -280,7 +280,7 @@ function qe(e, ve) {
280
280
  {
281
281
  condition: a === "left",
282
282
  wrapper: (s) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
283
- /* @__PURE__ */ t(g, { width: "32%", children: "Alias List" }),
283
+ /* @__PURE__ */ t(y, { width: "32%", children: "Alias List" }),
284
284
  /* @__PURE__ */ t(l, { width: "68%", children: s })
285
285
  ] }),
286
286
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -315,7 +315,7 @@ function qe(e, ve) {
315
315
  {
316
316
  condition: a === "left",
317
317
  wrapper: (o) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
318
- /* @__PURE__ */ t(g, { width: "32%", children: "Policy List" }),
318
+ /* @__PURE__ */ t(y, { width: "32%", children: "Policy List" }),
319
319
  /* @__PURE__ */ t(l, { width: "68%", children: o })
320
320
  ] }),
321
321
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -366,11 +366,11 @@ function qe(e, ve) {
366
366
  if (s.target.files) {
367
367
  const u = new FileReader();
368
368
  u.onload = async (b) => {
369
- const Le = b.target.result.split("base64,")[1];
370
- i(Le);
369
+ const Ce = b.target.result.split("base64,")[1];
370
+ i(Ce);
371
371
  };
372
- const y = s.target.files[0];
373
- T("originalFileName", y.name), T("contentType", y.type), u.readAsDataURL(y);
372
+ const g = s.target.files[0];
373
+ T("originalFileName", g.name), T("contentType", g.type), u.readAsDataURL(g);
374
374
  }
375
375
  };
376
376
  return /* @__PURE__ */ t(
@@ -378,7 +378,7 @@ function qe(e, ve) {
378
378
  {
379
379
  condition: a === "left",
380
380
  wrapper: (s) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
381
- /* @__PURE__ */ t(g, { width: "32%", children: "File to Upload" }),
381
+ /* @__PURE__ */ t(y, { width: "32%", children: "File to Upload" }),
382
382
  /* @__PURE__ */ t(l, { width: "68%", children: s })
383
383
  ] }),
384
384
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -407,7 +407,7 @@ function qe(e, ve) {
407
407
  {
408
408
  condition: a === "left",
409
409
  wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
410
- /* @__PURE__ */ t(g, { width: "32%", children: "Redacted" }),
410
+ /* @__PURE__ */ t(y, { width: "32%", children: "Redacted" }),
411
411
  /* @__PURE__ */ t(l, { width: "68%", children: i })
412
412
  ] }),
413
413
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -434,7 +434,7 @@ function qe(e, ve) {
434
434
  {
435
435
  condition: a === "left",
436
436
  wrapper: (i) => /* @__PURE__ */ c(l, { display: "flex", alignItems: "center", children: [
437
- /* @__PURE__ */ t(g, { width: "32%", children: "Content Encrypted" }),
437
+ /* @__PURE__ */ t(y, { width: "32%", children: "Content Encrypted" }),
438
438
  /* @__PURE__ */ t(l, { width: "68%", children: i })
439
439
  ] }),
440
440
  children: /* @__PURE__ */ c(l, { mb: 2, children: [
@@ -470,7 +470,7 @@ function qe(e, ve) {
470
470
  n(s);
471
471
  };
472
472
  return /* @__PURE__ */ t(
473
- Ee,
473
+ Pe,
474
474
  {
475
475
  selectedIds: o,
476
476
  memberedGroups: e.memberedGroups,
@@ -497,7 +497,7 @@ function qe(e, ve) {
497
497
  n(u);
498
498
  };
499
499
  return /* @__PURE__ */ t(
500
- Pe,
500
+ Re,
501
501
  {
502
502
  value: i || 0,
503
503
  ontologyId: e.ontologyId,
@@ -515,64 +515,59 @@ function qe(e, ve) {
515
515
  }
516
516
  }
517
517
  ) }),
518
- /* @__PURE__ */ c(l, { display: "flex", justifyContent: "space-between", mt: 3, children: [
519
- /* @__PURE__ */ t(
520
- I,
521
- {
522
- color: "primary",
523
- variant: "text",
524
- disabled: e.loading,
525
- sx: { textTransform: "none" },
526
- onClick: Ie,
527
- children: "Cancel"
528
- }
529
- ),
530
- /* @__PURE__ */ c(l, { children: [
531
- e.onRemove !== void 0 && /* @__PURE__ */ t(
532
- I,
533
- {
534
- type: "button",
535
- color: "error",
536
- variant: "contained",
537
- disabled: e.removeLoading || e.loading,
538
- sx: { mr: 2, textTransform: "none" },
539
- onClick: e.onRemove,
540
- children: e.removeLoading ? "Deleting..." : "Delete"
541
- }
542
- ),
543
- e.saveButtons ? e.saveButtons.map((i, n) => /* @__PURE__ */ t(
544
- I,
545
- {
546
- type: "submit",
547
- color: "primary",
548
- variant: "contained",
549
- disabled: e.loading,
550
- startIcon: i.icon,
551
- sx: { ml: 1, textTransform: "none" },
552
- onClick: i.onClick,
553
- children: i.label
554
- },
555
- n
556
- )) : /* @__PURE__ */ t(
557
- I,
558
- {
559
- type: "submit",
560
- color: "primary",
561
- variant: "contained",
562
- disabled: e.loading,
563
- sx: { textTransform: "none" },
564
- children: e.loading ? "Saving..." : "Save"
565
- }
566
- )
567
- ] })
568
- ] })
518
+ /* @__PURE__ */ c(
519
+ l,
520
+ {
521
+ display: "flex",
522
+ justifyContent: "space-between",
523
+ mt: 3,
524
+ width: "100%",
525
+ children: [
526
+ e.onCancel && /* @__PURE__ */ t(
527
+ C,
528
+ {
529
+ color: "primary",
530
+ variant: "text",
531
+ disabled: e.loading,
532
+ sx: { textTransform: "none" },
533
+ onClick: Ie,
534
+ children: "Cancel"
535
+ }
536
+ ),
537
+ /* @__PURE__ */ t(l, { sx: { flex: e.onCancel ? "none" : 1 }, children: e.customSaveButtons ? e.customSaveButtons : e.saveButtons ? e.saveButtons.map((i, n) => /* @__PURE__ */ t(
538
+ C,
539
+ {
540
+ type: "submit",
541
+ color: "primary",
542
+ variant: "contained",
543
+ disabled: e.loading,
544
+ startIcon: i.icon,
545
+ sx: { ml: 1, textTransform: "none" },
546
+ onClick: i.onClick,
547
+ children: i.label
548
+ },
549
+ n
550
+ )) : /* @__PURE__ */ t(
551
+ C,
552
+ {
553
+ type: "submit",
554
+ color: "primary",
555
+ variant: "contained",
556
+ disabled: e.loading,
557
+ sx: { textTransform: "none" },
558
+ children: e.loading ? "Saving..." : "Save"
559
+ }
560
+ ) })
561
+ ]
562
+ }
563
+ )
569
564
  ]
570
565
  }
571
566
  )
572
567
  }
573
568
  );
574
569
  }
575
- const nt = v.forwardRef(qe);
570
+ const nt = p.forwardRef(qe);
576
571
  export {
577
572
  nt as InstanceForm
578
573
  };
@@ -5,7 +5,7 @@ import { DataGrid as fe } from "@mui/x-data-grid";
5
5
  import { useState as G, useEffect as ue } from "react";
6
6
  import h from "lodash";
7
7
  import { d as ye } from "../../ol-lGwSyEIV.js";
8
- import { V as he } from "../../index-KcxlW4QD.js";
8
+ import { V as he } from "../../index-CCkupzf4.js";
9
9
  import { RangeSelector as me } from "../range-selector/index.js";
10
10
  const $e = ({
11
11
  open: F,
@@ -1,72 +1,72 @@
1
- import { jsx as n, jsxs as h, Fragment as _ } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as u, Fragment as _ } from "react/jsx-runtime";
2
2
  import { KeyboardArrowUp as R, KeyboardArrowDown as U, Add as J, LockOutlined as Q } from "@mui/icons-material";
3
- import { Box as W, Typography as s, FormControl as X, FormLabel as Z, FormGroup as z, FormControlLabel as y, Checkbox as P, Button as Y, Chip as p, Dialog as O, DialogTitle as ee, DialogContent as ne, DialogActions as ae, InputAdornment as de, Tooltip as le } from "@mui/material";
3
+ import { Box as M, Typography as s, FormControl as X, FormLabel as Z, FormGroup as z, FormControlLabel as P, Checkbox as y, Button as Y, Chip as O, Dialog as p, DialogTitle as ee, DialogContent as ne, DialogActions as ae, InputAdornment as de, Tooltip as le } from "@mui/material";
4
4
  import H from "dayjs";
5
5
  import x from "lodash";
6
6
  import { useState as E } from "react";
7
- import te from "./hooks/useToggle.js";
7
+ import ce from "./hooks/useToggle.js";
8
8
  import { ConditionalWrapper as o } from "./components/conditional-wrapper/index.js";
9
- import { DateTimePicker as ce } from "./components/date-time-picker/index.js";
9
+ import { DateTimePicker as te } from "./components/date-time-picker/index.js";
10
10
  import { GeometryPicker as ie } from "./components/geometry-picker/index.js";
11
- import { PhoneInput as re } from "./components/phone-input/index.js";
12
- import S from "./components/instance-form/components/TopLabelWrapper.js";
13
- import { B as m } from "./Box-SSMZuKnS.js";
11
+ import { PhoneInput as me } from "./components/phone-input/index.js";
12
+ import W from "./components/instance-form/components/TopLabelWrapper.js";
13
+ import { B as h } from "./Box-SSMZuKnS.js";
14
14
  import { T as G } from "./TextField-CdKnj6de.js";
15
- import { F as me } from "./FormControlLabel-BNT5EI0b.js";
16
- import { C as he } from "./Checkbox-B0P8LhCl.js";
17
- import { F as ue, I as oe } from "./InputLabel-ClDXuWBr.js";
15
+ import { F as he } from "./FormControlLabel-BNT5EI0b.js";
16
+ import { C as ue } from "./Checkbox-B0P8LhCl.js";
17
+ import { F as re, I as oe } from "./InputLabel-ClDXuWBr.js";
18
18
  import { S as se } from "./Select-DuyWoyoF.js";
19
19
  import { M as Ie } from "./MenuItem-Lcjh1XlV.js";
20
20
  import { Container as fe, Values as ge, MiniButton as we } from "./components/instance-form/components/composite-list/styled.js";
21
21
  function Ce({
22
- property: u,
22
+ property: r,
23
23
  mapboxAccessToken: e,
24
24
  value: l,
25
25
  variant: w = "outlined",
26
- labelPosition: t = "default",
26
+ labelPosition: c = "default",
27
27
  size: I = "medium",
28
28
  onChange: T
29
29
  }) {
30
30
  var b, k, A;
31
- const a = te(!1), [f, v] = E(), [V, q] = E(!1), F = 10, B = (c) => {
32
- v(x.get(c, u.propertyId));
31
+ const a = ce(!1), [f, v] = E(), [V, S] = E(!1), F = 10, B = (t) => {
32
+ v(x.get(t, r.propertyId));
33
33
  }, N = () => {
34
34
  T([...l || [], f]), v(""), a.action.close();
35
- }, $ = (c) => () => {
35
+ }, $ = (t) => () => {
36
36
  if (l) {
37
37
  const i = [...l];
38
- i.splice(c, 1), T(i);
38
+ i.splice(t, 1), T(i);
39
39
  }
40
- }, M = (c) => {
41
- const { value: i, checked: C } = c.target;
40
+ }, q = (t) => {
41
+ const { value: i, checked: C } = t.target;
42
42
  let g = x.isArray(l) ? l : [];
43
43
  C ? g.push(i) : g = g.filter((d) => d !== i), T(g);
44
44
  };
45
- if (((k = (b = u.dataTypeInfo) == null ? void 0 : b.innerType) == null ? void 0 : k.type) === "enum") {
46
- const { enumValues: c } = u.dataTypeInfo.innerType;
45
+ if (((k = (b = r.dataTypeInfo) == null ? void 0 : b.innerType) == null ? void 0 : k.type) === "enum") {
46
+ const { enumValues: t } = r.dataTypeInfo.innerType;
47
47
  return /* @__PURE__ */ n(
48
48
  o,
49
49
  {
50
- condition: t === "left",
51
- wrapper: (i) => /* @__PURE__ */ h(W, { display: "flex", alignItems: "center", children: [
52
- /* @__PURE__ */ n(s, { width: "32%", children: u.name }),
53
- /* @__PURE__ */ n(W, { width: "68%", children: i })
50
+ condition: c === "left",
51
+ wrapper: (i) => /* @__PURE__ */ u(M, { display: "flex", alignItems: "center", children: [
52
+ /* @__PURE__ */ n(s, { width: "32%", children: r.name }),
53
+ /* @__PURE__ */ n(M, { width: "68%", children: i })
54
54
  ] }),
55
- children: /* @__PURE__ */ h(_, { children: [
56
- /* @__PURE__ */ h(X, { fullWidth: !0, component: "fieldset", variant: w, children: [
57
- t === "default" && /* @__PURE__ */ n(Z, { component: "legend", sx: { mb: 1 }, children: u.name }),
58
- /* @__PURE__ */ n(z, { children: c && c.length > 0 ? c.slice(0, V ? 9999 : F).map((i, C) => /* @__PURE__ */ n(
59
- y,
55
+ children: /* @__PURE__ */ u(_, { children: [
56
+ /* @__PURE__ */ u(X, { fullWidth: !0, component: "fieldset", variant: w, children: [
57
+ c === "default" && /* @__PURE__ */ n(Z, { component: "legend", sx: { mb: 1 }, children: r.name }),
58
+ /* @__PURE__ */ n(z, { children: t && t.length > 0 ? t.slice(0, V ? 9999 : F).map((i, C) => /* @__PURE__ */ n(
59
+ P,
60
60
  {
61
61
  label: i,
62
62
  control: /* @__PURE__ */ n(
63
- P,
63
+ y,
64
64
  {
65
- name: u.propertyId,
65
+ name: r.propertyId,
66
66
  value: i,
67
67
  size: "small",
68
68
  checked: x.isArray(l) ? l.includes(i) : !1,
69
- onChange: M
69
+ onChange: q
70
70
  }
71
71
  ),
72
72
  componentsProps: {
@@ -78,13 +78,13 @@ function Ce({
78
78
  C
79
79
  )) : /* @__PURE__ */ n(s, { variant: "caption", mb: 1, children: "No enum values!" }) })
80
80
  ] }),
81
- x.isArray(c) && c.length > F && /* @__PURE__ */ h(
81
+ x.isArray(t) && t.length > F && /* @__PURE__ */ u(
82
82
  Y,
83
83
  {
84
84
  size: "small",
85
85
  sx: { p: 0, textTransform: "none" },
86
86
  endIcon: V ? /* @__PURE__ */ n(R, {}) : /* @__PURE__ */ n(U, {}),
87
- onClick: () => q((i) => !i),
87
+ onClick: () => S((i) => !i),
88
88
  children: [
89
89
  "Show ",
90
90
  V ? "Less" : "More"
@@ -95,23 +95,23 @@ function Ce({
95
95
  }
96
96
  );
97
97
  }
98
- return /* @__PURE__ */ h(_, { children: [
98
+ return /* @__PURE__ */ u(_, { children: [
99
99
  /* @__PURE__ */ n(
100
100
  o,
101
101
  {
102
- condition: t === "left",
103
- wrapper: (c) => /* @__PURE__ */ h(W, { display: "flex", alignItems: "center", children: [
104
- /* @__PURE__ */ n(s, { width: "32%", children: u.name }),
105
- /* @__PURE__ */ n(W, { width: "68%", children: c })
102
+ condition: c === "left",
103
+ wrapper: (t) => /* @__PURE__ */ u(M, { display: "flex", alignItems: "center", children: [
104
+ /* @__PURE__ */ n(s, { width: "32%", children: r.name }),
105
+ /* @__PURE__ */ n(M, { width: "68%", children: t })
106
106
  ] }),
107
- children: /* @__PURE__ */ h(fe, { variant: w, children: [
108
- t === "default" && /* @__PURE__ */ n(s, { children: u.name }),
109
- /* @__PURE__ */ n(ge, { children: x.isArray(l) && l.map((c, i) => {
107
+ children: /* @__PURE__ */ u(fe, { variant: w, children: [
108
+ c === "default" && /* @__PURE__ */ n(s, { children: r.name }),
109
+ /* @__PURE__ */ n(ge, { children: x.isArray(l) && l.map((t, i) => {
110
110
  var C, g;
111
111
  return /* @__PURE__ */ n(
112
- p,
112
+ O,
113
113
  {
114
- label: ((g = (C = u.dataTypeInfo) == null ? void 0 : C.innerType) == null ? void 0 : g.type) === "date" ? H(c).format("DD/MM/YYYY HH:mm:ss") : c,
114
+ label: ((g = (C = r.dataTypeInfo) == null ? void 0 : C.innerType) == null ? void 0 : g.type) === "date" ? H(t).format("DD/MM/YYYY HH:mm:ss") : t,
115
115
  size: I,
116
116
  onDelete: $(i)
117
117
  },
@@ -130,8 +130,8 @@ function Ce({
130
130
  ] })
131
131
  }
132
132
  ),
133
- /* @__PURE__ */ h(
134
- O,
133
+ /* @__PURE__ */ u(
134
+ p,
135
135
  {
136
136
  open: a.state.isOpen,
137
137
  onClose: a.action.close,
@@ -139,20 +139,20 @@ function Ce({
139
139
  fullWidth: !0,
140
140
  children: [
141
141
  /* @__PURE__ */ n(ee, { children: "Add List Value" }),
142
- /* @__PURE__ */ n(ne, { children: (A = u.dataTypeInfo) != null && A.innerType ? /* @__PURE__ */ n(
142
+ /* @__PURE__ */ n(ne, { children: (A = r.dataTypeInfo) != null && A.innerType ? /* @__PURE__ */ n(
143
143
  xe,
144
144
  {
145
145
  mapboxAccessToken: e,
146
146
  property: {
147
- ...u,
147
+ ...r,
148
148
  name: "Value",
149
- type: u.dataTypeInfo.innerType.type
149
+ type: r.dataTypeInfo.innerType.type
150
150
  },
151
151
  value: f,
152
152
  onChange: B
153
153
  }
154
154
  ) : null }),
155
- /* @__PURE__ */ h(ae, { children: [
155
+ /* @__PURE__ */ u(ae, { children: [
156
156
  /* @__PURE__ */ n(
157
157
  Y,
158
158
  {
@@ -170,30 +170,30 @@ function Ce({
170
170
  ] });
171
171
  }
172
172
  function xe({
173
- mapboxAccessToken: u,
173
+ mapboxAccessToken: r,
174
174
  property: e,
175
175
  value: l,
176
176
  variant: w = "standard",
177
- labelPosition: t = "default",
177
+ labelPosition: c = "default",
178
178
  size: I = "medium",
179
179
  defaultExtent: T,
180
180
  fieldOptions: a,
181
181
  // keyAuth,
182
182
  onChange: f
183
183
  }) {
184
- var M, b, k, A, c, i, C, g;
184
+ var q, b, k, A, t, i, C, g;
185
185
  const v = (d) => {
186
186
  const D = d.target.value.split(",").map((j) => j.trimStart());
187
187
  f({
188
188
  [e.propertyId]: D
189
189
  });
190
190
  }, V = (d) => {
191
- const { name: r, type: D, checked: j, value: K } = d.target;
191
+ const { name: m, type: D, checked: j, value: K } = d.target;
192
192
  let L = K;
193
193
  e.type === "double" && (L = L.replace(",", "."), L = L.replace(/[^\d.-]+/g, "")), f({
194
- [r]: D === "checkbox" ? j : L
194
+ [m]: D === "checkbox" ? j : L
195
195
  });
196
- }, q = (d) => {
196
+ }, S = (d) => {
197
197
  f({
198
198
  [e.propertyId]: d
199
199
  });
@@ -201,17 +201,17 @@ function xe({
201
201
  f({
202
202
  [e.propertyId]: d.target.value
203
203
  });
204
- }, B = (d) => (r) => {
204
+ }, B = (d) => (m) => {
205
205
  f({
206
- [d]: r
206
+ [d]: m
207
207
  });
208
- }, N = (d) => (r) => {
208
+ }, N = (d) => (m) => {
209
209
  f({
210
- [d]: r
210
+ [d]: m
211
211
  });
212
- }, $ = (d) => (r) => {
212
+ }, $ = (d) => (m) => {
213
213
  f({
214
- [d]: r
214
+ [d]: m
215
215
  });
216
216
  };
217
217
  if (a && a[e.propertyId] && a[e.propertyId].component)
@@ -228,23 +228,24 @@ function xe({
228
228
  return /* @__PURE__ */ n(
229
229
  o,
230
230
  {
231
- condition: t === "left",
232
- wrapper: (d) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
231
+ condition: c === "left",
232
+ wrapper: (d) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
233
233
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
234
- /* @__PURE__ */ n(m, { width: "68%", children: d })
234
+ /* @__PURE__ */ n(h, { width: "68%", children: d })
235
235
  ] }),
236
236
  children: /* @__PURE__ */ n(
237
237
  o,
238
238
  {
239
- condition: t === "top",
240
- wrapper: S(
241
- e.name,
242
- (M = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : M.description
239
+ condition: c === "top",
240
+ wrapper: W(
241
+ e == null ? void 0 : e.name,
242
+ e == null ? void 0 : e.required,
243
+ (q = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : q.description
243
244
  ),
244
245
  children: /* @__PURE__ */ n(
245
246
  G,
246
247
  {
247
- label: t === "default" ? e.name : void 0,
248
+ label: c === "default" ? e.name : void 0,
248
249
  placeholder: ((b = a == null ? void 0 : a[e.propertyId]) == null ? void 0 : b.placeholder) ?? "",
249
250
  name: e.propertyId,
250
251
  required: e.required,
@@ -276,28 +277,29 @@ function xe({
276
277
  return /* @__PURE__ */ n(
277
278
  o,
278
279
  {
279
- condition: t === "left",
280
- wrapper: (r) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
280
+ condition: c === "left",
281
+ wrapper: (m) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
281
282
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
282
- /* @__PURE__ */ n(m, { width: "68%", children: r })
283
+ /* @__PURE__ */ n(h, { width: "68%", children: m })
283
284
  ] }),
284
285
  children: /* @__PURE__ */ n(
285
286
  o,
286
287
  {
287
- condition: t === "top",
288
- wrapper: S(
288
+ condition: c === "top",
289
+ wrapper: W(
289
290
  e.name,
291
+ e == null ? void 0 : e.required,
290
292
  (k = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : k.description
291
293
  ),
292
294
  children: /* @__PURE__ */ n(
293
- ce,
295
+ te,
294
296
  {
295
- label: t === "default" ? e.name : void 0,
297
+ label: c === "default" ? e.name : void 0,
296
298
  value: d,
297
299
  variant: w,
298
300
  size: I,
299
301
  name: e.propertyId,
300
- onChange: q,
302
+ onChange: S,
301
303
  ...a && a[e.propertyId] && {
302
304
  minDate: a[e.propertyId].minDate
303
305
  }
@@ -313,23 +315,24 @@ function xe({
313
315
  return e.defaultValue && (d = x.isArray(e.defaultValue) ? l.join(", ") : e.defaultValue), l && (d = x.isArray(l) ? l.join(",") : l), /* @__PURE__ */ n(
314
316
  o,
315
317
  {
316
- condition: t === "left",
317
- wrapper: (r) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
318
+ condition: c === "left",
319
+ wrapper: (m) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
318
320
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
319
- /* @__PURE__ */ n(m, { width: "68%", children: r })
321
+ /* @__PURE__ */ n(h, { width: "68%", children: m })
320
322
  ] }),
321
323
  children: /* @__PURE__ */ n(
322
324
  o,
323
325
  {
324
- condition: t === "top",
325
- wrapper: S(
326
+ condition: c === "top",
327
+ wrapper: W(
326
328
  e.name,
329
+ e == null ? void 0 : e.required,
327
330
  (A = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : A.description
328
331
  ),
329
332
  children: /* @__PURE__ */ n(
330
333
  G,
331
334
  {
332
- label: t === "default" ? e.name : void 0,
335
+ label: c === "default" ? e.name : void 0,
333
336
  name: e.propertyId,
334
337
  value: d,
335
338
  onChange: v,
@@ -356,16 +359,16 @@ function xe({
356
359
  return /* @__PURE__ */ n(
357
360
  o,
358
361
  {
359
- condition: t === "left",
360
- wrapper: (d) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
362
+ condition: c === "left",
363
+ wrapper: (d) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
361
364
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
362
- /* @__PURE__ */ n(m, { width: "68%", children: d })
365
+ /* @__PURE__ */ n(h, { width: "68%", children: d })
363
366
  ] }),
364
367
  children: /* @__PURE__ */ n(
365
- me,
368
+ he,
366
369
  {
367
370
  control: /* @__PURE__ */ n(
368
- he,
371
+ ue,
369
372
  {
370
373
  name: e.propertyId,
371
374
  checked: !!(l ?? e.defaultValue ?? !1),
@@ -373,42 +376,43 @@ function xe({
373
376
  size: I
374
377
  }
375
378
  ),
376
- label: t === "default" ? e.name : void 0
379
+ label: c === "default" ? e.name : void 0
377
380
  }
378
381
  )
379
382
  }
380
383
  );
381
384
  if (e.type === "enum") {
382
385
  let d = [];
383
- return (c = e.dataTypeInfo) != null && c.enumValues && (d = e.dataTypeInfo.enumValues), (C = (i = e.dataTypeInfo) == null ? void 0 : i.innerType) != null && C.enumValues && (d = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ n(
386
+ return (t = e.dataTypeInfo) != null && t.enumValues && (d = e.dataTypeInfo.enumValues), (C = (i = e.dataTypeInfo) == null ? void 0 : i.innerType) != null && C.enumValues && (d = e.dataTypeInfo.innerType.enumValues), /* @__PURE__ */ n(
384
387
  o,
385
388
  {
386
- condition: t === "left",
387
- wrapper: (r) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
389
+ condition: c === "left",
390
+ wrapper: (m) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
388
391
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
389
- /* @__PURE__ */ n(m, { width: "68%", children: r })
392
+ /* @__PURE__ */ n(h, { width: "68%", children: m })
390
393
  ] }),
391
394
  children: /* @__PURE__ */ n(
392
395
  o,
393
396
  {
394
- condition: t === "top",
395
- wrapper: S(
397
+ condition: c === "top",
398
+ wrapper: W(
396
399
  e.name,
400
+ e == null ? void 0 : e.required,
397
401
  (g = a == null ? void 0 : a[e == null ? void 0 : e.propertyId]) == null ? void 0 : g.description
398
402
  ),
399
- children: /* @__PURE__ */ h(
400
- ue,
403
+ children: /* @__PURE__ */ u(
404
+ re,
401
405
  {
402
406
  fullWidth: !0,
403
407
  variant: w,
404
408
  size: I,
405
409
  required: e.required,
406
410
  children: [
407
- t === "default" && /* @__PURE__ */ n(oe, { id: `${e.propertyId}-label`, children: e.name }),
411
+ c === "default" && /* @__PURE__ */ n(oe, { id: `${e.propertyId}-label`, children: e.name }),
408
412
  /* @__PURE__ */ n(
409
413
  se,
410
414
  {
411
- label: t === "default" ? e.name : void 0,
415
+ label: c === "default" ? e.name : void 0,
412
416
  name: e.name,
413
417
  labelId: `${e.propertyId}-label`,
414
418
  id: e.propertyId,
@@ -419,7 +423,7 @@ function xe({
419
423
  tabIndex: a[e.propertyId].order
420
424
  }
421
425
  },
422
- children: d.map((r, D) => /* @__PURE__ */ n(Ie, { value: r, children: r }, D))
426
+ children: d.map((m, D) => /* @__PURE__ */ n(Ie, { value: m, children: m }, D))
423
427
  }
424
428
  )
425
429
  ]
@@ -433,16 +437,16 @@ function xe({
433
437
  return e.type === "geometry" ? /* @__PURE__ */ n(
434
438
  o,
435
439
  {
436
- condition: t === "left",
437
- wrapper: (d) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
440
+ condition: c === "left",
441
+ wrapper: (d) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
438
442
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
439
- /* @__PURE__ */ n(m, { width: "68%", children: d })
443
+ /* @__PURE__ */ n(h, { width: "68%", children: d })
440
444
  ] }),
441
- children: /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
445
+ children: /* @__PURE__ */ n(h, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
442
446
  ie,
443
447
  {
444
- mapboxAccessToken: u,
445
- label: t === "default" ? e.name : void 0,
448
+ mapboxAccessToken: r,
449
+ label: c === "default" ? e.name : void 0,
446
450
  value: l ?? e.defaultValue ?? "",
447
451
  defaultExtent: T,
448
452
  variant: w,
@@ -453,30 +457,30 @@ function xe({
453
457
  ) : e.type === "phone-number" ? /* @__PURE__ */ n(
454
458
  o,
455
459
  {
456
- condition: t === "left",
457
- wrapper: (d) => /* @__PURE__ */ h(m, { display: "flex", alignItems: "center", children: [
460
+ condition: c === "left",
461
+ wrapper: (d) => /* @__PURE__ */ u(h, { display: "flex", alignItems: "center", children: [
458
462
  /* @__PURE__ */ n(s, { width: "32%", children: e.name }),
459
- /* @__PURE__ */ n(m, { width: "68%", children: d })
463
+ /* @__PURE__ */ n(h, { width: "68%", children: d })
460
464
  ] }),
461
- children: /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
462
- re,
465
+ children: /* @__PURE__ */ n(h, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
466
+ me,
463
467
  {
464
- label: t === "default" ? e.name : void 0,
468
+ label: c === "default" ? e.name : void 0,
465
469
  placeholder: "Enter phone number",
466
470
  value: l ?? e.defaultValue ?? "",
467
471
  onChange: N(e.propertyId)
468
472
  }
469
473
  ) })
470
474
  }
471
- ) : e.type === "composite-list" ? /* @__PURE__ */ n(m, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
475
+ ) : e.type === "composite-list" ? /* @__PURE__ */ n(h, { sx: { width: "100%" }, children: /* @__PURE__ */ n(
472
476
  Ce,
473
477
  {
474
478
  property: e,
475
479
  value: l ?? e.defaultValue ?? "",
476
480
  variant: w,
477
- labelPosition: t,
481
+ labelPosition: c,
478
482
  size: I,
479
- mapboxAccessToken: u,
483
+ mapboxAccessToken: r,
480
484
  onChange: $(e.propertyId)
481
485
  }
482
486
  ) }) : /* @__PURE__ */ n(_, {});
package/dist/main.d.ts CHANGED
@@ -340,6 +340,10 @@ K extends
340
340
  *
341
341
  */
342
342
  loading: boolean;
343
+ /**
344
+ *
345
+ */
346
+ customSaveButtons?: React.ReactNode;
343
347
  /**
344
348
  *
345
349
  */
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.50",
4
+ "version": "1.5.51",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",