@bigbinary/neeto-fields-frontend 1.3.38 → 1.3.40
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/README.md +2 -1
- package/dist/index.cjs.js +11 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/types.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useFormikContext, useField, FieldArray } from 'formik';
|
|
|
7
7
|
import { t as t$1 } from 'i18next';
|
|
8
8
|
import * as yup from 'yup';
|
|
9
9
|
import { Select, Button, ActionBlock as ActionBlock$1, Input as Input$1, Switch, Form } from '@bigbinary/neetoui/formik';
|
|
10
|
-
import { joinHyphenCase, buildUrl, getQueryParams, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
|
|
10
|
+
import { joinHyphenCase, buildUrl, getQueryParams, dateFormat, hyphenize } from '@bigbinary/neeto-commons-frontend/utils';
|
|
11
11
|
import { Check, Delete, Reorder } from '@bigbinary/neeto-icons';
|
|
12
12
|
import { useTranslation, Trans } from 'react-i18next';
|
|
13
13
|
import { DEFAULT_PAGE_INDEX, DEFAULT_PAGE_SIZE, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
@@ -3060,19 +3060,20 @@ var ActionBlock = function ActionBlock(_ref) {
|
|
|
3060
3060
|
}));
|
|
3061
3061
|
};
|
|
3062
3062
|
|
|
3063
|
-
var _excluded = ["searchInputProps", "breadcrumbs", "title", "helpDocUrl", "helpDescription"];
|
|
3063
|
+
var _excluded = ["searchInputProps", "breadcrumbs", "title", "helpDocUrl", "helpDescription", "size"];
|
|
3064
3064
|
var Header = withT(function (_ref) {
|
|
3065
3065
|
var searchInputProps = _ref.searchInputProps,
|
|
3066
3066
|
breadcrumbs = _ref.breadcrumbs,
|
|
3067
3067
|
title = _ref.title,
|
|
3068
3068
|
helpDocUrl = _ref.helpDocUrl,
|
|
3069
3069
|
helpDescription = _ref.helpDescription,
|
|
3070
|
+
size = _ref.size,
|
|
3070
3071
|
actionBlockProps = _objectWithoutProperties(_ref, _excluded);
|
|
3071
3072
|
return /*#__PURE__*/React.createElement(NeetoUIHeader, {
|
|
3072
3073
|
breadcrumbs: breadcrumbs,
|
|
3074
|
+
size: size,
|
|
3073
3075
|
actionBlock: /*#__PURE__*/React.createElement(ActionBlock, actionBlockProps),
|
|
3074
3076
|
searchProps: searchInputProps,
|
|
3075
|
-
size: "small",
|
|
3076
3077
|
title: /*#__PURE__*/React.createElement("span", null, title, (helpDocUrl || helpDescription) && /*#__PURE__*/React.createElement(HelpPopover, _extends({
|
|
3077
3078
|
className: "ml-2 self-center"
|
|
3078
3079
|
}, helpDocUrl && {
|
|
@@ -7518,7 +7519,9 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
|
|
|
7518
7519
|
_ref$nameAliases = _ref.nameAliases,
|
|
7519
7520
|
nameAliases = _ref$nameAliases === void 0 ? {} : _ref$nameAliases,
|
|
7520
7521
|
headerTitle = _ref.headerTitle,
|
|
7521
|
-
resources = _ref.resources
|
|
7522
|
+
resources = _ref.resources,
|
|
7523
|
+
_ref$headerSize = _ref.headerSize,
|
|
7524
|
+
headerSize = _ref$headerSize === void 0 ? "small" : _ref$headerSize;
|
|
7522
7525
|
var _useTranslation = useTranslation(),
|
|
7523
7526
|
t = _useTranslation.t;
|
|
7524
7527
|
var title = capitalize(headerTitle || t("neetoFields.titles.field", PLURAL));
|
|
@@ -7568,7 +7571,8 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
|
|
|
7568
7571
|
searchInputProps: searchInputProps,
|
|
7569
7572
|
setIsPaneOpen: setIsPaneOpen,
|
|
7570
7573
|
setIsReorderPaneOpen: setIsReorderPaneOpen,
|
|
7571
|
-
title: headerDisplayTitle
|
|
7574
|
+
title: headerDisplayTitle,
|
|
7575
|
+
size: headerSize
|
|
7572
7576
|
};
|
|
7573
7577
|
var showSubheader = showCountSubheader || isPresent(searchKeywordProps.value);
|
|
7574
7578
|
return /*#__PURE__*/React.createElement(React.Fragment, null, isMenuBarNeeded && /*#__PURE__*/React.createElement(Menubar, {
|
|
@@ -7998,7 +8002,9 @@ var InlineFieldValueInput = function InlineFieldValueInput(_ref2) {
|
|
|
7998
8002
|
_ref3$component = _ref3.component,
|
|
7999
8003
|
CustomDisplayComponent = _ref3$component === void 0 ? null : _ref3$component;
|
|
8000
8004
|
var DisplayComponent = CustomDisplayComponent || DefaultDisplayComponent;
|
|
8001
|
-
return isEditable ? /*#__PURE__*/React.createElement("div",
|
|
8005
|
+
return isEditable ? /*#__PURE__*/React.createElement("div", {
|
|
8006
|
+
"data-cy": "inline-field-value-input-".concat(hyphenize(field.name))
|
|
8007
|
+
}, /*#__PURE__*/React.createElement(FieldValueInputWrapper, {
|
|
8002
8008
|
field: field,
|
|
8003
8009
|
fieldValues: fieldValues,
|
|
8004
8010
|
onSubmit: function onSubmit(values) {
|