akeyless-client-commons 1.0.36 → 1.0.37
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/components/index.js
CHANGED
|
@@ -4232,8 +4232,11 @@ function SearchSelect(param) {
|
|
|
4232
4232
|
]);
|
|
4233
4233
|
var filteredOptions = (0, import_react6.useMemo)(function() {
|
|
4234
4234
|
if (!searchQuery) return allOptions;
|
|
4235
|
+
var query2 = searchQuery.toLowerCase().trim();
|
|
4235
4236
|
return allOptions.filter(function(option) {
|
|
4236
|
-
return
|
|
4237
|
+
return Object.values(option).some(function(field) {
|
|
4238
|
+
return field.toLowerCase().trim().includes(query2);
|
|
4239
|
+
});
|
|
4237
4240
|
});
|
|
4238
4241
|
}, [
|
|
4239
4242
|
allOptions,
|
|
@@ -4249,11 +4252,6 @@ function SearchSelect(param) {
|
|
|
4249
4252
|
allOptions,
|
|
4250
4253
|
selectPlaceholder
|
|
4251
4254
|
]);
|
|
4252
|
-
(0, import_react6.useEffect)(function() {
|
|
4253
|
-
console.log("selectLabel", selectLabel);
|
|
4254
|
-
}, [
|
|
4255
|
-
selectLabel
|
|
4256
|
-
]);
|
|
4257
4255
|
var addNewOption = (0, import_react6.useCallback)(function() {
|
|
4258
4256
|
var newOption = {
|
|
4259
4257
|
value: searchQuery,
|
|
@@ -4037,8 +4037,11 @@ function SearchSelect(param) {
|
|
|
4037
4037
|
]);
|
|
4038
4038
|
var filteredOptions = useMemo5(function() {
|
|
4039
4039
|
if (!searchQuery) return allOptions;
|
|
4040
|
+
var query2 = searchQuery.toLowerCase().trim();
|
|
4040
4041
|
return allOptions.filter(function(option) {
|
|
4041
|
-
return
|
|
4042
|
+
return Object.values(option).some(function(field) {
|
|
4043
|
+
return field.toLowerCase().trim().includes(query2);
|
|
4044
|
+
});
|
|
4042
4045
|
});
|
|
4043
4046
|
}, [
|
|
4044
4047
|
allOptions,
|
|
@@ -4054,11 +4057,6 @@ function SearchSelect(param) {
|
|
|
4054
4057
|
allOptions,
|
|
4055
4058
|
selectPlaceholder
|
|
4056
4059
|
]);
|
|
4057
|
-
useEffect5(function() {
|
|
4058
|
-
console.log("selectLabel", selectLabel);
|
|
4059
|
-
}, [
|
|
4060
|
-
selectLabel
|
|
4061
|
-
]);
|
|
4062
4060
|
var addNewOption = useCallback3(function() {
|
|
4063
4061
|
var newOption = {
|
|
4064
4062
|
value: searchQuery,
|