@bigbinary/neeto-fields-frontend 1.3.11 → 1.3.13

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.js CHANGED
@@ -779,8 +779,7 @@ var dateTimeToString = function dateTimeToString(dateTime) {
779
779
  return dateTime && dayjs(dateTime).toString() || "";
780
780
  };
781
781
  var getValueFromBool = function getValueFromBool(value) {
782
- if (value === true) return t("neetoFields.common.yes");else if (value === false) return t("neetoFields.common.no");
783
- return value;
782
+ return value === true ? t("neetoFields.common.yes") : t("neetoFields.common.no");
784
783
  };
785
784
 
786
785
  var _excluded$6 = ["name", "id", "kind", "data", "individualSubmit", "formRef", "formRefs", "disabled", "isRequiredColumnName", "isInline", "onBlur"];
@@ -908,7 +907,7 @@ var useFormikFields = function useFormikFields(_ref) {
908
907
  disabled: disabled,
909
908
  //conditional props
910
909
  options: isDropdown$1(kind) ? fieldData : undefined,
911
- getPopupContainer: isDateTime(kind) ? prop("parentElement") : undefined
910
+ getPopupContainer: !isInline && isDateTime(kind) ? prop("parentElement") : undefined
912
911
  })
913
912
  };
914
913
  };
@@ -7850,15 +7849,20 @@ var InlineFieldValueInput = function InlineFieldValueInput(_ref) {
7850
7849
  _ref$ownerId = _ref.ownerId,
7851
7850
  ownerId = _ref$ownerId === void 0 ? "" : _ref$ownerId,
7852
7851
  _ref$onMutationSucces = _ref.onMutationSuccess,
7853
- onMutationSuccess = _ref$onMutationSucces === void 0 ? noop$1 : _ref$onMutationSucces;
7852
+ onMutationSuccess = _ref$onMutationSucces === void 0 ? noop$1 : _ref$onMutationSucces,
7853
+ _ref$onMutate = _ref.onMutate,
7854
+ _onMutate = _ref$onMutate === void 0 ? noop$1 : _ref$onMutate;
7854
7855
  var _useState = useState(false),
7855
7856
  _useState2 = _slicedToArray(_useState, 2),
7856
7857
  editMode = _useState2[0],
7857
7858
  setEditMode = _useState2[1];
7858
7859
  var queryOptions = {
7860
+ onMutate: function onMutate(variables) {
7861
+ return _onMutate(variables.payload || variables);
7862
+ },
7859
7863
  onSuccess: function onSuccess() {
7860
7864
  setEditMode(false);
7861
- onMutationSuccess();
7865
+ onMutationSuccess.apply(void 0, arguments);
7862
7866
  }
7863
7867
  };
7864
7868
  var _useFieldValues = useFieldValues({