@esfaenza/es-table 20.3.52 → 20.3.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7667,6 +7667,8 @@ class EsTable2Component {
7667
7667
  * troncava (su una tabella di poche righe il menu usciva dal box e spariva).
7668
7668
  */
7669
7669
  this.menuAnchor = signal(null, ...(ngDevMode ? [{ debugName: "menuAnchor" }] : []));
7670
+ /** @ignore Colspan "copri tutto" per le colonne proiettate: il massimo ammesso da HTML */
7671
+ this.projectedColspan = 1000;
7670
7672
  /** Ultima cella già valutata per il tooltip (evita di rimisurare a ogni mousemove) */
7671
7673
  this.hoveredCell = null;
7672
7674
  // --- Ridimensionamento colonne ---------------------------------------------
@@ -10145,9 +10147,24 @@ class EsTable2Component {
10145
10147
  hasChrome() {
10146
10148
  return this.Export() || this.HiddenColumns() || this.ColumnsOrdering() || this.CornerMenuOptions().length > 0;
10147
10149
  }
10148
- /** Colspan totale per righe a piena larghezza (stato vuoto) */
10150
+ /**
10151
+ * Colspan delle righe a piena larghezza: lo stato vuoto ("nessun elemento") e gli
10152
+ * spaziatori dello scroll virtuale.
10153
+ *
10154
+ * Con un modello di colonne (direttive / dinamiche / report) il conto è esatto.
10155
+ * Con header e body **PROIETTATI** (`#header`/`#body`) no: le `<th>` le scrive il
10156
+ * consumer dentro un `TemplateRef` e il componente non sa quante siano — prima qui
10157
+ * si contava UNA colonna, quindi la riga vuota copriva solo le due o tre colonne di
10158
+ * chrome e il resto restava bianco. In quel caso si dichiara un colspan
10159
+ * deliberatamente più grande di qualsiasi tabella reale: il browser lo tronca al
10160
+ * numero di colonne che la tabella ha davvero, quindi la cella copre l'intera riga
10161
+ * senza inventare colonne né allargare la tabella (verificato in browser: larghezza
10162
+ * invariata e colonne delle righe vere ferme).
10163
+ */
10149
10164
  totalColspan() {
10150
- let n = this.usesColumns() ? this.visibleColumns().length : 1;
10165
+ if (!this.usesColumns())
10166
+ return this.projectedColspan;
10167
+ let n = this.visibleColumns().length;
10151
10168
  n += this.DynamicOperations().length;
10152
10169
  if (this.Selection())
10153
10170
  n++;