pdf sheets from new excel

This commit is contained in:
2026-01-23 13:10:08 +01:00
parent 899b3c7ed4
commit e5e2b646a0
53 changed files with 447 additions and 53 deletions

View File

@@ -62,14 +62,8 @@ export function DatasheetDocument(props: { model: DatasheetModel; assets: Assets
<Footer locale={model.locale} siteUrl={CONFIG.siteUrl} />
{model.voltageTables.map((t: DatasheetVoltageTable) => (
<View key={t.voltageLabel}>
<Section
title={`${model.labels.crossSection}${t.voltageLabel}`}
// Prevent orphaned voltage headings at page bottom; let the rest flow.
minPresenceAhead={140}
>
{t.metaItems.length ? <KeyValueGrid items={t.metaItems} /> : null}
</Section>
<View key={t.voltageLabel} style={{ marginBottom: 14 }}>
<Text style={styles.sectionTitle}>{`${model.labels.crossSection}${t.voltageLabel}`}</Text>
<DenseTable table={{ columns: t.columns, rows: t.rows }} firstColLabel={firstColLabel} />
</View>