ywana-core8 0.0.595 → 0.0.596
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 +31 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +31 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +31 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/ContentViewer.js +22 -4
package/dist/index.umd.js
CHANGED
@@ -5211,10 +5211,9 @@
|
|
5211
5211
|
|
5212
5212
|
switch (type) {
|
5213
5213
|
case TYPES.STRING:
|
5214
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
5215
|
-
|
5216
|
-
value: value
|
5217
|
-
options: field.options
|
5214
|
+
return /*#__PURE__*/React__default["default"].createElement(StringViewer, {
|
5215
|
+
field: field,
|
5216
|
+
value: value
|
5218
5217
|
});
|
5219
5218
|
|
5220
5219
|
case TYPES.ENTITY:
|
@@ -5258,6 +5257,34 @@
|
|
5258
5257
|
});
|
5259
5258
|
})));
|
5260
5259
|
};
|
5260
|
+
/**
|
5261
|
+
* StringViewer
|
5262
|
+
*/
|
5263
|
+
|
5264
|
+
|
5265
|
+
var StringViewer = function StringViewer(props) {
|
5266
|
+
var field = props.field,
|
5267
|
+
value = props.value;
|
5268
|
+
var format = field.format,
|
5269
|
+
label = field.label,
|
5270
|
+
options = field.options;
|
5271
|
+
|
5272
|
+
switch (format) {
|
5273
|
+
case FORMATS.IMG:
|
5274
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
5275
|
+
className: "img-field"
|
5276
|
+
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
5277
|
+
src: value
|
5278
|
+
}));
|
5279
|
+
|
5280
|
+
default:
|
5281
|
+
return /*#__PURE__*/React__default["default"].createElement(Property, {
|
5282
|
+
label: label,
|
5283
|
+
value: value,
|
5284
|
+
options: options
|
5285
|
+
});
|
5286
|
+
}
|
5287
|
+
};
|
5261
5288
|
/**
|
5262
5289
|
* Array Viewer
|
5263
5290
|
*/
|