@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.
@@ -3855,7 +3855,6 @@ class EsTableDefaultable {
3855
3855
  class EsTableComponent {
3856
3856
  /** @ignore */
3857
3857
  constructor(ngControl, prefService, deafults, lc, cdr, utilities_H, utiExts, expExts, dateExts, msgExts, copyPasteDetector, clipboardService, logger) {
3858
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
3859
3858
  this.ngControl = ngControl;
3860
3859
  this.prefService = prefService;
3861
3860
  this.deafults = deafults;
@@ -4208,6 +4207,23 @@ class EsTableComponent {
4208
4207
  this.selection_H = new SelectionHandler(this, this.rowGrouping_H);
4209
4208
  if (ngControl)
4210
4209
  ngControl.valueAccessor = this;
4210
+ }
4211
+ /** @ignore */
4212
+ ngOnInit() {
4213
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
4214
+ // click destro su una riga con selezione attiva: Tiro fuori il context menu e selezione l'elemento corrente
4215
+ this.ctxMenuSubscription = (this.ContextMenu || this.tableEmptyMenu).open.subscribe(t => {
4216
+ // Gruppi va bene, oggetti pure, ma separatori fra gruppi proprio no...
4217
+ if (t.item._sep)
4218
+ return;
4219
+ let shouldEmit = !t.item._selected;
4220
+ t.item._selected = true;
4221
+ this.selection_H.clearSelectionStatusExcluding(null);
4222
+ var itemSelection = this.selection_H.handleItemsSelection([t.item]);
4223
+ this.changed();
4224
+ if (shouldEmit)
4225
+ this.onSelectionChanged.emit(itemSelection);
4226
+ });
4211
4227
  // Assegnazione per tutti gli Input di default
4212
4228
  this.ColumnsResizable = this.utilities_H.InputOrDefault(this.ColumnsResizable, (_a = this.deafults) === null || _a === void 0 ? void 0 : _a.ColumnsResizable);
4213
4229
  this.AutoUpdate = this.utilities_H.InputOrDefault(this.AutoUpdate, (_b = this.deafults) === null || _b === void 0 ? void 0 : _b.AutoUpdate);
@@ -4229,22 +4245,6 @@ class EsTableComponent {
4229
4245
  this.DefaultAlignment = this.utilities_H.InputOrDefault(this.DefaultAlignment, (_t = this.deafults) === null || _t === void 0 ? void 0 : _t.DefaultAlignment, 'Left');
4230
4246
  }
4231
4247
  /** @ignore */
4232
- ngOnInit() {
4233
- // click destro su una riga con selezione attiva: Tiro fuori il context menu e selezione l'elemento corrente
4234
- this.ctxMenuSubscription = (this.ContextMenu || this.tableEmptyMenu).open.subscribe(t => {
4235
- // Gruppi va bene, oggetti pure, ma separatori fra gruppi proprio no...
4236
- if (t.item._sep)
4237
- return;
4238
- let shouldEmit = !t.item._selected;
4239
- t.item._selected = true;
4240
- this.selection_H.clearSelectionStatusExcluding(null);
4241
- var itemSelection = this.selection_H.handleItemsSelection([t.item]);
4242
- this.changed();
4243
- if (shouldEmit)
4244
- this.onSelectionChanged.emit(itemSelection);
4245
- });
4246
- }
4247
- /** @ignore */
4248
4248
  ngAfterViewInit() {
4249
4249
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
4250
4250
  // Se utilizzo la new spicy mode deduco tutti i parametri di lavoro possibili al caricamento della tabella