@datorama/core 22.5.5 → 22.6.0

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.
@@ -11977,11 +11977,23 @@ function deepmerge(target, source, optionsArgument) {
11977
11977
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
11978
11978
  */
11979
11979
  var DatoGridV2NoDataOverlayComponent = /** @class */ (function () {
11980
- function DatoGridV2NoDataOverlayComponent(gridQuery, gridService) {
11980
+ function DatoGridV2NoDataOverlayComponent(gridQuery, gridService, element) {
11981
11981
  this.gridQuery = gridQuery;
11982
11982
  this.gridService = gridService;
11983
+ this.element = element;
11983
11984
  this.config = {};
11984
11985
  }
11986
+ Object.defineProperty(DatoGridV2NoDataOverlayComponent.prototype, "showImage", {
11987
+ get: function () {
11988
+ var elParent = this.element.nativeElement.parentElement;
11989
+ if (elParent.classList.contains('ag-overlay-wrapper')) {
11990
+ return elParent.offsetHeight >= 390;
11991
+ }
11992
+ return true;
11993
+ },
11994
+ enumerable: true,
11995
+ configurable: true
11996
+ });
11985
11997
  DatoGridV2NoDataOverlayComponent.prototype.ngOnInit = function () {
11986
11998
  this.filterActive$ = this.gridQuery.filterActive$;
11987
11999
  this.hasError$ = this.gridQuery.isServerSide ? this.gridQuery.serverSideError$ : of(false);
@@ -12013,7 +12025,8 @@ var DatoGridV2NoDataOverlayComponent = /** @class */ (function () {
12013
12025
  };
12014
12026
  DatoGridV2NoDataOverlayComponent.ctorParameters = function () { return [
12015
12027
  { type: GridQuery },
12016
- { type: GridService }
12028
+ { type: GridService },
12029
+ { type: ElementRef }
12017
12030
  ]; };
12018
12031
  __decorate([
12019
12032
  Input(),
@@ -12022,11 +12035,11 @@ var DatoGridV2NoDataOverlayComponent = /** @class */ (function () {
12022
12035
  DatoGridV2NoDataOverlayComponent = __decorate([
12023
12036
  Component({
12024
12037
  selector: 'dato-grid-v2-no-data-overlay',
12025
- template: "<div class=\"container d-flex-column align-center\">\n <ng-container *ngIf=\"(hasError$ | async) === false; else error\">\n <ng-container *ngIf=\"(filterActive$ | async) === true; else noData\">\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.noResult }\"></ng-container>\n <div class=\"d-flex items-center\">\n <div class=\"dato-simple primary-400-color\">{{'core.try-to-adjust-or' | translate}}&nbsp;</div>\n <dato-link (click)=\"clearFilters()\">{{ 'core.clear-filters' | translate }}</dato-link>\n </div>\n </ng-container>\n <ng-template #noData>\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.noData}\"></ng-container>\n <ng-content select=\"[no-data-content]\"></ng-content>\n </ng-template>\n\n </ng-container>\n <ng-template #error>\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.serverSideError}\"></ng-container>\n <div #errorContent><ng-content select=\"[server-error-content]\"></ng-content></div>\n <div class=\"dato-simple primary-400-color\" *ngIf=\"errorContent.children.length === 0\">{{'core.try-to-refresh-or-contact' | translate}}&nbsp;</div>\n </ng-template>\n</div>\n\n<ng-template #imgNText let-view>\n <img class=\"mb-30\" [datoStaticSrc]=\"view.icon\">\n <div class=\"dato-simple-bold primary-500-color mb-3\">{{ view.text | translate }}</div>\n</ng-template>\n",
12038
+ template: "<div class=\"container d-flex-column align-center\">\n <ng-container *ngIf=\"(hasError$ | async) === false; else error\">\n <ng-container *ngIf=\"(filterActive$ | async) === true; else noData\">\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.noResult }\"></ng-container>\n <div class=\"d-flex items-center\">\n <div class=\"dato-simple primary-400-color\">{{'core.try-to-adjust-or' | translate}}&nbsp;</div>\n <dato-link (click)=\"clearFilters()\">{{ 'core.clear-filters' | translate }}</dato-link>\n </div>\n </ng-container>\n <ng-template #noData>\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.noData}\"></ng-container>\n <ng-content select=\"[no-data-content]\"></ng-content>\n </ng-template>\n\n </ng-container>\n <ng-template #error>\n <ng-container *ngTemplateOutlet=\"imgNText; context: {$implicit: mergedConfig.serverSideError}\"></ng-container>\n <div #errorContent><ng-content select=\"[server-error-content]\"></ng-content></div>\n <div class=\"dato-simple primary-400-color\" *ngIf=\"errorContent.children.length === 0\">{{'core.try-to-refresh-or-contact' | translate}}&nbsp;</div>\n </ng-template>\n</div>\n\n<ng-template #imgNText let-view>\n <img class=\"mb-30\" [datoStaticSrc]=\"view.icon\" *ngIf=\"showImage && view.icon\">\n <div class=\"dato-simple-bold primary-500-color mb-3\">{{ view.text | translate }}</div>\n</ng-template>\n",
12026
12039
  changeDetection: ChangeDetectionStrategy.OnPush,
12027
12040
  styles: [":host{pointer-events:all}"]
12028
12041
  }),
12029
- __metadata("design:paramtypes", [GridQuery, GridService])
12042
+ __metadata("design:paramtypes", [GridQuery, GridService, ElementRef])
12030
12043
  ], DatoGridV2NoDataOverlayComponent);
12031
12044
  return DatoGridV2NoDataOverlayComponent;
12032
12045
  }());
@@ -25212,7 +25225,7 @@ function fixNgLeaks() {
25212
25225
  };
25213
25226
  }
25214
25227
 
25215
- window.coreVersion = '22.5.5';
25228
+ window.coreVersion = '22.6.0';
25216
25229
 
25217
25230
  /**
25218
25231
  * @license