@esfaenza/es-table 15.2.17 → 15.2.18

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.
@@ -4190,6 +4190,22 @@ class EsTableComponent {
4190
4190
  this.selection_H = new SelectionHandler(this, this.rowGrouping_H);
4191
4191
  if (ngControl)
4192
4192
  ngControl.valueAccessor = this;
4193
+ }
4194
+ /** @ignore */
4195
+ ngOnInit() {
4196
+ // click destro su una riga con selezione attiva: Tiro fuori il context menu e selezione l'elemento corrente
4197
+ this.ctxMenuSubscription = (this.ContextMenu || this.tableEmptyMenu).open.subscribe(t => {
4198
+ // Gruppi va bene, oggetti pure, ma separatori fra gruppi proprio no...
4199
+ if (t.item._sep)
4200
+ return;
4201
+ let shouldEmit = !t.item._selected;
4202
+ t.item._selected = true;
4203
+ this.selection_H.clearSelectionStatusExcluding(null);
4204
+ var itemSelection = this.selection_H.handleItemsSelection([t.item]);
4205
+ this.changed();
4206
+ if (shouldEmit)
4207
+ this.onSelectionChanged.emit(itemSelection);
4208
+ });
4193
4209
  // Assegnazione per tutti gli Input di default
4194
4210
  this.ColumnsResizable = this.utilities_H.InputOrDefault(this.ColumnsResizable, this.deafults?.ColumnsResizable);
4195
4211
  this.AutoUpdate = this.utilities_H.InputOrDefault(this.AutoUpdate, this.deafults?.AutoUpdate);
@@ -4211,22 +4227,6 @@ class EsTableComponent {
4211
4227
  this.DefaultAlignment = this.utilities_H.InputOrDefault(this.DefaultAlignment, this.deafults?.DefaultAlignment, 'Left');
4212
4228
  }
4213
4229
  /** @ignore */
4214
- ngOnInit() {
4215
- // click destro su una riga con selezione attiva: Tiro fuori il context menu e selezione l'elemento corrente
4216
- this.ctxMenuSubscription = (this.ContextMenu || this.tableEmptyMenu).open.subscribe(t => {
4217
- // Gruppi va bene, oggetti pure, ma separatori fra gruppi proprio no...
4218
- if (t.item._sep)
4219
- return;
4220
- let shouldEmit = !t.item._selected;
4221
- t.item._selected = true;
4222
- this.selection_H.clearSelectionStatusExcluding(null);
4223
- var itemSelection = this.selection_H.handleItemsSelection([t.item]);
4224
- this.changed();
4225
- if (shouldEmit)
4226
- this.onSelectionChanged.emit(itemSelection);
4227
- });
4228
- }
4229
- /** @ignore */
4230
4230
  ngAfterViewInit() {
4231
4231
  // Se utilizzo la new spicy mode deduco tutti i parametri di lavoro possibili al caricamento della tabella
4232
4232
  // Vengono sovrascritte solo le proprietà non impostate dall'utente