ywana-core8 0.0.600 → 0.0.603

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.umd.js CHANGED
@@ -5216,6 +5216,12 @@
5216
5216
  if (hidden) return null;
5217
5217
 
5218
5218
  switch (type) {
5219
+ case TYPES.BOOLEAN:
5220
+ return /*#__PURE__*/React__default["default"].createElement(BooleanViewer, {
5221
+ field: field,
5222
+ value: value
5223
+ });
5224
+
5219
5225
  case TYPES.STRING:
5220
5226
  return /*#__PURE__*/React__default["default"].createElement(StringViewer, {
5221
5227
  field: field,
@@ -5263,6 +5269,26 @@
5263
5269
  });
5264
5270
  })));
5265
5271
  };
5272
+ /**
5273
+ * Boolean Viewer
5274
+ */
5275
+
5276
+
5277
+ var BooleanViewer = function BooleanViewer(props) {
5278
+ var field = props.field,
5279
+ value = props.value;
5280
+ var label = field.label,
5281
+ options = field.options;
5282
+ var iconName = value === true ? "check_box" : "check_box_outline_blank";
5283
+ var icon = /*#__PURE__*/React__default["default"].createElement(Icon, {
5284
+ icon: iconName
5285
+ });
5286
+ return /*#__PURE__*/React__default["default"].createElement(Property, {
5287
+ label: label,
5288
+ value: icon,
5289
+ options: options
5290
+ });
5291
+ };
5266
5292
  /**
5267
5293
  * StringViewer
5268
5294
  */
@@ -8788,7 +8814,8 @@
8788
8814
  var field = schema[key];
8789
8815
  return {
8790
8816
  id: field.id,
8791
- label: field.label
8817
+ label: field.label,
8818
+ type: field.type
8792
8819
  };
8793
8820
  });
8794
8821
  var rows = all.filter(function (item) {