build
This commit is contained in:
parent
47b4d3c102
commit
7dc071373a
4 changed files with 454 additions and 451 deletions
797
dist/eli-vue.es.js
vendored
797
dist/eli-vue.es.js
vendored
File diff suppressed because one or more lines are too long
28
dist/eli-vue.umd.js
vendored
28
dist/eli-vue.umd.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eli-vue",
|
"name": "eli-vue",
|
||||||
"version": "0.1.127",
|
"version": "0.1.128",
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "./dist/eli-vue.umd.js",
|
"main": "./dist/eli-vue.umd.js",
|
||||||
"module": "./dist/eli-vue.es.js",
|
"module": "./dist/eli-vue.es.js",
|
||||||
|
|
|
||||||
|
|
@ -631,46 +631,47 @@ export default defineComponent({
|
||||||
const idCarregamento = ++carregamentoSequencial
|
const idCarregamento = ++carregamentoSequencial
|
||||||
carregando.value = true
|
carregando.value = true
|
||||||
erro.value = null
|
erro.value = null
|
||||||
acoesVisiveis.value = []
|
|
||||||
menuAberto.value = null
|
|
||||||
linhasExpandidas.value = {}
|
|
||||||
|
|
||||||
const limite = Math.max(1, registrosPorConsulta.value)
|
|
||||||
const offset = (paginaAtual.value - 1) * limite
|
|
||||||
|
|
||||||
const parametrosConsulta: {
|
|
||||||
// biome-ignore lint/suspicious/noExplicitAny: generic
|
|
||||||
filtros?: tipoFiltro<any>[]
|
|
||||||
coluna_ordem?: never
|
|
||||||
direcao_ordem?: "asc" | "desc"
|
|
||||||
offSet: number
|
|
||||||
limit: number
|
|
||||||
texto_busca?: string
|
|
||||||
} = {
|
|
||||||
offSet: offset,
|
|
||||||
limit: limite,
|
|
||||||
}
|
|
||||||
|
|
||||||
// Regra combinatória definida: busca tem prioridade.
|
|
||||||
const busca = (valorBusca.value ?? "").trim()
|
|
||||||
if (busca) {
|
|
||||||
parametrosConsulta.texto_busca = busca
|
|
||||||
} else {
|
|
||||||
const filtros = filtrosAvancadosAtivos.value
|
|
||||||
if (filtros.length) parametrosConsulta.filtros = filtros
|
|
||||||
}
|
|
||||||
|
|
||||||
if (colunaOrdenacao.value) {
|
|
||||||
parametrosConsulta.coluna_ordem = colunaOrdenacao.value as never
|
|
||||||
parametrosConsulta.direcao_ordem = direcaoOrdenacao.value
|
|
||||||
}
|
|
||||||
|
|
||||||
if (import.meta.env.DEV) {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log("[EliTabela] consulta(parametros)", parametrosConsulta)
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
acoesVisiveis.value = []
|
||||||
|
menuAberto.value = null
|
||||||
|
linhasExpandidas.value = {}
|
||||||
|
|
||||||
|
const limite = Math.max(1, registrosPorConsulta.value)
|
||||||
|
const offset = (paginaAtual.value - 1) * limite
|
||||||
|
|
||||||
|
const parametrosConsulta: {
|
||||||
|
// biome-ignore lint/suspicious/noExplicitAny: generic
|
||||||
|
filtros?: tipoFiltro<any>[]
|
||||||
|
coluna_ordem?: never
|
||||||
|
direcao_ordem?: "asc" | "desc"
|
||||||
|
offSet: number
|
||||||
|
limit: number
|
||||||
|
texto_busca?: string
|
||||||
|
} = {
|
||||||
|
offSet: offset,
|
||||||
|
limit: limite,
|
||||||
|
}
|
||||||
|
|
||||||
|
// Regra combinatória definida: busca tem prioridade.
|
||||||
|
const busca = (valorBusca.value ?? "").trim()
|
||||||
|
if (busca) {
|
||||||
|
parametrosConsulta.texto_busca = busca
|
||||||
|
} else {
|
||||||
|
const filtros = filtrosAvancadosAtivos.value
|
||||||
|
if (filtros.length) parametrosConsulta.filtros = filtros
|
||||||
|
}
|
||||||
|
|
||||||
|
if (colunaOrdenacao.value) {
|
||||||
|
parametrosConsulta.coluna_ordem = colunaOrdenacao.value as never
|
||||||
|
parametrosConsulta.direcao_ordem = direcaoOrdenacao.value
|
||||||
|
}
|
||||||
|
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log("[EliTabela] consulta(parametros)", parametrosConsulta)
|
||||||
|
}
|
||||||
|
|
||||||
const tabelaConfig = props.tabela
|
const tabelaConfig = props.tabela
|
||||||
const res = await tabelaConfig.consulta(parametrosConsulta)
|
const res = await tabelaConfig.consulta(parametrosConsulta)
|
||||||
|
|
||||||
|
|
@ -735,6 +736,7 @@ export default defineComponent({
|
||||||
acoesVisiveis.value = visibilidade
|
acoesVisiveis.value = visibilidade
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
console.error("[EliTabela] Erro capturado em carregar():", e)
|
||||||
if (idCarregamento !== carregamentoSequencial) return
|
if (idCarregamento !== carregamentoSequencial) return
|
||||||
|
|
||||||
linhas.value = []
|
linhas.value = []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue