ywana-core8 0.0.528 → 0.0.531
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.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +16 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +2 -2
- package/src/domain/ContentEditor.js +8 -1
package/dist/index.modern.js
CHANGED
@@ -4324,6 +4324,20 @@ var StringEditor = function StringEditor(_ref6) {
|
|
4324
4324
|
|
4325
4325
|
function renderFormat(format, options) {
|
4326
4326
|
switch (format) {
|
4327
|
+
case FORMATS.IMG:
|
4328
|
+
return /*#__PURE__*/React.createElement("div", {
|
4329
|
+
className: "img-field"
|
4330
|
+
}, /*#__PURE__*/React.createElement("img", {
|
4331
|
+
src: value
|
4332
|
+
}), /*#__PURE__*/React.createElement(TextField, {
|
4333
|
+
outlined: outlined,
|
4334
|
+
id: id,
|
4335
|
+
label: label,
|
4336
|
+
value: value,
|
4337
|
+
onChange: change,
|
4338
|
+
readOnly: !editable
|
4339
|
+
}));
|
4340
|
+
|
4327
4341
|
case FORMATS.COLOR:
|
4328
4342
|
return /*#__PURE__*/React.createElement(ColorField, {
|
4329
4343
|
id: id,
|
@@ -4970,7 +4984,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4970
4984
|
label: "Reload",
|
4971
4985
|
action: reload
|
4972
4986
|
}), renderActions()), /*#__PURE__*/React.createElement("menu", {
|
4973
|
-
className: "collection-page"
|
4987
|
+
className: "collection-page " + className
|
4974
4988
|
}, /*#__PURE__*/React.createElement(Header, {
|
4975
4989
|
title: /*#__PURE__*/React.createElement(Text, null, "Lista de ", name)
|
4976
4990
|
}), canFilter ? /*#__PURE__*/React.createElement(CollectionFilters, {
|
@@ -4985,7 +4999,7 @@ var CollectionPage = function CollectionPage(props) {
|
|
4985
4999
|
onSelect: onSelect
|
4986
5000
|
})), /*#__PURE__*/React.createElement("main", {
|
4987
5001
|
key: id,
|
4988
|
-
className: "collection-page"
|
5002
|
+
className: "collection-page " + className
|
4989
5003
|
}, /*#__PURE__*/React.createElement(CollectionEditor, {
|
4990
5004
|
icon: icon,
|
4991
5005
|
schema: schema,
|