|
|
|
@ -34,6 +34,7 @@ import { gridListMorfo } from '$uix/morfo/components/grid-list';
|
|
|
|
import { listboxMorfo } from '$uix/morfo/components/listbox';
|
|
|
|
import { listboxMorfo } from '$uix/morfo/components/listbox';
|
|
|
|
import { meterMorfo } from '$uix/morfo/components/meter';
|
|
|
|
import { meterMorfo } from '$uix/morfo/components/meter';
|
|
|
|
import { navigationMenuMorfo } from '$uix/morfo/components/navigation-menu';
|
|
|
|
import { navigationMenuMorfo } from '$uix/morfo/components/navigation-menu';
|
|
|
|
|
|
|
|
import { paginationMorfo } from '$uix/morfo/components/pagination';
|
|
|
|
import { pinInputMorfo } from '$uix/morfo/components/pin-input';
|
|
|
|
import { pinInputMorfo } from '$uix/morfo/components/pin-input';
|
|
|
|
import { progressMorfo } from '$uix/morfo/components/progress';
|
|
|
|
import { progressMorfo } from '$uix/morfo/components/progress';
|
|
|
|
import { ratingGroupMorfo } from '$uix/morfo/components/rating-group';
|
|
|
|
import { ratingGroupMorfo } from '$uix/morfo/components/rating-group';
|
|
|
|
@ -43,6 +44,8 @@ import { splitterMorfo } from '$uix/morfo/components/splitter';
|
|
|
|
import { tagGroupMorfo } from '$uix/morfo/components/tag-group';
|
|
|
|
import { tagGroupMorfo } from '$uix/morfo/components/tag-group';
|
|
|
|
import { tagsInputMorfo } from '$uix/morfo/components/tags-input';
|
|
|
|
import { tagsInputMorfo } from '$uix/morfo/components/tags-input';
|
|
|
|
import { stepperMorfo } from '$uix/morfo/components/stepper';
|
|
|
|
import { stepperMorfo } from '$uix/morfo/components/stepper';
|
|
|
|
|
|
|
|
import { tableMorfo } from '$uix/morfo/components/table';
|
|
|
|
|
|
|
|
import { treeGridMorfo } from '$uix/morfo/components/tree-grid';
|
|
|
|
import { treeViewMorfo } from '$uix/morfo/components/tree-view';
|
|
|
|
import { treeViewMorfo } from '$uix/morfo/components/tree-view';
|
|
|
|
|
|
|
|
|
|
|
|
const minimalLang = { schema: {} satisfies LangNode, defaultLocale: 'es' as const };
|
|
|
|
const minimalLang = { schema: {} satisfies LangNode, defaultLocale: 'es' as const };
|
|
|
|
@ -243,6 +246,14 @@ describe('createActiveUix (standalone)', () => {
|
|
|
|
expect(uix.langs.t('components.tag-group.remove', { tag: 'UIX' })).toBe('Eliminar UIX');
|
|
|
|
expect(uix.langs.t('components.tag-group.remove', { tag: 'UIX' })).toBe('Eliminar UIX');
|
|
|
|
expect(uix.langs.t('components.tags-input.remove')).toBe('Eliminar etiqueta');
|
|
|
|
expect(uix.langs.t('components.tags-input.remove')).toBe('Eliminar etiqueta');
|
|
|
|
expect(uix.langs.t('components.tags-input.clear')).toBe('Limpiar todas las etiquetas');
|
|
|
|
expect(uix.langs.t('components.tags-input.clear')).toBe('Limpiar todas las etiquetas');
|
|
|
|
|
|
|
|
registerMorfo(treeGridMorfo);
|
|
|
|
|
|
|
|
registerMorfo(tableMorfo);
|
|
|
|
|
|
|
|
registerMorfo(paginationMorfo);
|
|
|
|
|
|
|
|
expect(uix.langs.t('components.tree-grid.expand')).toBe('Expandir fila');
|
|
|
|
|
|
|
|
expect(uix.langs.t('components.tree-grid.toggle')).toBe('Alternar fila');
|
|
|
|
|
|
|
|
expect(uix.langs.t('components.table.row-detail-collapse')).toBe('Ocultar detalles');
|
|
|
|
|
|
|
|
expect(uix.langs.t('components.table.toggle-detail')).toBe('Alternar detalle');
|
|
|
|
|
|
|
|
expect(uix.langs.t('components.pagination.page', { value: 4 })).toBe('Página 4');
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
uix.dispose();
|
|
|
|
uix.dispose();
|
|
|
|
_resetMorfoRegistryForTesting();
|
|
|
|
_resetMorfoRegistryForTesting();
|
|
|
|
|