Repository navigation
@quazardous/qdadm@1.20.0
Minor Changes
-
062006e: Add
<ParentCard>— a normalized parent detail cartouche for embedding at the top of a childListPage(the "B2" hybrid composition, qdadm #1038).On a child-list route,
useListPagealready resolves and exposes the parent record (parentData/parentLoading) with no extra fetch.<ParentCard>renders it read-only above the table, auto-deriving its fields from the parent entity's manager and using the same field resolver asShowPage, so the cartouche looks exactly like a real detail page:<template #beforeTable> <ParentCard :entity="'books'" :data="list.parentData.value" :loading="list.parentLoading.value" /> </template>
Pass
fieldsto restrict/order the displayed fields, or use the default slot to render the parent yourself with the resolved field set. Works whether the child route comes fromctx.crud(...,{foreignKey})orctx.childPage()— it only depends onparentData.Internally, the show field-resolver (schema-type → display-type mapping, auto reference routes, severity badges) was extracted into a shared
createShowFieldResolverused by bothuseEntityItemShowPageand<ParentCard>— no behavior change to existing show pages.