Merge pull request 'fix/frontend-build' (#340) from fix/frontend-build into development

Reviewed-on: ADUANASOFT/anexo76#340
This commit is contained in:
2026-04-28 14:36:45 +00:00
6 changed files with 12 additions and 12 deletions

View File

@@ -1,10 +1,10 @@
import * as generatedMessages from '$lib/paraglide/messages';
const normalizedMessageKeyCache = new Map();
const generatedMessagesAny = /** @type {Record<string, any>} */ (generatedMessages);
const normalizedMessageKeyCache = new Map<string, string>();
const generatedMessagesAny: Record<string, unknown> = generatedMessages;
export const m = new Proxy({}, {
get(_target, property) {
export const m = new Proxy({} as typeof generatedMessages, {
get(_target, property: string | symbol) {
if (typeof property !== 'string') {
return undefined;
}
@@ -36,4 +36,4 @@ export const m = new Proxy({}, {
return generatedMessagesAny[property];
}
});
}) as typeof generatedMessages;

View File

@@ -1244,7 +1244,7 @@
<div class="relative h-1.5 w-full overflow-hidden rounded-full bg-muted/70">
<div
class="csv-upload-indeterminate-bar absolute top-0 h-full w-2/5 rounded-full bg-primary"
/>
></div>
</div>
{:else}
<Progress

View File

@@ -125,8 +125,8 @@ const canOpenAcuse = $derived(selectedItem?.status === 'success' && !!selectedIt
selectedIds = [...selectedIds, item.id];
}
function handleSelectedIdsChange(ids: number[]) {
selectedIds = ids;
function handleSelectedIdsChange(ids: (string | number)[]) {
selectedIds = ids.map((id) => (typeof id === 'number' ? id : Number(id)));
}
async function handleDigitalizar(item: ExpedienteArchivo) {
@@ -441,6 +441,7 @@ async function handleDownloadArtifact(
<div class="mx-auto max-w-[1400px] px-4 py-4">
<div
role="toolbar"
tabindex="0"
aria-label="Acciones de digitalización"
data-digitalizacion-footer-toolbar
class="flex w-full items-center justify-end gap-2"

View File

@@ -61,8 +61,7 @@
const isError = $derived(!canView || status >= 400 || error);
// Pasamos canEdit y canDelete a las columnas por si tu DataTable tiene acciones por fila
const columns = createColumns({ canEdit, canDelete });
const columns = createColumns();
// --- Lifecycle ---
onMount(() => {

View File

@@ -774,7 +774,7 @@
onsubmit={(e) => {
e.preventDefault();
handleSubmit();
}
}}
class="space-y-6 pb-48"
>
<Card.Root>

View File

@@ -85,7 +85,7 @@
onsubmit={(e) => {
e.preventDefault();
handleSubmit();
}
}}
class="space-y-6"
>
{#if error}