react-better-html 1.1.215 → 1.1.216
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -782,7 +782,7 @@ type ListFilter<DataItem> = {
|
|
|
782
782
|
filter?: "list";
|
|
783
783
|
withTotalNumber?: boolean;
|
|
784
784
|
withSearch?: boolean;
|
|
785
|
-
list: TableListFilterListItem[];
|
|
785
|
+
list: (TableListFilterListItem | undefined)[];
|
|
786
786
|
getItemValue?: (item: DataItem) => ListFilterValue["value"];
|
|
787
787
|
};
|
|
788
788
|
type TableColumn<DataItem> = {
|
package/dist/index.d.ts
CHANGED
|
@@ -782,7 +782,7 @@ type ListFilter<DataItem> = {
|
|
|
782
782
|
filter?: "list";
|
|
783
783
|
withTotalNumber?: boolean;
|
|
784
784
|
withSearch?: boolean;
|
|
785
|
-
list: TableListFilterListItem[];
|
|
785
|
+
list: (TableListFilterListItem | undefined)[];
|
|
786
786
|
getItemValue?: (item: DataItem) => ListFilterValue["value"];
|
|
787
787
|
};
|
|
788
788
|
type TableColumn<DataItem> = {
|
package/dist/index.js
CHANGED
|
@@ -8519,7 +8519,7 @@ var TableComponent = (0, import_react27.forwardRef)(function Table({
|
|
|
8519
8519
|
}, [data, checkedItems]);
|
|
8520
8520
|
const possibleFilterListValues = (0, import_react27.useMemo)(() => {
|
|
8521
8521
|
if (!openedFilterColumn || openedFilterColumn.filter !== "list") return [];
|
|
8522
|
-
return openedFilterColumn.list.map((item) => ({
|
|
8522
|
+
return openedFilterColumn.list.filter((item) => item !== void 0).map((item) => ({
|
|
8523
8523
|
...item,
|
|
8524
8524
|
count: data.reduce((previousValue, currentValue) => {
|
|
8525
8525
|
const value = openedFilterColumn.getItemValue?.(currentValue) ?? (openedFilterColumn.type === "text" && openedFilterColumn.keyName ? String(currentValue[openedFilterColumn.keyName]) : "");
|