@ssplib/react-components 0.0.138 → 0.0.139
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.
|
@@ -521,7 +521,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
|
|
|
521
521
|
setPagCount(getCount(rawList));
|
|
522
522
|
setCurrentPage(0);
|
|
523
523
|
setListPage(1);
|
|
524
|
-
setFilterOpen(false)
|
|
524
|
+
// setFilterOpen(false)
|
|
525
525
|
};
|
|
526
526
|
const handleFilterOption = (type, keyName, uniqueName, customValue, referencekey) => {
|
|
527
527
|
setAppliedFilters((s) => [
|
|
@@ -629,10 +629,7 @@ function Table({ columns, fetchFunc, emptyMsg = {
|
|
|
629
629
|
react_1.default.createElement(material_1.Button, { type: 'submit', variant: 'outlined', startIcon: react_1.default.createElement(icons_material_1.CalendarToday, null) }, "Filtrar por Data"))))) : (react_1.default.createElement(material_1.ListItemButton, { sx: { pl: 4, borderBottom: 1, borderColor: '#ebeef2' } },
|
|
630
630
|
react_1.default.createElement(material_1.ListItemIcon, { sx: { minWidth: '25px' } }, x.type === 'a-z' || x.type === 'data-a-z' ? (react_1.default.createElement(icons_material_1.South, { transform: 'scale(0.5)' })) : x.type === 'z-a' || x.type === 'data-z-a' ? (react_1.default.createElement(icons_material_1.North, { transform: 'scale(0.5)' })) : null),
|
|
631
631
|
react_1.default.createElement(material_1.ListItemText, { primary: x.name, onClick: (e) => handleFilterOption(x.type, x.keyName, `${f}:${JSON.stringify(x)}`) })))))))))))),
|
|
632
|
-
react_1.default.createElement(material_1.Button, { variant: 'contained', onClick: handleFilterReset, startIcon: react_1.default.createElement(icons_material_1.RestartAlt, null), sx: { marginX: 2, marginBottom: 2 } }, "Reiniciar")
|
|
633
|
-
react_1.default.createElement(material_1.Box, null,
|
|
634
|
-
react_1.default.createElement(Typography_1.default, null, "Filtros aplicados:"),
|
|
635
|
-
react_1.default.createElement(material_1.Stack, null, appliedFilters.map((x) => (react_1.default.createElement(material_1.Box, null, JSON.stringify(x)))))))));
|
|
632
|
+
react_1.default.createElement(material_1.Button, { variant: 'contained', onClick: handleFilterReset, startIcon: react_1.default.createElement(icons_material_1.RestartAlt, null), sx: { marginX: 2, marginBottom: 2 } }, "Reiniciar"))));
|
|
636
633
|
}
|
|
637
634
|
exports.Table = Table;
|
|
638
635
|
exports.default = react_1.default.memo(Table);
|