@k-int/stripes-kint-components 5.19.0 → 5.19.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.19.1](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.19.0...v5.19.1) (2025-04-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* SearchableIndexes were not null safe ([7107530](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/commit/7107530408fa30d3fd87a5dd87970561afaac134))
|
|
7
|
+
|
|
1
8
|
# [5.19.0](https://gitlab.com/knowledge-integration/folio/stripes-kint-components/compare/v5.18.0...v5.19.0) (2025-04-16)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -54,7 +54,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
54
54
|
rowNavigation = true,
|
|
55
55
|
// Default navigation onRowClick
|
|
56
56
|
sasqProps,
|
|
57
|
-
searchableIndexes,
|
|
57
|
+
searchableIndexes = [],
|
|
58
58
|
searchFieldAriaLabel,
|
|
59
59
|
searchFieldProps = {}
|
|
60
60
|
} = props;
|
|
@@ -203,7 +203,7 @@ const SASQLookupComponent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
|
|
|
203
203
|
onClear: searchHandlers.reset,
|
|
204
204
|
value: searchValue.query,
|
|
205
205
|
...searchFieldProps
|
|
206
|
-
}), searchableIndexes
|
|
206
|
+
}), searchableIndexes?.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SearchKeyControl.default, {
|
|
207
207
|
options: searchableIndexes
|
|
208
208
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Button, {
|
|
209
209
|
buttonStyle: "primary",
|
|
@@ -301,6 +301,10 @@ SASQLookupComponent.propTypes = {
|
|
|
301
301
|
resultColumns: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
302
302
|
rowNavigation: _propTypes.default.bool,
|
|
303
303
|
sasqProps: _propTypes.default.object,
|
|
304
|
+
searchableIndexes: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
305
|
+
key: _propTypes.default.string.isRequired,
|
|
306
|
+
label: _propTypes.default.string
|
|
307
|
+
})),
|
|
304
308
|
searchFieldAriaLabel: _propTypes.default.string,
|
|
305
309
|
searchFieldProps: _propTypes.default.object
|
|
306
310
|
};
|
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ const SASQLookupComponent = forwardRef((props, ref) => {
|
|
|
60
60
|
RenderBody,
|
|
61
61
|
rowNavigation = true, // Default navigation onRowClick
|
|
62
62
|
sasqProps,
|
|
63
|
-
searchableIndexes,
|
|
63
|
+
searchableIndexes = [],
|
|
64
64
|
searchFieldAriaLabel,
|
|
65
65
|
searchFieldProps = {},
|
|
66
66
|
} = props;
|
|
@@ -238,7 +238,7 @@ const SASQLookupComponent = forwardRef((props, ref) => {
|
|
|
238
238
|
value={searchValue.query}
|
|
239
239
|
{...searchFieldProps}
|
|
240
240
|
/>
|
|
241
|
-
{searchableIndexes
|
|
241
|
+
{searchableIndexes?.length > 0 && (
|
|
242
242
|
<SearchKeyControl options={searchableIndexes} />
|
|
243
243
|
)}
|
|
244
244
|
<Button
|
|
@@ -372,6 +372,10 @@ SASQLookupComponent.propTypes = {
|
|
|
372
372
|
resultColumns: PropTypes.arrayOf(PropTypes.object),
|
|
373
373
|
rowNavigation: PropTypes.bool,
|
|
374
374
|
sasqProps: PropTypes.object,
|
|
375
|
+
searchableIndexes: PropTypes.arrayOf(PropTypes.shape({
|
|
376
|
+
key: PropTypes.string.isRequired,
|
|
377
|
+
label: PropTypes.string
|
|
378
|
+
})),
|
|
375
379
|
searchFieldAriaLabel: PropTypes.string,
|
|
376
380
|
searchFieldProps: PropTypes.object
|
|
377
381
|
};
|