@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.
@@ -15574,9 +15574,12 @@ var DatoGridControllerComponent = /** @class */ (function () {
15574
15574
  this.rowHoverComponent && this.rowHoverComponent.destroy();
15575
15575
  this.rowHoverComponent = null;
15576
15576
  };
15577
- DatoGridControllerComponent.prototype.ngAfterContentInit = function () {
15578
- this.contentInit.next();
15579
- this.contentInit.complete();
15577
+ DatoGridControllerComponent.prototype.initializeGrid = function (agGrid, agGridEl) {
15578
+ if (!this.contentInit.isStopped) {
15579
+ this._initializeGrid(agGrid, agGridEl);
15580
+ this.contentInit.next();
15581
+ this.contentInit.complete();
15582
+ }
15580
15583
  };
15581
15584
  /* @internal */
15582
15585
  DatoGridControllerComponent.prototype._initializeGrid = function (agGrid, agGridEl) {
@@ -16038,8 +16041,10 @@ var DatoGridV2Component = /** @class */ (function () {
16038
16041
  }
16039
16042
  Object.defineProperty(DatoGridV2Component.prototype, "grid", {
16040
16043
  set: function (agGrid) {
16041
- var agGridEl = query('ag-grid-angular', this.host.nativeElement);
16042
- this.controller._initializeGrid(agGrid, agGridEl);
16044
+ if (agGrid) {
16045
+ var agGridEl = query('ag-grid-angular', this.host.nativeElement);
16046
+ this.controller.initializeGrid(agGrid, agGridEl);
16047
+ }
16043
16048
  },
16044
16049
  enumerable: true,
16045
16050
  configurable: true
@@ -16077,7 +16082,7 @@ var DatoGridV2Component = /** @class */ (function () {
16077
16082
  { type: ElementRef }
16078
16083
  ]; };
16079
16084
  __decorate([
16080
- ViewChild(AgGridAngular, { static: true }),
16085
+ ViewChild(AgGridAngular, { static: false }),
16081
16086
  __metadata("design:type", AgGridAngular),
16082
16087
  __metadata("design:paramtypes", [AgGridAngular])
16083
16088
  ], DatoGridV2Component.prototype, "grid", null);