diff --git a/documentation.json b/documentation.json index 481290f..a7d7c55 100644 --- a/documentation.json +++ b/documentation.json @@ -205,6 +205,53 @@ "Aanvraag" ] }, + { + "name": "AanvraagRow", + "id": "interface-AanvraagRow-709f25c5f5290c2ead0c51d4c8fcc6607c66946560c07a1d3ea16be67c7442feaeefd021ced4f77b685484dec39e1ff5e7b7122472530b51887f573a69576956", + "file": "src/app/registratie/domain/aanvraag-view.ts", + "deprecated": false, + "deprecationMessage": "", + "type": "interface", + "sourceCode": "import { Aanvraag, AanvraagType } from './aanvraag';\n\n/** View-model mapping for an aanvraag: type → label, and a submitted aanvraag →\n the CIBG \"aanvragen\" row fields (heading/status/subtitle). Pure, no Angular —\n the UI renders these, it does not derive them. */\n\nexport const TYPE_LABELS: Record = {\n registratie: $localize`:@@aanvraagBlock.type.registratie:Inschrijving`,\n herregistratie: $localize`:@@aanvraagBlock.type.herregistratie:Herregistratie`,\n intake: $localize`:@@aanvraagBlock.type.intake:Herregistratie-intake`,\n};\n\nexport interface AanvraagRow {\n heading: string;\n /** Reference + submit-date line (the `.status` line of an aanvragen row). */\n status: string;\n /** Secondary note: manual-review notice or rejection reason. */\n subtitle: string;\n}\n\nfunction formatNL(iso?: string): string {\n return iso ? new Date(iso).toLocaleDateString('nl-NL', { day: 'numeric', month: 'long', year: 'numeric' }) : '';\n}\n\n/** Fields for a submitted aanvraag's row (Concept has no row — it renders as a\n resumable melding, see aanvraag-block). */\nexport function submittedRow(a: Aanvraag): AanvraagRow {\n const s = a.status;\n const heading = TYPE_LABELS[a.type];\n switch (s.tag) {\n case 'Concept':\n return { heading, status: '', subtitle: '' };\n case 'InBehandeling':\n return {\n heading,\n status: $localize`:@@aanvraagBlock.inBehandeling:Referentie ${s.referentie}:ref: · ingediend op ${formatNL(a.submittedAt)}:datum:`,\n subtitle: s.manual ? $localize`:@@aanvraagBlock.manual:Uw aanvraag wordt handmatig beoordeeld in de backoffice.` : '',\n };\n case 'Goedgekeurd':\n return { heading, status: $localize`:@@aanvraagBlock.goedgekeurd:Referentie ${s.referentie}:ref:`, subtitle: '' };\n case 'Afgewezen':\n return { heading, status: $localize`:@@aanvraagBlock.afgewezen:Referentie ${s.referentie}:ref:`, subtitle: s.reden };\n }\n}\n", + "properties": [ + { + "name": "heading", + "deprecated": false, + "deprecationMessage": "", + "type": "string", + "indexKey": "", + "optional": false, + "description": "", + "line": 14 + }, + { + "name": "status", + "deprecated": false, + "deprecationMessage": "", + "type": "string", + "indexKey": "", + "optional": false, + "description": "

Reference + submit-date line (the .status line of an aanvragen row).

\n", + "line": 16, + "rawdescription": "\nReference + submit-date line (the `.status` line of an aanvragen row)." + }, + { + "name": "subtitle", + "deprecated": false, + "deprecationMessage": "", + "type": "string", + "indexKey": "", + "optional": false, + "description": "

Secondary note: manual-review notice or rejection reason.

\n", + "line": 18, + "rawdescription": "\nSecondary note: manual-review notice or rejection reason." + } + ], + "indexSignatures": [], + "kind": 172, + "methods": [], + "extends": [] + }, { "name": "AanvraagStatusDto", "id": "interface-AanvraagStatusDto-134629d19fe3b5e6a76daeb4f10c282202eb1b8380b939c25450bb44b86fcb3df7a15e5ead886ad958b8bb7f158457387fb6c11872acdb4893c4933c2fdef07b", @@ -10958,7 +11005,7 @@ "components": [ { "name": "AanvraagBlockComponent", - "id": "component-AanvraagBlockComponent-435c9a2cad5ba9d488a371453d36c03838e040797afaa9e56c719a7387dbb02923f1120c04171fca018937ef6540cfddb6ec58756ecb46dda201a5e8f8c3e2e8", + "id": "component-AanvraagBlockComponent-1ccaaa78db12437d5e4a16a428b09c17e65acf55cd86363d6337d04ec1bb9193c69920bdb9454d3bac8a454bbb54d0dafdd7288e24ab751b6e6ea56ded2612eb", "file": "src/app/registratie/ui/aanvraag-block/aanvraag-block.component.ts", "encapsulation": [], "entryComponents": [], @@ -10968,9 +11015,9 @@ "selector": "app-aanvraag-block", "styleUrls": [], "styles": [ - "\n :host{display:contents} /* see choice-link.component.ts (keeps
  • a direct