@bigbinary/neeto-fields-frontend 1.3.39 → 1.3.41

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
@@ -2859,6 +2859,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2859
2859
  };
2860
2860
  var isSingleResource = menuItems.length === 1;
2861
2861
  var isMenuBarNeeded = !isSingleResource && !isConfigsLoading;
2862
+ var isSearchBarNeeded = state === FIELD_STATES.active ? activeFieldsCount > 0 : inactiveFieldsCount > 0;
2862
2863
  var resourceName = useMemo(function () {
2863
2864
  return getResourceName({
2864
2865
  isOwnerBased: isOwnerBased,
@@ -2925,7 +2926,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2925
2926
  handleAlertClose: handleAlertClose,
2926
2927
  handleClosePane: handleClosePane,
2927
2928
  handleReorderPaneClose: handleReorderPaneClose,
2928
- searchInputProps: searchInputProps,
2929
+ searchInputProps: isSearchBarNeeded ? searchInputProps : null,
2929
2930
  searchKeywordProps: searchKeywordProps,
2930
2931
  stateFilterTabs: stateFilterTabs,
2931
2932
  menuBarItems: menuBarItems,
@@ -3060,19 +3061,20 @@ var ActionBlock = function ActionBlock(_ref) {
3060
3061
  }));
3061
3062
  };
3062
3063
 
3063
- var _excluded = ["searchInputProps", "breadcrumbs", "title", "helpDocUrl", "helpDescription"];
3064
+ var _excluded = ["searchInputProps", "breadcrumbs", "title", "helpDocUrl", "helpDescription", "size"];
3064
3065
  var Header = withT(function (_ref) {
3065
3066
  var searchInputProps = _ref.searchInputProps,
3066
3067
  breadcrumbs = _ref.breadcrumbs,
3067
3068
  title = _ref.title,
3068
3069
  helpDocUrl = _ref.helpDocUrl,
3069
3070
  helpDescription = _ref.helpDescription,
3071
+ size = _ref.size,
3070
3072
  actionBlockProps = _objectWithoutProperties(_ref, _excluded);
3071
3073
  return /*#__PURE__*/React.createElement(NeetoUIHeader, {
3072
3074
  breadcrumbs: breadcrumbs,
3075
+ size: size,
3073
3076
  actionBlock: /*#__PURE__*/React.createElement(ActionBlock, actionBlockProps),
3074
3077
  searchProps: searchInputProps,
3075
- size: "small",
3076
3078
  title: /*#__PURE__*/React.createElement("span", null, title, (helpDocUrl || helpDescription) && /*#__PURE__*/React.createElement(HelpPopover, _extends({
3077
3079
  className: "ml-2 self-center"
3078
3080
  }, helpDocUrl && {
@@ -7518,7 +7520,9 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
7518
7520
  _ref$nameAliases = _ref.nameAliases,
7519
7521
  nameAliases = _ref$nameAliases === void 0 ? {} : _ref$nameAliases,
7520
7522
  headerTitle = _ref.headerTitle,
7521
- resources = _ref.resources;
7523
+ resources = _ref.resources,
7524
+ _ref$headerSize = _ref.headerSize,
7525
+ headerSize = _ref$headerSize === void 0 ? "small" : _ref$headerSize;
7522
7526
  var _useTranslation = useTranslation(),
7523
7527
  t = _useTranslation.t;
7524
7528
  var title = capitalize(headerTitle || t("neetoFields.titles.field", PLURAL));
@@ -7568,7 +7572,8 @@ var FieldsDashboard = function FieldsDashboard(_ref) {
7568
7572
  searchInputProps: searchInputProps,
7569
7573
  setIsPaneOpen: setIsPaneOpen,
7570
7574
  setIsReorderPaneOpen: setIsReorderPaneOpen,
7571
- title: headerDisplayTitle
7575
+ title: headerDisplayTitle,
7576
+ size: headerSize
7572
7577
  };
7573
7578
  var showSubheader = showCountSubheader || isPresent(searchKeywordProps.value);
7574
7579
  return /*#__PURE__*/React.createElement(React.Fragment, null, isMenuBarNeeded && /*#__PURE__*/React.createElement(Menubar, {