@guillotinaweb/react-gmi 0.26.0 → 0.27.0

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.
@@ -3399,7 +3399,7 @@ var InputList = forwardRef(function (_ref, ref) {
3399
3399
 
3400
3400
  return /*#__PURE__*/createElement("div", {
3401
3401
  className: "control"
3402
- }, /*#__PURE__*/createElement("div", {
3402
+ }, (value != null ? value : []).length > 0 && /*#__PURE__*/createElement("div", {
3403
3403
  className: "tags"
3404
3404
  }, value.map(function (tag, index) {
3405
3405
  return /*#__PURE__*/createElement("div", {
@@ -4579,7 +4579,9 @@ var EditComponent = React.forwardRef(function (_ref, ref) {
4579
4579
  }
4580
4580
  }
4581
4581
 
4582
- return /*#__PURE__*/React.createElement(InputList, _extends({
4582
+ return /*#__PURE__*/React.createElement(React.Fragment, null, rest.placeholder && /*#__PURE__*/React.createElement("label", {
4583
+ className: "label"
4584
+ }, rest.placeholder), /*#__PURE__*/React.createElement(InputList, _extends({
4583
4585
  value: val || [],
4584
4586
  className: className,
4585
4587
  onChange: function onChange(ev) {
@@ -4587,7 +4589,7 @@ var EditComponent = React.forwardRef(function (_ref, ref) {
4587
4589
  },
4588
4590
  ref: ref,
4589
4591
  dataTest: dataTest
4590
- }, rest));
4592
+ }, rest)));
4591
4593
  } else if ((schema == null ? void 0 : schema.widget) === 'file') {
4592
4594
  return /*#__PURE__*/React.createElement(FileUpload, _extends({
4593
4595
  onChange: function onChange(ev) {
@@ -6116,13 +6118,10 @@ function IWorkflow() {
6116
6118
  var getStateTitle = function getStateTitle() {
6117
6119
  var _vocabulary$data, _vocabulary$data$item;
6118
6120
 
6119
- console.log('getStateTitle', vocabulary);
6120
-
6121
6121
  if (((_vocabulary$data = vocabulary.data) == null ? void 0 : (_vocabulary$data$item = _vocabulary$data.items) == null ? void 0 : _vocabulary$data$item.length) > 0) {
6122
6122
  var vocabularyValue = vocabulary.data.items.find(function (item) {
6123
6123
  return item.token === currentState;
6124
6124
  });
6125
- console.log('state title', vocabularyValue, intl.locale);
6126
6125
 
6127
6126
  if (vocabularyValue) {
6128
6127
  var translatedValue = get$1(vocabularyValue, "title.translated_title." + intl.locale, null);
@@ -6142,7 +6141,6 @@ function IWorkflow() {
6142
6141
  return currentState;
6143
6142
  };
6144
6143
 
6145
- console.log('Workflow log');
6146
6144
  if (definition === undefined) return null;
6147
6145
  return /*#__PURE__*/React.createElement(React.Fragment, null, workflowAction && /*#__PURE__*/React.createElement(Confirm, {
6148
6146
  loading: loading,