@bigbinary/neeto-fields-frontend 1.3.10 → 1.3.12
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.js +6 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { useFuncDebounce, useOnClickOutside, withT, useMutationWithInvalidation,
|
|
|
3
3
|
import { Checkbox as Checkbox$1, TimePicker, DatePicker, Select, Input, Textarea, Typography, Pane, Label, Button as Button$1, Dropdown, Tab, Alert, NoData, Table, Spinner } from '@bigbinary/neetoui';
|
|
4
4
|
import { isNotEmpty, renameKeys, capitalize, findBy, noop as noop$1, filterBy, toLabelAndValue, slugify, humanize, countBy } from '@bigbinary/neeto-cist';
|
|
5
5
|
import { values, isNotNil, isNil, isEmpty, prop, pluck, clone, pipe, mergeAll, omit, map, pick, assoc, any, head } from 'ramda';
|
|
6
|
+
import classnames from 'classnames';
|
|
6
7
|
import { useFormikContext, useField, FieldArray } from 'formik';
|
|
7
8
|
import { t } from 'i18next';
|
|
8
9
|
import * as yup from 'yup';
|
|
@@ -22,7 +23,6 @@ import TableWrapper from '@bigbinary/neeto-molecules/TableWrapper';
|
|
|
22
23
|
import NeetoUIHeader from '@bigbinary/neeto-molecules/Header';
|
|
23
24
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
24
25
|
import NeetoUISubHeader from '@bigbinary/neeto-molecules/SubHeader';
|
|
25
|
-
import classnames from 'classnames';
|
|
26
26
|
|
|
27
27
|
function _extends() {
|
|
28
28
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -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
|
-
|
|
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"];
|
|
@@ -894,6 +893,9 @@ var useFormikFields = function useFormikFields(_ref) {
|
|
|
894
893
|
dirty: dirty,
|
|
895
894
|
handleSubmit: handleSubmit,
|
|
896
895
|
fieldProps: _objectSpread$g(_objectSpread$g({}, formikFieldProps), {}, {
|
|
896
|
+
className: classnames({
|
|
897
|
+
"items-center": isInline
|
|
898
|
+
}),
|
|
897
899
|
error: individualSubmit ? meta.error : meta.touched && meta.error,
|
|
898
900
|
value: getValueForField(formikFieldProps.value),
|
|
899
901
|
label: !isInline && capitalize(name),
|