implementado typescript 7

This commit is contained in:
Luiz Silva 2026-08-03 16:48:50 -03:00
parent cd4ea4d36b
commit e9a323f18c
80 changed files with 5711 additions and 2455 deletions

10
dist-front/texto_busca.js Normal file
View file

@ -0,0 +1,10 @@
/** gerar o texto de busca removendo caracteres especies e caixa alta */
export const texto_busca = (...texto) => texto
.map((txt) => txt === null || txt === undefined
? ""
: String(txt)
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/\s+/g, " ")
.toLowerCase())
.join(" ");