diff --git a/.gitignore b/.gitignore index 48bbc048..60db8bdd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Python __pycache__/ +.mypy_cache/ *.py[cod] *$py.class *.so diff --git a/frontend/src/lib/components/dashboard/shared/modals/sector-selector-dialog.svelte b/frontend/src/lib/components/dashboard/shared/modals/sector-selector-dialog.svelte new file mode 100644 index 00000000..dffe17af --- /dev/null +++ b/frontend/src/lib/components/dashboard/shared/modals/sector-selector-dialog.svelte @@ -0,0 +1,226 @@ + + + + + + Seleccionar Sector PROSEC + + Seleccione el sector del catálogo. Escrolea para ver más. + + + + + + + + + + {#if loading && items.length === 0} + + + Cargando catálogo... + + {:else if items.length === 0} + + No se encontraron sectores. + + {:else} + + + + Clave + Descripción + Autorizado + + + + {#each items as item} + handleSelect(item)} + > + + + + + {item.key} + + + + + {item.description} + + + + {item.authorized ? 'Sí' : 'No'} + + + + {/each} + + + + + {#if loadingMore} + + {/if} + + {/if} + + + + + {items.length} de {totalItems} registros + + (open = false)}>Cancelar + + + diff --git a/frontend/src/lib/components/dashboard/shared/modals/state-selector-dialog.svelte b/frontend/src/lib/components/dashboard/shared/modals/state-selector-dialog.svelte new file mode 100644 index 00000000..eb6f9c4c --- /dev/null +++ b/frontend/src/lib/components/dashboard/shared/modals/state-selector-dialog.svelte @@ -0,0 +1,224 @@ + + + + + + Seleccionar Estado + + Seleccione el estado del catálogo. Escrolea para ver más. + + + + + + + + + + {#if loading && items.length === 0} + + + Cargando catálogo... + + {:else if items.length === 0} + + No se encontraron estados. + + {:else} + + + + Clave M3 + Descripción + MEX + + + + {#each items as item} + handleSelect(item)} + > + + + + + {item.m3_key} + + + + + {item.description} + + + {item.mex_key || '-'} + + + {/each} + + + + + {#if loadingMore} + + {/if} + + {/if} + + + + + {items.length} de {totalItems} registros + + (open = false)}>Cancelar + + +
Cargando catálogo...
No se encontraron sectores.
No se encontraron estados.