@datorama/core 22.13.0-beta.1 → 22.13.0-beta.3

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.
@@ -15773,9 +15773,12 @@
15773
15773
  this.rowHoverComponent && this.rowHoverComponent.destroy();
15774
15774
  this.rowHoverComponent = null;
15775
15775
  };
15776
- DatoGridControllerComponent.prototype.ngAfterContentInit = function () {
15777
- this.contentInit.next();
15778
- this.contentInit.complete();
15776
+ DatoGridControllerComponent.prototype.initializeGrid = function (agGrid, agGridEl) {
15777
+ if (!this.contentInit.isStopped) {
15778
+ this._initializeGrid(agGrid, agGridEl);
15779
+ this.contentInit.next();
15780
+ this.contentInit.complete();
15781
+ }
15779
15782
  };
15780
15783
  /* @internal */
15781
15784
  DatoGridControllerComponent.prototype._initializeGrid = function (agGrid, agGridEl) {
@@ -16237,8 +16240,10 @@
16237
16240
  }
16238
16241
  Object.defineProperty(DatoGridV2Component.prototype, "grid", {
16239
16242
  set: function (agGrid) {
16240
- var agGridEl = query('ag-grid-angular', this.host.nativeElement);
16241
- this.controller._initializeGrid(agGrid, agGridEl);
16243
+ if (agGrid) {
16244
+ var agGridEl = query('ag-grid-angular', this.host.nativeElement);
16245
+ this.controller.initializeGrid(agGrid, agGridEl);
16246
+ }
16242
16247
  },
16243
16248
  enumerable: true,
16244
16249
  configurable: true
@@ -16276,7 +16281,7 @@
16276
16281
  { type: core.ElementRef }
16277
16282
  ]; };
16278
16283
  __decorate([
16279
- core.ViewChild(agGridAngular.AgGridAngular, { static: true }),
16284
+ core.ViewChild(agGridAngular.AgGridAngular, { static: false }),
16280
16285
  __metadata("design:type", agGridAngular.AgGridAngular),
16281
16286
  __metadata("design:paramtypes", [agGridAngular.AgGridAngular])
16282
16287
  ], DatoGridV2Component.prototype, "grid", null);