akeyless-client-commons 1.0.23 → 1.0.24
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
|
@@ -4228,9 +4228,12 @@ function SearchSelect(param) {
|
|
|
4228
4228
|
]);
|
|
4229
4229
|
var filteredOptions = (0, import_react6.useMemo)(function() {
|
|
4230
4230
|
if (!searchQuery) return allOptions;
|
|
4231
|
-
|
|
4231
|
+
var result = allOptions.filter(function(option) {
|
|
4232
4232
|
return option.label.toLowerCase().includes(searchQuery.toLowerCase());
|
|
4233
4233
|
});
|
|
4234
|
+
console.log("searchQuery:", searchQuery);
|
|
4235
|
+
console.log("result", result);
|
|
4236
|
+
return result;
|
|
4234
4237
|
}, [
|
|
4235
4238
|
allOptions,
|
|
4236
4239
|
searchQuery,
|
|
@@ -4246,10 +4249,6 @@ function SearchSelect(param) {
|
|
|
4246
4249
|
allOptions,
|
|
4247
4250
|
selectPlaceholder
|
|
4248
4251
|
]);
|
|
4249
|
-
console.log("searchQuery:", searchQuery);
|
|
4250
|
-
console.log("filteredOptions:", filteredOptions.map(function(item) {
|
|
4251
|
-
return item.label;
|
|
4252
|
-
}));
|
|
4253
4252
|
console.log("display create :", createNewOptionLabel && filteredOptions.length === 0 && searchQuery !== "");
|
|
4254
4253
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", {
|
|
4255
4254
|
style: {
|
|
@@ -4303,7 +4302,7 @@ function SearchSelect(param) {
|
|
|
4303
4302
|
}
|
|
4304
4303
|
}),
|
|
4305
4304
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandList, {
|
|
4306
|
-
children: filteredOptions.length === 0
|
|
4305
|
+
children: filteredOptions.length === 0 && searchQuery !== "" ? createNewOptionLabel ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandItem, {
|
|
4307
4306
|
onSelect: function() {
|
|
4308
4307
|
var newOption = {
|
|
4309
4308
|
value: searchQuery,
|
|
@@ -4033,9 +4033,12 @@ function SearchSelect(param) {
|
|
|
4033
4033
|
]);
|
|
4034
4034
|
var filteredOptions = useMemo5(function() {
|
|
4035
4035
|
if (!searchQuery) return allOptions;
|
|
4036
|
-
|
|
4036
|
+
var result = allOptions.filter(function(option) {
|
|
4037
4037
|
return option.label.toLowerCase().includes(searchQuery.toLowerCase());
|
|
4038
4038
|
});
|
|
4039
|
+
console.log("searchQuery:", searchQuery);
|
|
4040
|
+
console.log("result", result);
|
|
4041
|
+
return result;
|
|
4039
4042
|
}, [
|
|
4040
4043
|
allOptions,
|
|
4041
4044
|
searchQuery,
|
|
@@ -4051,10 +4054,6 @@ function SearchSelect(param) {
|
|
|
4051
4054
|
allOptions,
|
|
4052
4055
|
selectPlaceholder
|
|
4053
4056
|
]);
|
|
4054
|
-
console.log("searchQuery:", searchQuery);
|
|
4055
|
-
console.log("filteredOptions:", filteredOptions.map(function(item) {
|
|
4056
|
-
return item.label;
|
|
4057
|
-
}));
|
|
4058
4057
|
console.log("display create :", createNewOptionLabel && filteredOptions.length === 0 && searchQuery !== "");
|
|
4059
4058
|
return /* @__PURE__ */ jsxs10("div", {
|
|
4060
4059
|
style: {
|
|
@@ -4108,7 +4107,7 @@ function SearchSelect(param) {
|
|
|
4108
4107
|
}
|
|
4109
4108
|
}),
|
|
4110
4109
|
/* @__PURE__ */ jsx15(CommandList, {
|
|
4111
|
-
children: filteredOptions.length === 0
|
|
4110
|
+
children: filteredOptions.length === 0 && searchQuery !== "" ? createNewOptionLabel ? /* @__PURE__ */ jsx15(CommandItem, {
|
|
4112
4111
|
onSelect: function() {
|
|
4113
4112
|
var newOption = {
|
|
4114
4113
|
value: searchQuery,
|