ywana-core8 0.0.597 → 0.0.600

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 CHANGED
@@ -4641,8 +4641,9 @@ var StringEditor = function StringEditor(_ref7) {
4641
4641
  outlined = _ref7.outlined;
4642
4642
  var id = field.id,
4643
4643
  format = field.format,
4644
- label = field.label,
4645
4644
  options = field.options,
4645
+ _field$required = field.required,
4646
+ required = _field$required === void 0 ? false : _field$required,
4646
4647
  _field$editable = field.editable,
4647
4648
  editable = _field$editable === void 0 ? true : _field$editable,
4648
4649
  _field$predictive = field.predictive,
@@ -4661,6 +4662,8 @@ var StringEditor = function StringEditor(_ref7) {
4661
4662
  }
4662
4663
 
4663
4664
  function renderFormat(format, options) {
4665
+ var label = required ? field.label + " *" : field.label;
4666
+
4664
4667
  switch (format) {
4665
4668
  case FORMATS.IMG:
4666
4669
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -5574,6 +5577,7 @@ var CollectionPage = function CollectionPage(props) {
5574
5577
  _props$canEdit = props.canEdit,
5575
5578
  canEdit = _props$canEdit === void 0 ? false : _props$canEdit,
5576
5579
  searchBy = props.searchBy,
5580
+ addValidator = props.addValidator,
5577
5581
  _props$autosave = props.autosave,
5578
5582
  autosave = _props$autosave === void 0 ? false : _props$autosave,
5579
5583
  _props$delay = props.delay,
@@ -5622,7 +5626,9 @@ var CollectionPage = function CollectionPage(props) {
5622
5626
  site.openDialog( /*#__PURE__*/React__default["default"].createElement(CreateContentDialog, {
5623
5627
  label: "" + name,
5624
5628
  type: schema,
5625
- onOK: onOK
5629
+ onOK: onOK,
5630
+ validator: addValidator,
5631
+ className: className
5626
5632
  }));
5627
5633
  }
5628
5634