ode-explorer 1.4.2-develop.202405211013 → 1.4.2-develop.202405211100
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.
- package/dist/index.js +20 -6
- package/dist/version.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63611,8 +63611,8 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
63611
63611
|
onMenuItemKeyDown,
|
|
63612
63612
|
onMenuItemMouseEnter,
|
|
63613
63613
|
onMenuItemClick
|
|
63614
|
-
} = itemProps, handleOnClick = () => {
|
|
63615
|
-
onClick2 == null || onClick2(), type2 === "action" && onMenuItemClick();
|
|
63614
|
+
} = itemProps, handleOnClick = (event) => {
|
|
63615
|
+
onClick2 == null || onClick2(event), type2 === "action" && onMenuItemClick();
|
|
63616
63616
|
}, id2 = reactExports.useId(), dropdownItem = clsx("dropdown-item", {
|
|
63617
63617
|
focus: isFocused === id2
|
|
63618
63618
|
});
|
|
@@ -64058,7 +64058,8 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
64058
64058
|
className,
|
|
64059
64059
|
...restProps
|
|
64060
64060
|
}, ref2) => {
|
|
64061
|
-
|
|
64061
|
+
var _a2, _b2;
|
|
64062
|
+
const [content, setContent] = reactExports.useState(((_a2 = restProps.defaultValue) == null ? void 0 : _a2.toString()) || ((_b2 = restProps.value) == null ? void 0 : _b2.toString())), {
|
|
64062
64063
|
id: id2,
|
|
64063
64064
|
isRequired,
|
|
64064
64065
|
isReadOnly,
|
|
@@ -64075,7 +64076,16 @@ const TextArea = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
64075
64076
|
"form-control-plaintext": isReadOnly,
|
|
64076
64077
|
"no-validation-icon": noValidationIcon
|
|
64077
64078
|
}, className);
|
|
64078
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
64079
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
64080
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { ref: ref2, id: id2, className: classes2, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps, value: content, onChange: (event) => {
|
|
64081
|
+
setContent(event.target.value);
|
|
64082
|
+
} }),
|
|
64083
|
+
restProps.maxLength && content && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "small text-gray-700 p-2 text-end", children: [
|
|
64084
|
+
content.length,
|
|
64085
|
+
" / ",
|
|
64086
|
+
restProps.maxLength
|
|
64087
|
+
] })
|
|
64088
|
+
] });
|
|
64079
64089
|
}), TextArea$1 = TextArea;
|
|
64080
64090
|
function useTreeItemEvents(nodeId, label, expanded, setExpanded, onItemSelect, onItemFold, onItemUnfold, onItemFocus, onItemBlur) {
|
|
64081
64091
|
const handleItemClick = (event) => {
|
|
@@ -64848,15 +64858,19 @@ const useThumb = ({
|
|
|
64848
64858
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("title") }),
|
|
64849
64859
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Input$1, { type: "text", defaultValue: isUpdating ? resource == null ? void 0 : resource.name : "", ...register("title", {
|
|
64850
64860
|
required: true,
|
|
64861
|
+
maxLength: 60,
|
|
64851
64862
|
pattern: {
|
|
64852
64863
|
value: /[^ ]/,
|
|
64853
64864
|
message: "invalid title"
|
|
64854
64865
|
}
|
|
64855
|
-
}), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true })
|
|
64866
|
+
}), placeholder: t2("explorer.resource.editModal.title.placeholder"), size: "md", "aria-required": true, maxLength: 60 })
|
|
64856
64867
|
] }),
|
|
64857
64868
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "description", isOptional: true, children: [
|
|
64858
64869
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { children: t2("description") }),
|
|
64859
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, {
|
|
64870
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TextArea$1, { value: resource == null ? void 0 : resource.description, ...register("description", {
|
|
64871
|
+
required: false,
|
|
64872
|
+
maxLength: 400
|
|
64873
|
+
}), placeholder: t2("explorer.resource.editModal.description.placeholder"), size: "md", maxLength: 400 })
|
|
64860
64874
|
] })
|
|
64861
64875
|
] })
|
|
64862
64876
|
] }),
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT 21/05/2024
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 21/05/2024 11:01:15
|