Conectar: Configuración and Avanzado tabs, rows instead of JSON, field titles as keys, captions that fit their nodes

This commit is contained in:
Roberto Treviño
2026-11-29 15:24:24 -06:00
parent b48c025400
commit bb506c3926
8 changed files with 498 additions and 61 deletions
+10
View File
@@ -204,6 +204,16 @@ export class SourceDialog {
}
/** The tables a database listed, for its table field. */
/** A list answer (the columns picked), as a list. */
protected listed(name: string): string[] {
const v = this.value(name);
return Array.isArray(v) ? (v as string[]) : [];
}
/** The columns to pick from: the first rows', and those already picked. */
protected columnOptions(name: string): string[] {
return [...new Set([...this.columns(), ...this.listed(name)])];
}
protected tables(): string[] {
return this.tableList();
}