@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 >
|
|
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(
|
|
@@ -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
|
|
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
|
|
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:
|
|
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:
|
|
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(
|
|
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(
|
|
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(
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|