@k-int/stripes-kint-components 3.1.0 → 3.2.0

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.
Files changed (171) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/es/lib/RichSelect/RichSelect.js +1 -0
  3. package/es/lib/utils/generateKiwtQuery.js +3 -4
  4. package/es/lib/utils/generateKiwtQueryParams.js +22 -12
  5. package/junit.xml +138 -138
  6. package/package.json +1 -1
  7. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionList.js.html +1 -1
  8. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionListFieldArray.js.html +44 -254
  9. package/src/artifacts/coverage-jest/lcov-report/ActionList/ActionTrigger.js.html +418 -0
  10. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.html +24 -9
  11. package/src/artifacts/coverage-jest/lcov-report/ActionList/index.js.html +1 -1
  12. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesLookup.js.html +1 -1
  13. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertiesSettings.js.html +1 -1
  14. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyForm.js.html +1 -1
  15. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/CustomPropertyView.js.html +1 -1
  16. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.html +1 -1
  17. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Config/index.js.html +1 -1
  18. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEdit.js.html +1 -1
  19. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesEditCtx.js.html +1 -1
  20. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertiesListField.js.html +1 -1
  21. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyField.js.html +1 -1
  22. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/CustomPropertyFormCard.js.html +1 -1
  23. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.html +1 -1
  24. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/index.js.html +1 -1
  25. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Edit/testResources.js.html +1 -1
  26. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilter.js.html +1 -1
  27. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterField.js.html +1 -1
  28. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js.html +1 -1
  29. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesFilterForm.js.html +1 -1
  30. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/CustomPropertiesRule.js.html +1 -1
  31. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.html +1 -1
  32. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/index.js.html +1 -1
  33. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/testResources.js.html +1 -1
  34. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useOperators.js.html +1 -1
  35. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useParseActiveFilterStrings.js.html +1 -1
  36. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/Filter/useValueProps.js.html +1 -1
  37. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesView.js.html +1 -1
  38. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertiesViewCtx.js.html +1 -1
  39. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/CustomPropertyCard.js.html +1 -1
  40. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.html +1 -1
  41. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/index.js.html +1 -1
  42. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/View/testResources.js.html +1 -1
  43. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.html +1 -1
  44. package/src/artifacts/coverage-jest/lcov-report/CustomProperties/index.js.html +1 -1
  45. package/src/artifacts/coverage-jest/lcov-report/CycleButton/CycleButton.js.html +1 -1
  46. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.html +1 -1
  47. package/src/artifacts/coverage-jest/lcov-report/CycleButton/index.js.html +1 -1
  48. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/EditableRefdataCategoryList.js.html +1 -1
  49. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.html +1 -1
  50. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataCategoryList/index.js.html +1 -1
  51. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/EditableRefdataList.js.html +74 -8
  52. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.html +9 -9
  53. package/src/artifacts/coverage-jest/lcov-report/EditableRefdataList/index.js.html +1 -1
  54. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsList.js.html +31 -4
  55. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/EditableSettingsListFieldArray.js.html +1 -1
  56. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/EditSettingValue.js.html +1 -1
  57. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/RenderSettingValue.js.html +2 -2
  58. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/SettingField.js.html +1 -1
  59. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.html +1 -1
  60. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/SettingField/index.js.html +1 -1
  61. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.html +7 -7
  62. package/src/artifacts/coverage-jest/lcov-report/EditableSettingsList/index.js.html +1 -1
  63. package/src/artifacts/coverage-jest/lcov-report/FormModal/FormModal.js.html +1 -1
  64. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.html +1 -1
  65. package/src/artifacts/coverage-jest/lcov-report/FormModal/index.js.html +1 -1
  66. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/FormattedKintMessage.js.html +1 -1
  67. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.html +1 -1
  68. package/src/artifacts/coverage-jest/lcov-report/FormattedKintMessage/index.js.html +1 -1
  69. package/src/artifacts/coverage-jest/lcov-report/IconSelect/IconSelect.js.html +1 -1
  70. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.html +1 -1
  71. package/src/artifacts/coverage-jest/lcov-report/IconSelect/index.js.html +1 -1
  72. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/NoResultsMessage.js.html +2 -2
  73. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.html +1 -1
  74. package/src/artifacts/coverage-jest/lcov-report/NoResultsMessage/index.js.html +1 -1
  75. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/QueryTypedown.js.html +1 -1
  76. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.html +1 -1
  77. package/src/artifacts/coverage-jest/lcov-report/QueryTypedown/index.js.html +1 -1
  78. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/RefdataButtons.js.html +18 -3
  79. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.html +1 -1
  80. package/src/artifacts/coverage-jest/lcov-report/RefdataButtons/index.js.html +1 -1
  81. package/src/artifacts/coverage-jest/lcov-report/RichSelect/RichSelect.js.html +1 -1
  82. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.html +1 -1
  83. package/src/artifacts/coverage-jest/lcov-report/RichSelect/index.js.html +1 -1
  84. package/src/artifacts/coverage-jest/lcov-report/RichSelect/useSelectedOption.js.html +1 -1
  85. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/SASQLookupComponent.js.html +4 -19
  86. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/TableBody.js.html +1 -1
  87. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.html +1 -1
  88. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/TableBody/index.js.html +1 -1
  89. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.html +3 -3
  90. package/src/artifacts/coverage-jest/lcov-report/SASQLookupComponent/index.js.html +1 -1
  91. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/SASQRoute.js.html +1 -1
  92. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.html +1 -1
  93. package/src/artifacts/coverage-jest/lcov-report/SASQRoute/index.js.html +1 -1
  94. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/SASQViewComponent.js.html +1 -1
  95. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.html +1 -1
  96. package/src/artifacts/coverage-jest/lcov-report/SASQViewComponent/index.js.html +1 -1
  97. package/src/artifacts/coverage-jest/lcov-report/SearchField/SearchField.js.html +1 -1
  98. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.html +1 -1
  99. package/src/artifacts/coverage-jest/lcov-report/SearchField/index.js.html +1 -1
  100. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPage.js.html +56 -5
  101. package/src/artifacts/coverage-jest/lcov-report/SettingPage/SettingPagePane.js.html +1 -1
  102. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.html +7 -7
  103. package/src/artifacts/coverage-jest/lcov-report/SettingPage/index.js.html +1 -1
  104. package/src/artifacts/coverage-jest/lcov-report/{ResponsiveButtonGroup/ResponsiveButtonGroup.js.html → SettingsActionList/EditSettingValue.js.html} +145 -166
  105. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/RenderSettingValue.js.html +358 -0
  106. package/src/artifacts/coverage-jest/lcov-report/SettingsActionList/SettingsActionList.js.html +736 -0
  107. package/src/artifacts/coverage-jest/lcov-report/{ResponsiveButtonGroup → SettingsActionList}/index.html +42 -27
  108. package/src/artifacts/coverage-jest/lcov-report/{ResponsiveButtonGroup → SettingsActionList}/index.js.html +4 -4
  109. package/src/artifacts/coverage-jest/lcov-report/Typedown/Typedown.js.html +1 -1
  110. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.html +1 -1
  111. package/src/artifacts/coverage-jest/lcov-report/Typedown/index.js.html +1 -1
  112. package/src/artifacts/coverage-jest/lcov-report/constants/customProperties.js.html +1 -1
  113. package/src/artifacts/coverage-jest/lcov-report/constants/eventCodes.js.html +1 -1
  114. package/src/artifacts/coverage-jest/lcov-report/constants/index.html +1 -1
  115. package/src/artifacts/coverage-jest/lcov-report/contexts/SettingsContext.js.html +1 -1
  116. package/src/artifacts/coverage-jest/lcov-report/contexts/index.html +1 -1
  117. package/src/artifacts/coverage-jest/lcov-report/contexts/index.js.html +1 -1
  118. package/src/artifacts/coverage-jest/lcov-report/hooks/index.html +1 -1
  119. package/src/artifacts/coverage-jest/lcov-report/hooks/index.js.html +1 -1
  120. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.html +3 -3
  121. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/index.js.html +1 -1
  122. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useAppSettings.js.html +1 -1
  123. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettingSection.js.html +1 -1
  124. package/src/artifacts/coverage-jest/lcov-report/hooks/settingsHooks/useSettings.js.html +9 -3
  125. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.html +1 -1
  126. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/index.js.html +1 -1
  127. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedown.js.html +1 -1
  128. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownData.js.html +1 -1
  129. package/src/artifacts/coverage-jest/lcov-report/hooks/typedownHooks/useTypedownToggle.js.html +1 -1
  130. package/src/artifacts/coverage-jest/lcov-report/hooks/useActiveElement.js.html +1 -1
  131. package/src/artifacts/coverage-jest/lcov-report/hooks/useCustomProperties.js.html +1 -1
  132. package/src/artifacts/coverage-jest/lcov-report/hooks/useHelperApp.js.html +1 -1
  133. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKey.js.html +1 -1
  134. package/src/artifacts/coverage-jest/lcov-report/hooks/useIntlKeyStore.js.html +1 -1
  135. package/src/artifacts/coverage-jest/lcov-report/hooks/useInvalidateRefdata.js.html +1 -1
  136. package/src/artifacts/coverage-jest/lcov-report/hooks/useKintIntl.js.html +1 -1
  137. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtFieldArray.js.html +1 -1
  138. package/src/artifacts/coverage-jest/lcov-report/hooks/useKiwtSASQuery.js.html +1 -1
  139. package/src/artifacts/coverage-jest/lcov-report/hooks/useLocalStorageState.js.html +1 -1
  140. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateCustomProperties.js.html +1 -1
  141. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataCategory.js.html +1 -1
  142. package/src/artifacts/coverage-jest/lcov-report/hooks/useMutateRefdataValue.js.html +1 -1
  143. package/src/artifacts/coverage-jest/lcov-report/hooks/useQIndex.js.html +1 -1
  144. package/src/artifacts/coverage-jest/lcov-report/hooks/useRefdata.js.html +1 -1
  145. package/src/artifacts/coverage-jest/lcov-report/hooks/useSASQQueryMeta.js.html +1 -1
  146. package/src/artifacts/coverage-jest/lcov-report/hooks/useTemplates.js.html +1 -1
  147. package/src/artifacts/coverage-jest/lcov-report/index.html +43 -43
  148. package/src/artifacts/coverage-jest/lcov-report/utils/buildUrl.js.html +1 -1
  149. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQuery.js.html +1 -1
  150. package/src/artifacts/coverage-jest/lcov-report/utils/generateKiwtQueryParams.js.html +1 -1
  151. package/src/artifacts/coverage-jest/lcov-report/utils/groupCustomPropertiesByCtx.js.html +1 -1
  152. package/src/artifacts/coverage-jest/lcov-report/utils/highlightString.js.html +1 -1
  153. package/src/artifacts/coverage-jest/lcov-report/utils/index.html +1 -1
  154. package/src/artifacts/coverage-jest/lcov-report/utils/index.js.html +1 -1
  155. package/src/artifacts/coverage-jest/lcov-report/utils/matchString.js.html +1 -1
  156. package/src/artifacts/coverage-jest/lcov-report/utils/parseErrorResponse.js.html +1 -1
  157. package/src/artifacts/coverage-jest/lcov-report/utils/refdataOptions.js.html +1 -1
  158. package/src/artifacts/coverage-jest/lcov-report/utils/refdataQueryKey.js.html +1 -1
  159. package/src/artifacts/coverage-jest/lcov-report/utils/selectorSafe.js.html +1 -1
  160. package/src/artifacts/coverage-jest/lcov-report/utils/sortByLabel.js.html +1 -1
  161. package/src/artifacts/coverage-jest/lcov-report/utils/toCamelCase.js.html +1 -1
  162. package/src/artifacts/coverage-jest/lcov-report/utils/typedownQueryKey.js.html +1 -1
  163. package/src/artifacts/coverage-jest/lcov-report/utils/validators.js.html +1 -1
  164. package/src/artifacts/coverage-jest/lcov.info +680 -585
  165. package/src/lib/IconSelect/IconSelect.js +22 -20
  166. package/src/lib/RichSelect/RichSelect.js +1 -0
  167. package/src/lib/utils/README.md +3 -1
  168. package/src/lib/utils/generateKiwtQuery.js +3 -3
  169. package/src/lib/utils/generateKiwtQueryParams.js +27 -13
  170. package/src/artifacts/coverage-jest/lcov-report/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js.html +0 -253
  171. package/yarn-error.log +0 -147
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.2.0 2022-11-10
2
+ * RichSelect now passes `disabled` prop to Dropdown, so trigger will no longer be overriden by `disabled: undefined` from `getTriggerProps`.
3
+ * generateKiwtQuery now encodes each interior query chunk using `encodeURIComponent` instead of using `encodeURI` on the entire chunk. ie `filters=(checklist.definition.name%3D%3Dtest_1%26%26checklist.outcome.value%3D%3Dyes)` (Everything after `filters=` is encoded).
1
4
  ## 3.1.0 2022-11-03
2
5
  * Added `searchFieldAria label` and `searchFieldProps` to SASQLookupComponent
3
6
  * Removed unnecessary validate prop on CustomPropertyField, fixed broken out of range validator
@@ -147,6 +147,7 @@ var RichSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
147
147
  required: required,
148
148
  children: ariaLabel || label
149
149
  }) : '', /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Dropdown, _objectSpread({
150
+ disabled: disabled,
150
151
  hasPadding: true,
151
152
  placement: "bottom-start",
152
153
  renderMenu: function renderMenu(menuProps) {
@@ -7,10 +7,9 @@ exports.default = void 0;
7
7
  var _generateKiwtQueryParams = _interopRequireDefault(require("./generateKiwtQueryParams"));
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
9
  var generateKiwtQuery = function generateKiwtQuery(options, nsValues) {
10
- var paramsArray = (0, _generateKiwtQueryParams.default)(options, nsValues);
11
- return paramsArray.length ? '?' + paramsArray.map(function (p) {
12
- return encodeURI(p);
13
- }).join('&') : '';
10
+ var encode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
11
+ var paramsArray = (0, _generateKiwtQueryParams.default)(options, nsValues, encode);
12
+ return paramsArray.length ? '?' + paramsArray.join('&') : '';
14
13
  };
15
14
  var _default = generateKiwtQuery;
16
15
  exports.default = _default;
@@ -19,6 +19,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
19
19
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
20
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
21
  var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues) {
22
+ var encode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
22
23
  var qindex = nsValues.qindex,
23
24
  query = nsValues.query,
24
25
  filters = nsValues.filters,
@@ -36,13 +37,19 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
36
37
  optionsSort = options.sort,
37
38
  optionsFilters = options.filters,
38
39
  rest = _objectWithoutProperties(options, _excluded);
40
+ var conditionalEncodeURIComponent = function conditionalEncodeURIComponent(str) {
41
+ if (encode) {
42
+ return encodeURIComponent(str);
43
+ }
44
+ return str;
45
+ };
39
46
  var paramsArray = [];
40
47
  if (query) {
41
48
  var _split;
42
49
  paramsArray.push.apply(paramsArray, _toConsumableArray((_split = (qindex || searchKey).split(',')) === null || _split === void 0 ? void 0 : _split.map(function (m) {
43
- return "match=".concat(m);
50
+ return "match=".concat(conditionalEncodeURIComponent(m));
44
51
  })));
45
- paramsArray.push("term=".concat(query));
52
+ paramsArray.push("term=".concat(conditionalEncodeURIComponent(query)));
46
53
  }
47
54
  if (optionsFilters) {
48
55
  optionsFilters.forEach(function (opf) {
@@ -57,14 +64,15 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
57
64
  innerFilters.push(opfv);
58
65
  }
59
66
  });
60
- paramsArray.push("filters=".concat(innerFilters.join('||')));
67
+ paramsArray.push("filters=".concat(conditionalEncodeURIComponent(innerFilters.join('||'))));
61
68
  } else if (opf !== null && opf !== void 0 && opf.value) {
62
69
  // If no value OR values, then ignore
63
70
  if (opf.path) {
64
71
  var _opf$comparator2;
65
- paramsArray.push("filters=".concat(opf.path).concat((_opf$comparator2 = opf.comparator) !== null && _opf$comparator2 !== void 0 ? _opf$comparator2 : '==').concat(opf.value));
72
+ var filterString = "".concat(opf.path).concat((_opf$comparator2 = opf.comparator) !== null && _opf$comparator2 !== void 0 ? _opf$comparator2 : '==').concat(opf.value);
73
+ paramsArray.push("filters=".concat(conditionalEncodeURIComponent(filterString)));
66
74
  } else {
67
- paramsArray.push("filters=".concat(opf.value));
75
+ paramsArray.push("filters=".concat(conditionalEncodeURIComponent(opf.value)));
68
76
  }
69
77
  }
70
78
  });
@@ -100,28 +108,29 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
100
108
  })) === null || _filterConfigEntry$va2 === void 0 ? void 0 : _filterConfigEntry$va2.value;
101
109
  return "".concat(filterName, "==").concat(fceValue !== null && fceValue !== void 0 ? fceValue : v);
102
110
  }).join('||');
103
- paramsArray.push("filters=".concat(filterString));
111
+ paramsArray.push("filters=".concat(conditionalEncodeURIComponent(filterString)));
104
112
  } else if (!filterKey) {
105
113
  // These filters have no key mapping so we just pass the values to the backend as-is.
106
114
  paramsArray.push.apply(paramsArray, _toConsumableArray(filterValues === null || filterValues === void 0 ? void 0 : filterValues.map(function (f) {
107
- return "filters=".concat(f);
115
+ return "filters=".concat(conditionalEncodeURIComponent(f));
108
116
  })));
109
117
  } else {
110
118
  var _filterString = filterValues.map(function (v) {
111
119
  return "".concat(filterKey, "==").concat(v);
112
120
  }).join('||');
113
- paramsArray.push("filters=".concat(_filterString));
121
+ paramsArray.push("filters=".concat(conditionalEncodeURIComponent(_filterString)));
114
122
  }
115
123
  });
116
124
  }
117
125
  if (optionsSort && optionsSort.length > 0) {
118
126
  optionsSort.forEach(function (os) {
119
127
  if (os.value) {
120
- paramsArray.push("sort=".concat(os.value));
128
+ paramsArray.push("sort=".concat(conditionalEncodeURIComponent(os.value)));
121
129
  } else if (os.path) {
122
130
  var _os$direction;
123
131
  // If no path then ignore
124
- paramsArray.push("sort=".concat(os.path, ";").concat((_os$direction = os.direction) !== null && _os$direction !== void 0 ? _os$direction : 'asc'));
132
+ var sortString = "".concat(os.path, ";").concat((_os$direction = os.direction) !== null && _os$direction !== void 0 ? _os$direction : 'asc');
133
+ paramsArray.push("sort=".concat(conditionalEncodeURIComponent(sortString)));
125
134
  }
126
135
  });
127
136
  }
@@ -133,7 +142,8 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
133
142
  if (term in sortKeys) {
134
143
  term = term.replace(term, sortKeys[term]);
135
144
  }
136
- return "sort=".concat(term, ";").concat(descending ? 'desc' : 'asc');
145
+ var sortString = "".concat(term, ";").concat(descending ? 'desc' : 'asc');
146
+ return "sort=".concat(conditionalEncodeURIComponent(sortString));
137
147
  })));
138
148
  }
139
149
  if (stats) {
@@ -143,7 +153,7 @@ var generateKiwtQueryParams = function generateKiwtQueryParams(options, nsValues
143
153
  var _Object$entries$_i = _slicedToArray(_Object$entries[_i2], 2),
144
154
  key = _Object$entries$_i[0],
145
155
  value = _Object$entries$_i[1];
146
- paramsArray.push("".concat(key, "=").concat(value));
156
+ paramsArray.push("".concat(key, "=").concat(conditionalEncodeURIComponent(value)));
147
157
  }
148
158
  return paramsArray;
149
159
  };