avine-react-components
Advanced tools
Comparing version 0.1.53 to 0.1.54
@@ -497,9 +497,11 @@ "use strict"; | ||
const handleFilterData = (data2, search) => { | ||
const length = data2.length; | ||
const dataLength = data2.length; | ||
const results = []; | ||
search = search.toLowerCase().trim(); | ||
for (let i = 0; i < length; i++) { | ||
const values = Object.values(data2[i]).join(" ").toLowerCase(); | ||
if (values.includes(search)) | ||
results.push(data2[i]); | ||
for (let i = 0; i < dataLength; i++) { | ||
for (let j = 0; j < innerColumns.length; j++) { | ||
const values = getNestedValues(innerColumns[j].key, data2[i]).toString().toLowerCase(); | ||
if (values.includes(search)) | ||
results.push(data2[i]); | ||
} | ||
} | ||
@@ -530,3 +532,3 @@ const sortedColumn = innerColumns.find((x) => x.sortableOrder); | ||
import_xlsx.utils.book_append_sheet(workbook, worksheet, "test"); | ||
(0, import_xlsx.writeFileXLSX)(workbook, "export.xlsx"); | ||
(0, import_xlsx.writeFileXLSX)(workbook, `export_${(/* @__PURE__ */ new Date()).toISOString().replace(/([A-Z]?(\:?\.?\-?)?)/gi, "")}.xlsx`); | ||
}; | ||
@@ -533,0 +535,0 @@ (0, import_react5.useEffect)(() => setInnerColumns(columns), [columns]); |
@@ -13,4 +13,3 @@ export { ETableColumnOrder, Table, TableColumn, TableProps } from './components/table/table.js'; | ||
export { usePagination } from './hooks/use-pagination.js'; | ||
export { UTCDateToLocalDateString, dateToInputDateString, formatCpfCnpj } from './utils.js'; | ||
export { NotificationContext, NotificationProvider } from './contexts/notification-context.js'; | ||
import 'react'; |
{ | ||
"name": "avine-react-components", | ||
"version": "0.1.53", | ||
"version": "0.1.54", | ||
"license": "MIT", | ||
@@ -24,2 +24,6 @@ "description": "", | ||
"author": "Carlos Daniel", | ||
"peerDependencies": { | ||
"react": "^16 || ^17 || ^18", | ||
"react-dom": "^16 || ^17 || ^18" | ||
}, | ||
"devDependencies": { | ||
@@ -26,0 +30,0 @@ "@storybook/addon-essentials": "^8.0.0", |
@@ -17,4 +17,6 @@ export * from './components/table/table'; | ||
export * from './utils'; | ||
export * from './utils/date-to-input-date-string'; | ||
export * from './utils/format-cpf-cnpj'; | ||
export * from './utils/utc-date-to-local-date-string'; | ||
export * from './contexts/notification-context'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241
10512926
9
22156