@hybridcore/ui 1.5.61 → 1.5.63

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.
@@ -119,7 +119,7 @@ const g = ({
119
119
  my: 2
120
120
  },
121
121
  onClick: c,
122
- children: /* @__PURE__ */ e("small", { children: typeof l == "string" ? l.length > 310 ? `${l.substring(0, 310)}...` : l : null })
122
+ children: /* @__PURE__ */ e("small", { children: typeof l == "string" ? l.length > 350 ? `${l.substring(0, 350)}...` : l : null })
123
123
  }
124
124
  ),
125
125
  i ? /* @__PURE__ */ e(
@@ -41,6 +41,7 @@ const K = ({
41
41
  {
42
42
  variant: "contained",
43
43
  size: "small",
44
+ disabled: t.length === 0,
44
45
  onClick: h,
45
46
  children: "Edit Mapping"
46
47
  }
@@ -5,12 +5,12 @@ import { useForm as P, Controller as l } from "react-hook-form";
5
5
  import { CatalogueInstanceSelector as O } from "./components/catalogue-instance-selector/index.js";
6
6
  import j from "./components/property-list/index.js";
7
7
  import K from "./components/recognition-property-list/index.js";
8
- import { FormLabel as L, Button as b } from "@mui/material";
8
+ import { FormLabel as L, Button as g } from "@mui/material";
9
9
  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 g } from "../../property-list-form-D77cAJ24.js";
13
+ import { F as h } from "../../property-list-form-D77cAJ24.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";
@@ -20,7 +20,7 @@ function B(e, x) {
20
20
  handleSubmit: T,
21
21
  control: i,
22
22
  formState: { errors: v },
23
- getValues: h,
23
+ getValues: b,
24
24
  reset: V
25
25
  } = P({
26
26
  defaultValues: e.defaultValues
@@ -31,7 +31,7 @@ function B(e, x) {
31
31
  ...o,
32
32
  label: o.name,
33
33
  value: o.templateKey,
34
- checked: h("parent") === o.templateKey
34
+ checked: b("parent") === o.templateKey
35
35
  });
36
36
  return _(a, !1);
37
37
  }, S = () => {
@@ -44,6 +44,7 @@ function B(e, x) {
44
44
  }
45
45
  };
46
46
  return f.useImperativeHandle(x, () => ({
47
+ getValues: b,
47
48
  resetForm() {
48
49
  V();
49
50
  }
@@ -98,7 +99,7 @@ function B(e, x) {
98
99
  ...s("version")
99
100
  }
100
101
  ),
101
- /* @__PURE__ */ n(g, { sx: { mb: 2 }, children: /* @__PURE__ */ n(
102
+ /* @__PURE__ */ n(h, { sx: { mb: 2 }, children: /* @__PURE__ */ n(
102
103
  l,
103
104
  {
104
105
  name: "parent",
@@ -170,7 +171,7 @@ function B(e, x) {
170
171
  )
171
172
  }
172
173
  ),
173
- /* @__PURE__ */ u(g, { row: !0, sx: { mb: 2 }, children: [
174
+ /* @__PURE__ */ u(h, { row: !0, sx: { mb: 2 }, children: [
174
175
  /* @__PURE__ */ n(
175
176
  d,
176
177
  {
@@ -242,7 +243,7 @@ function B(e, x) {
242
243
  }
243
244
  )
244
245
  ] }),
245
- /* @__PURE__ */ u(g, { children: [
246
+ /* @__PURE__ */ u(h, { children: [
246
247
  /* @__PURE__ */ n(L, { children: "Icon" }),
247
248
  /* @__PURE__ */ n(
248
249
  l,
@@ -288,7 +289,7 @@ function B(e, x) {
288
289
  K,
289
290
  {
290
291
  list: t || [],
291
- getFormValues: h,
292
+ getFormValues: b,
292
293
  onChange: a
293
294
  }
294
295
  )
@@ -296,7 +297,7 @@ function B(e, x) {
296
297
  ),
297
298
  /* @__PURE__ */ u(p, { display: "flex", justifyContent: "space-between", mt: 3, children: [
298
299
  /* @__PURE__ */ n(
299
- b,
300
+ g,
300
301
  {
301
302
  color: "primary",
302
303
  variant: "text",
@@ -307,7 +308,7 @@ function B(e, x) {
307
308
  }
308
309
  ),
309
310
  /* @__PURE__ */ n(p, { children: e.saveButtons ? e.saveButtons.map((t, a) => /* @__PURE__ */ n(
310
- b,
311
+ g,
311
312
  {
312
313
  type: "submit",
313
314
  color: "primary",
@@ -320,7 +321,7 @@ function B(e, x) {
320
321
  },
321
322
  a
322
323
  )) : /* @__PURE__ */ n(
323
- b,
324
+ g,
324
325
  {
325
326
  type: "submit",
326
327
  color: "primary",
package/dist/main.d.ts CHANGED
@@ -930,7 +930,8 @@ export declare const TemplateFilters: React.FC<TemplateFilterProps>;
930
930
 
931
931
  export declare const TemplateForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends ONTOLOGY.CreateObjectDTO | ONTOLOGY.CreateEventDTO | ONTOLOGY.CreateFileDTO | ONTOLOGY.CreateAgentDTO | ONTOLOGY.UpdateObjectDTO | ONTOLOGY.UpdateEventDTO | ONTOLOGY.UpdateFileDTO | ONTOLOGY.UpdateAgentDTO>(props: TemplateFormProps<T, K> & default_2.RefAttributes<TemplateFormHandle>) => default_2.ReactNode | null;
932
932
 
933
- declare interface TemplateFormHandle {
933
+ export declare interface TemplateFormHandle {
934
+ getValues: (key?: string) => any;
934
935
  resetForm: () => void;
935
936
  }
936
937
 
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.61",
4
+ "version": "1.5.63",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",