@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.
@@ -2742,7 +2742,7 @@ const InputList = forwardRef(({
2742
2742
 
2743
2743
  return /*#__PURE__*/createElement("div", {
2744
2744
  className: "control"
2745
- }, /*#__PURE__*/createElement("div", {
2745
+ }, (value != null ? value : []).length > 0 && /*#__PURE__*/createElement("div", {
2746
2746
  className: "tags"
2747
2747
  }, value.map((tag, index) => /*#__PURE__*/createElement("div", {
2748
2748
  key: `input_list_${tag}_${index}`,
@@ -3776,13 +3776,15 @@ const EditComponent = React.forwardRef((_ref, ref) => {
3776
3776
  }
3777
3777
  }
3778
3778
 
3779
- return /*#__PURE__*/React.createElement(InputList, _extends({
3779
+ return /*#__PURE__*/React.createElement(React.Fragment, null, rest.placeholder && /*#__PURE__*/React.createElement("label", {
3780
+ className: "label"
3781
+ }, rest.placeholder), /*#__PURE__*/React.createElement(InputList, _extends({
3780
3782
  value: val || [],
3781
3783
  className: className,
3782
3784
  onChange: ev => setValue(ev),
3783
3785
  ref: ref,
3784
3786
  dataTest: dataTest
3785
- }, rest));
3787
+ }, rest)));
3786
3788
  } else if ((schema == null ? void 0 : schema.widget) === 'file') {
3787
3789
  return /*#__PURE__*/React.createElement(FileUpload, _extends({
3788
3790
  onChange: ev => setValue(ev),
@@ -4707,11 +4709,8 @@ function IWorkflow() {
4707
4709
  const getStateTitle = () => {
4708
4710
  var _vocabulary$data, _vocabulary$data$item;
4709
4711
 
4710
- console.log('getStateTitle', vocabulary);
4711
-
4712
4712
  if (((_vocabulary$data = vocabulary.data) == null ? void 0 : (_vocabulary$data$item = _vocabulary$data.items) == null ? void 0 : _vocabulary$data$item.length) > 0) {
4713
4713
  const vocabularyValue = vocabulary.data.items.find(item => item.token === currentState);
4714
- console.log('state title', vocabularyValue, intl.locale);
4715
4714
 
4716
4715
  if (vocabularyValue) {
4717
4716
  const translatedValue = get$1(vocabularyValue, `title.translated_title.${intl.locale}`, null);
@@ -4731,7 +4730,6 @@ function IWorkflow() {
4731
4730
  return currentState;
4732
4731
  };
4733
4732
 
4734
- console.log('Workflow log');
4735
4733
  if (definition === undefined) return null;
4736
4734
  return /*#__PURE__*/React.createElement(React.Fragment, null, workflowAction && /*#__PURE__*/React.createElement(Confirm, {
4737
4735
  loading: loading,