@konoma-development/react-components 0.1.4 → 0.1.5
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.
|
@@ -24250,13 +24250,13 @@ function Table({
|
|
|
24250
24250
|
children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
|
|
24251
24251
|
Input$2,
|
|
24252
24252
|
{
|
|
24253
|
-
defaultValue: filters[column.filterKey],
|
|
24253
|
+
defaultValue: filters[column.filterKey]?.join(", "),
|
|
24254
24254
|
onKeyDown: async (e) => {
|
|
24255
24255
|
if (e.key === "Enter" && column.filterKey) {
|
|
24256
24256
|
const key = column.filterKey;
|
|
24257
24257
|
const value = e.currentTarget.value;
|
|
24258
24258
|
if (e) {
|
|
24259
|
-
await updateFilters({ ...filters, [key]: value });
|
|
24259
|
+
await updateFilters({ ...filters, [key]: [value] });
|
|
24260
24260
|
} else {
|
|
24261
24261
|
const newFilters = { ...filters };
|
|
24262
24262
|
delete newFilters[key];
|
|
@@ -24280,7 +24280,7 @@ function Table({
|
|
|
24280
24280
|
className: "h-10",
|
|
24281
24281
|
iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
|
|
24282
24282
|
},
|
|
24283
|
-
filters[column.filterKey]
|
|
24283
|
+
filters[column.filterKey]?.join(", ")
|
|
24284
24284
|
) })
|
|
24285
24285
|
},
|
|
24286
24286
|
Object.keys(filters).join("-")
|
|
@@ -24328,13 +24328,13 @@ function Table({
|
|
|
24328
24328
|
children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
|
|
24329
24329
|
Input$2,
|
|
24330
24330
|
{
|
|
24331
|
-
defaultValue: filters[column.filterKey],
|
|
24331
|
+
defaultValue: filters[column.filterKey]?.join(", "),
|
|
24332
24332
|
onKeyDown: async (e) => {
|
|
24333
24333
|
if (e.key === "Enter" && column.filterKey) {
|
|
24334
24334
|
const key = column.filterKey;
|
|
24335
24335
|
const value = e.currentTarget.value;
|
|
24336
24336
|
if (e) {
|
|
24337
|
-
await updateFilters({ ...filters, [key]: value });
|
|
24337
|
+
await updateFilters({ ...filters, [key]: [value] });
|
|
24338
24338
|
} else {
|
|
24339
24339
|
const newFilters = { ...filters };
|
|
24340
24340
|
delete newFilters[key];
|
|
@@ -24358,7 +24358,7 @@ function Table({
|
|
|
24358
24358
|
className: "h-10",
|
|
24359
24359
|
iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
|
|
24360
24360
|
},
|
|
24361
|
-
filters[column.filterKey]
|
|
24361
|
+
filters[column.filterKey]?.join(", ")
|
|
24362
24362
|
) })
|
|
24363
24363
|
},
|
|
24364
24364
|
Object.keys(filters).join("-")
|