@k-int/stripes-kint-components 5.2.0 → 5.2.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [5.2.1](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.2.0...v5.2.1) (2023-10-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Do not add a space after search operator when doing groupings ([969a887](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/commit/969a887861b6286162ab6c48e4bb492f3cd508c4))
7
+
1
8
  # [5.2.0](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.1.0...v5.2.0) (2023-10-23)
2
9
 
3
10
 
@@ -4,4 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = ['==', '!=', '=~', '!~', '=i=', 'isEmpty', 'isNotEmpty', 'isSet', 'isNotSet', 'isNull', 'isNotNull'];
7
+ var _default = exports.default = ['==', '!=', '=~', '!~', '=i=',
8
+ /*
9
+ * The following comparators include a space, it is _important_ that this space is here.
10
+ * Note that this defines the "default" usage of comparators to be UNSPACED
11
+ */
12
+ ' isEmpty', ' isNotEmpty', ' isSet', ' isNotSet', ' isNull', ' isNotNull'];
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.deparseKiwtQueryFiltersObject = exports.default = void 0;
7
7
  // Does not validate object... make sure you pass it the right thing
8
8
  const deparseKiwtQueryFiltersObject = queryObject => {
9
- let returnString = `${queryObject.path} ${queryObject.comparator}`;
9
+ let returnString = `${queryObject.path}${queryObject.comparator}`;
10
10
  if (queryObject.value) {
11
- returnString += ` ${queryObject.value}`;
11
+ returnString += `${queryObject.value}`;
12
12
  }
13
13
  return returnString;
14
14
  };
@@ -18,7 +18,7 @@ const THIRD = 2;
18
18
  const parseKiwtQueryString = queryString => {
19
19
  const comparatorMatch = new RegExp(`(${_comparators.default.join('|')})`);
20
20
  // See parseKiwtQueryGroups for breakdown of why this filter is needed
21
- const splitString = queryString.split(comparatorMatch).map(ss => ss.trim()).filter(Boolean);
21
+ const splitString = queryString.split(comparatorMatch).filter(Boolean);
22
22
 
23
23
  /*
24
24
  * As far as I can tell, with input of a SINGLE query string at a time,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k-int/stripes-kint-components",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "Stripes Component library for K-Int specific applications",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -4,10 +4,14 @@ export default [
4
4
  '=~',
5
5
  '!~',
6
6
  '=i=',
7
- 'isEmpty',
8
- 'isNotEmpty',
9
- 'isSet',
10
- 'isNotSet',
11
- 'isNull',
12
- 'isNotNull',
7
+ /*
8
+ * The following comparators include a space, it is _important_ that this space is here.
9
+ * Note that this defines the "default" usage of comparators to be UNSPACED
10
+ */
11
+ ' isEmpty',
12
+ ' isNotEmpty',
13
+ ' isSet',
14
+ ' isNotSet',
15
+ ' isNull',
16
+ ' isNotNull',
13
17
  ];
@@ -1,8 +1,8 @@
1
1
  // Does not validate object... make sure you pass it the right thing
2
2
  export const deparseKiwtQueryFiltersObject = (queryObject) => {
3
- let returnString = `${queryObject.path} ${queryObject.comparator}`;
3
+ let returnString = `${queryObject.path}${queryObject.comparator}`;
4
4
  if (queryObject.value) {
5
- returnString += ` ${queryObject.value}`;
5
+ returnString += `${queryObject.value}`;
6
6
  }
7
7
 
8
8
  return returnString;
@@ -15,7 +15,6 @@ const parseKiwtQueryString = (queryString) => {
15
15
  const comparatorMatch = new RegExp(`(${comparators.join('|')})`);
16
16
  // See parseKiwtQueryGroups for breakdown of why this filter is needed
17
17
  const splitString = queryString.split(comparatorMatch)
18
- .map(ss => ss.trim())
19
18
  .filter(Boolean);
20
19
 
21
20
  /*