diff --git a/src/facies/app.vue b/src/facies/app.vue index 4687aeb..60d7628 100644 --- a/src/facies/app.vue +++ b/src/facies/app.vue @@ -208,8 +208,8 @@ diff --git a/src/facies/calculare.vue b/src/facies/calculare.vue index 313c480..0c759af 100644 --- a/src/facies/calculare.vue +++ b/src/facies/calculare.vue @@ -9,7 +9,7 @@ romanus: string }; - const numerus: Numerus | null = null; + const numerus = defineModel(); const operator: string = ''; const nihil: numeri = { diff --git a/src/facies/inflectere.vue b/src/facies/inflectere.vue index 51a72da..9afb8a9 100644 --- a/src/facies/inflectere.vue +++ b/src/facies/inflectere.vue @@ -8,7 +8,9 @@ defineProps<{ id: Hoc; }>(); - const eventus = defineModel(); + const eventus = defineModel('eventus'); + const verbum = defineModel('verbum'); + const categoria: string = eventus.value?.categoria ?? ''; const agendum: Faciendum = eventus.value?.referendum as Faciendum; const tabula: Tabula | null = agendum?.putetur(); @@ -54,8 +56,8 @@ selecta: selecta, verba: verba, eventus: eventus, + verbum: verbum, onerans: true, - verbum: null, et: { gradus: '', genus: '' @@ -89,7 +91,7 @@ if (this.figura === 'numeramenAgendum') { const referendum: Referendum = (this.agendum as Agenda.NumeramenAgendum).referatur(numeramen.numerium); if (referendum instanceof Numerus) { - this.verba = referendum as Numerus; + this.verbum = referendum as Numerus; } else if (referendum instanceof Agenda.NomenAgendum) { this.eventus = { referendum: referendum as Agenda.NomenAgendum, @@ -113,10 +115,17 @@ this.verbum = verbum; }, - refer (eventus: Eventus): void { - this.eventus = eventus; + refer (eventus: { + referendum?: Referendum; + categoria: string; + }): void { + if (eventus.referendum) { + this.eventus = { + referendum: eventus.referendum, + categoria: eventus.categoria + }; + }; } - }, async mounted (): Promise { @@ -134,22 +143,23 @@