@bento-core/query-bar 1.0.1-ccdihub.17 → 1.0.1-ccdihub.18

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.
@@ -99,7 +99,7 @@ const QueryBarGenerator = function QueryBarGenerator() {
99
99
  }, hasImportFrom && /*#__PURE__*/_react.default.createElement("span", {
100
100
  className: (0, _clsx.default)(classes.filterCheckboxes, classes.localFindBackground),
101
101
  onClick: clearImportFrom
102
- }, "IMPORTED PARTICIPANT SET"), hasImportFrom && mappedInputs.length ? /*#__PURE__*/_react.default.createElement("span", {
102
+ }, "IMPORTED PARTICIPANT SET"), hasImportFrom && (mappedInputs.length || autocomplete.length || upload.length) ? /*#__PURE__*/_react.default.createElement("span", {
103
103
  className: classes.operators
104
104
  }, " AND ") : null, autocomplete.length || upload.length ? /*#__PURE__*/_react.default.createElement("span", null, upload.length && !autocomplete.length ? /*#__PURE__*/_react.default.createElement("span", {
105
105
  className: (0, _clsx.default)(classes.filterCheckboxes, classes.localFindBackground),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bento-core/query-bar",
3
- "version": "1.0.1-ccdihub.17",
3
+ "version": "1.0.1-ccdihub.18",
4
4
  "description": "This package provides the Query Bar component that displays the current Facet Search and Local Find filters on the Dashboard/Explore page. It also provides the direct ability to reset all or some of the filters with the click of a button. It is designed to be implemented directly with the:",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -92,7 +92,6 @@ export const QueryBarGenerator = (uiConfig = DEFAULT_CONFIG) => {
92
92
  if (!hasImportFrom && (mappedInputs.length || autocomplete.length || upload.length) <= 0) {
93
93
  return null;
94
94
  }
95
-
96
95
  return (
97
96
  <div className={classes.queryWrapper}>
98
97
  <Button
@@ -118,7 +117,8 @@ export const QueryBarGenerator = (uiConfig = DEFAULT_CONFIG) => {
118
117
  </span>
119
118
  )
120
119
  }
121
- {hasImportFrom && mappedInputs.length
120
+
121
+ {hasImportFrom && (mappedInputs.length || autocomplete.length || upload.length)
122
122
  ? <span className={classes.operators}> AND </span>
123
123
  : null}
124
124
  {(autocomplete.length || upload.length) ? (