@datorama/core 22.10.3-rc.0 → 22.10.9-rc.1

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.
Files changed (34) hide show
  1. package/bundle.scss +178 -11
  2. package/bundles/datorama-core.umd.js +128 -40
  3. package/bundles/datorama-core.umd.js.map +1 -1
  4. package/bundles/datorama-core.umd.min.js +38 -38
  5. package/bundles/datorama-core.umd.min.js.map +1 -1
  6. package/datorama-core.metadata.json +1 -1
  7. package/esm2015/lib/grid-v2/grid/grid-v2.component.js +1 -1
  8. package/esm2015/lib/grid-v2/grid/grid-v2.types.js +9 -1
  9. package/esm2015/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +19 -12
  10. package/esm2015/lib/grid-v2/grid-controller/grid-controller.component.js +26 -12
  11. package/esm2015/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +58 -13
  12. package/esm2015/lib/grid-v2/grid-pagination/grid-pagination.component.js +3 -2
  13. package/esm2015/lib/loaders/page-loader/page-loader.component.js +7 -2
  14. package/esm2015/lib/select/select.component.js +2 -2
  15. package/esm2015/lib/version.js +2 -2
  16. package/esm5/lib/grid-v2/grid/grid-v2.component.js +1 -1
  17. package/esm5/lib/grid-v2/grid/grid-v2.types.js +9 -1
  18. package/esm5/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.js +20 -12
  19. package/esm5/lib/grid-v2/grid-controller/grid-controller.component.js +25 -14
  20. package/esm5/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.js +71 -14
  21. package/esm5/lib/grid-v2/grid-pagination/grid-pagination.component.js +5 -2
  22. package/esm5/lib/loaders/page-loader/page-loader.component.js +7 -2
  23. package/esm5/lib/select/select.component.js +2 -2
  24. package/esm5/lib/version.js +2 -2
  25. package/fesm2015/datorama-core.js +115 -39
  26. package/fesm2015/datorama-core.js.map +1 -1
  27. package/fesm5/datorama-core.js +129 -41
  28. package/fesm5/datorama-core.js.map +1 -1
  29. package/lib/grid-v2/grid/grid-v2.types.d.ts +11 -3
  30. package/lib/grid-v2/grid-column-cell-components/grid-status-cell/grid-status-cell.component.d.ts +3 -5
  31. package/lib/grid-v2/grid-controller/grid-controller.component.d.ts +1 -0
  32. package/lib/grid-v2/grid-no-data-overlay/grid-v2-no-data-overlay.component.d.ts +10 -3
  33. package/lib/loaders/page-loader/page-loader.component.d.ts +1 -0
  34. package/package.json +1 -1
package/bundle.scss CHANGED
@@ -4870,13 +4870,13 @@ dato-button button[disabled] {
4870
4870
  Secondary
4871
4871
  */
4872
4872
  dato-button[datoType='secondary'] button {
4873
- background-color: themify(primary-300, 0.15);
4874
- color: themify(primary-400);
4873
+ background-color: themify(primary-100);
4874
+ color: themify(primary-600);
4875
4875
  }
4876
4876
 
4877
4877
  dato-button[datoType='secondary'] button:hover {
4878
- background-color: themify(primary-300, 0.25);
4879
- color: themify(primary-500);
4878
+ background-color: themify(primary-200);
4879
+ color: themify(primary-600);
4880
4880
  }
4881
4881
 
4882
4882
  dato-button[datoType='secondary'] dato-icon svg {
@@ -4884,8 +4884,8 @@ dato-button[datoType='secondary'] dato-icon svg {
4884
4884
  }
4885
4885
 
4886
4886
  dato-button[datoType='secondary'] button:active {
4887
- background-color: themify(primary-300, 0.35);
4888
- color: themify(primary-600);
4887
+ background-color: themify(primary-300);
4888
+ color: themify(primary-700);
4889
4889
  }
4890
4890
 
4891
4891
  /**
@@ -14054,7 +14054,6 @@ dato-input input:disabled:hover {
14054
14054
  }
14055
14055
 
14056
14056
  .dato-grid .ag-row.ag-row-group {
14057
- background-color: themify(primary-0);
14058
14057
  border-bottom: solid 1px themify(primary-200);
14059
14058
  height: 35px;
14060
14059
  }
@@ -14064,6 +14063,178 @@ dato-input input:disabled:hover {
14064
14063
  font-weight: 600;
14065
14064
  }
14066
14065
 
14066
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-0 {
14067
+ background-color: rgba(var(--primary-50), 1) !important;
14068
+ }
14069
+
14070
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-1 {
14071
+ background-color: rgba(var(--primary-50), 1) !important;
14072
+ }
14073
+
14074
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-2 {
14075
+ background-color: rgba(var(--primary-50), 1) !important;
14076
+ }
14077
+
14078
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-3 {
14079
+ background-color: rgba(var(--primary-50), 1) !important;
14080
+ }
14081
+
14082
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-4 {
14083
+ background-color: rgba(var(--primary-50), 1) !important;
14084
+ }
14085
+
14086
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-5 {
14087
+ background-color: rgba(var(--primary-50), 1) !important;
14088
+ }
14089
+
14090
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-6 {
14091
+ background-color: rgba(var(--primary-50), 1) !important;
14092
+ }
14093
+
14094
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-7 {
14095
+ background-color: rgba(var(--primary-50), 1) !important;
14096
+ }
14097
+
14098
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-8 {
14099
+ background-color: rgba(var(--primary-50), 1) !important;
14100
+ }
14101
+
14102
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-9 {
14103
+ background-color: rgba(var(--primary-50), 1) !important;
14104
+ }
14105
+
14106
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-10 {
14107
+ background-color: rgba(var(--primary-50), 1) !important;
14108
+ }
14109
+
14110
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-11 {
14111
+ background-color: rgba(var(--primary-50), 1) !important;
14112
+ }
14113
+
14114
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-12 {
14115
+ background-color: rgba(var(--primary-50), 1) !important;
14116
+ }
14117
+
14118
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-13 {
14119
+ background-color: rgba(var(--primary-50), 1) !important;
14120
+ }
14121
+
14122
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-14 {
14123
+ background-color: rgba(var(--primary-50), 1) !important;
14124
+ }
14125
+
14126
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-2.ag-row-even .ag-cell.ag-cell-value:nth-child(n+3) {
14127
+ background-color: themify(primary-100) !important;
14128
+ }
14129
+
14130
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-2.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+3) {
14131
+ background-color: themify(primary-50) !important;
14132
+ }
14133
+
14134
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-3.ag-row-even .ag-cell.ag-cell-value:nth-child(n+4) {
14135
+ background-color: themify(primary-100) !important;
14136
+ }
14137
+
14138
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-3.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+4) {
14139
+ background-color: themify(primary-50) !important;
14140
+ }
14141
+
14142
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-4.ag-row-even .ag-cell.ag-cell-value:nth-child(n+5) {
14143
+ background-color: themify(primary-100) !important;
14144
+ }
14145
+
14146
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-4.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+5) {
14147
+ background-color: themify(primary-50) !important;
14148
+ }
14149
+
14150
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-5.ag-row-even .ag-cell.ag-cell-value:nth-child(n+6) {
14151
+ background-color: themify(primary-100) !important;
14152
+ }
14153
+
14154
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-5.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+6) {
14155
+ background-color: themify(primary-50) !important;
14156
+ }
14157
+
14158
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-6.ag-row-even .ag-cell.ag-cell-value:nth-child(n+7) {
14159
+ background-color: themify(primary-100) !important;
14160
+ }
14161
+
14162
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-6.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+7) {
14163
+ background-color: themify(primary-50) !important;
14164
+ }
14165
+
14166
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-7.ag-row-even .ag-cell.ag-cell-value:nth-child(n+8) {
14167
+ background-color: themify(primary-100) !important;
14168
+ }
14169
+
14170
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-7.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+8) {
14171
+ background-color: themify(primary-50) !important;
14172
+ }
14173
+
14174
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-8.ag-row-even .ag-cell.ag-cell-value:nth-child(n+9) {
14175
+ background-color: themify(primary-100) !important;
14176
+ }
14177
+
14178
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-8.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+9) {
14179
+ background-color: themify(primary-50) !important;
14180
+ }
14181
+
14182
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-9.ag-row-even .ag-cell.ag-cell-value:nth-child(n+10) {
14183
+ background-color: themify(primary-100) !important;
14184
+ }
14185
+
14186
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-9.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+10) {
14187
+ background-color: themify(primary-50) !important;
14188
+ }
14189
+
14190
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-10.ag-row-even .ag-cell.ag-cell-value:nth-child(n+11) {
14191
+ background-color: themify(primary-100) !important;
14192
+ }
14193
+
14194
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-10.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+11) {
14195
+ background-color: themify(primary-50) !important;
14196
+ }
14197
+
14198
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-11.ag-row-even .ag-cell.ag-cell-value:nth-child(n+12) {
14199
+ background-color: themify(primary-100) !important;
14200
+ }
14201
+
14202
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-11.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+12) {
14203
+ background-color: themify(primary-50) !important;
14204
+ }
14205
+
14206
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-12.ag-row-even .ag-cell.ag-cell-value:nth-child(n+13) {
14207
+ background-color: themify(primary-100) !important;
14208
+ }
14209
+
14210
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-12.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+13) {
14211
+ background-color: themify(primary-50) !important;
14212
+ }
14213
+
14214
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-13.ag-row-even .ag-cell.ag-cell-value:nth-child(n+14) {
14215
+ background-color: themify(primary-100) !important;
14216
+ }
14217
+
14218
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-13.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+14) {
14219
+ background-color: themify(primary-50) !important;
14220
+ }
14221
+
14222
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-14.ag-row-even .ag-cell.ag-cell-value:nth-child(n+15) {
14223
+ background-color: themify(primary-100) !important;
14224
+ }
14225
+
14226
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-14.ag-row-odd .ag-cell.ag-cell-value:nth-child(n+15) {
14227
+ background-color: themify(primary-50) !important;
14228
+ }
14229
+
14230
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-0 .ag-cell.ag-cell-value:nth-child(n+1) {
14231
+ background-color: themify(primary-0) !important;
14232
+ }
14233
+
14234
+ .dato-grid .ag-row.ag-row-group .ag-row-group:not(.ag-row-hover).ag-row-level-1 .ag-cell.ag-cell-value:nth-child(n+2) {
14235
+ background-color: themify(primary-0) !important;
14236
+ }
14237
+
14067
14238
  .dato-grid .ag-row.ag-row-group:hover span {
14068
14239
  color: themify(accent-400);
14069
14240
  }
@@ -14368,10 +14539,6 @@ dato-grid-v2 ag-grid-angular.pivot-mode .ag-row.ag-row-group span {
14368
14539
  color: themify(primary-500) !important;
14369
14540
  }
14370
14541
 
14371
- dato-grid-v2 ag-grid-angular.pivot-mode .ag-row.ag-row-group:not(.ag-row-level-0) {
14372
- background-color: themify(primary-50) !important;
14373
- }
14374
-
14375
14542
  dato-grid-v2 ag-grid-angular.pivot-mode .ag-row.ag-row-group:not(.ag-row-level-0) span {
14376
14543
  font-weight: 400;
14377
14544
  }
@@ -8789,7 +8789,7 @@
8789
8789
  this.markAsActive(this._model);
8790
8790
  this._initialOpen = false;
8791
8791
  }
8792
- if (this.limitSelectedTo) {
8792
+ if (this.limitSelectedTo && this._model.length === this.limitSelectedTo) {
8793
8793
  this.updateDisabledState();
8794
8794
  }
8795
8795
  }
@@ -12087,6 +12087,14 @@
12087
12087
  GridRowSelectionType["MULTIPLE"] = "multiple";
12088
12088
  })(exports.GridRowSelectionType || (exports.GridRowSelectionType = {}));
12089
12089
 
12090
+ (function (GridStatusColumnTypes) {
12091
+ GridStatusColumnTypes["SUCCESS"] = "SUCCESS";
12092
+ GridStatusColumnTypes["FAILURE"] = "FAILURE";
12093
+ GridStatusColumnTypes["IN_PROGRESS"] = "IN_PROGRESS";
12094
+ GridStatusColumnTypes["PENDING"] = "PENDING";
12095
+ GridStatusColumnTypes["WAITING"] = "WAITING";
12096
+ })(exports.GridStatusColumnTypes || (exports.GridStatusColumnTypes = {}));
12097
+
12090
12098
  /**
12091
12099
  * @license
12092
12100
  * Copyright Datorama. All Rights Reserved.
@@ -12175,26 +12183,40 @@
12175
12183
  * found in the LICENSE file at https://github.com/datorama/client-core/blob/master/LICENSE
12176
12184
  */
12177
12185
  var DatoGridV2NoDataOverlayComponent = /** @class */ (function () {
12178
- function DatoGridV2NoDataOverlayComponent(gridQuery, gridService, element) {
12186
+ function DatoGridV2NoDataOverlayComponent(gridQuery, gridService, element, cdr) {
12179
12187
  this.gridQuery = gridQuery;
12180
12188
  this.gridService = gridService;
12181
12189
  this.element = element;
12190
+ this.cdr = cdr;
12182
12191
  this.config = {};
12183
12192
  }
12184
- Object.defineProperty(DatoGridV2NoDataOverlayComponent.prototype, "showImage", {
12193
+ Object.defineProperty(DatoGridV2NoDataOverlayComponent.prototype, "overlayStyles", {
12194
+ /** Adjust the overlay to the grid body viewport height */
12185
12195
  get: function () {
12186
- var elParent = this.element.nativeElement.parentElement;
12187
- if (elParent.classList.contains('ag-overlay-wrapper')) {
12188
- return elParent.offsetHeight >= 390;
12196
+ if (this.gridBody) {
12197
+ var _a = this.gridBody, offsetHeight = _a.offsetHeight, offsetTop = _a.offsetTop;
12198
+ return {
12199
+ height: offsetHeight + "px",
12200
+ marginTop: offsetTop + "px"
12201
+ };
12189
12202
  }
12190
- return true;
12203
+ return null;
12191
12204
  },
12192
12205
  enumerable: true,
12193
12206
  configurable: true
12194
12207
  });
12195
12208
  DatoGridV2NoDataOverlayComponent.prototype.ngOnInit = function () {
12209
+ var _this = this;
12210
+ var grid = this.element.nativeElement.closest('dato-grid-v2');
12211
+ this.gridBody = grid && grid.querySelector('.ag-body-viewport');
12196
12212
  this.filterActive$ = this.gridQuery.filterActive$;
12197
- this.hasError$ = this.gridQuery.isServerSide ? this.gridQuery.serverSideError$ : rxjs.of(false);
12213
+ this.hasError$ = this.gridQuery.isServerSide
12214
+ ? this.gridQuery.serverSideError$.pipe(operators.tap(function () {
12215
+ setTimeout(function () {
12216
+ _this.cdr.detectChanges();
12217
+ });
12218
+ }))
12219
+ : rxjs.of(false);
12198
12220
  this.initDefaultConfig();
12199
12221
  var gridConfig = this.gridQuery.getGridOptions().overlaysConfig || {};
12200
12222
  var userConfig = deepmerge(gridConfig, this.config);
@@ -12204,6 +12226,38 @@
12204
12226
  this.gridService.clearAllFilters();
12205
12227
  };
12206
12228
  DatoGridV2NoDataOverlayComponent.prototype.agInit = function (params) { };
12229
+ DatoGridV2NoDataOverlayComponent.prototype.isIconHidden = function () {
12230
+ var e_1, _a;
12231
+ if (this.gridBody) {
12232
+ var el = this.element.nativeElement;
12233
+ if (el) {
12234
+ var container = el.querySelector('.container');
12235
+ var icon = container.querySelector('img');
12236
+ var heightOfElements = 0;
12237
+ /** hide the icon until next change detection cycle */
12238
+ if (icon.height === 0) {
12239
+ return true;
12240
+ }
12241
+ try {
12242
+ for (var _b = __values(container.children), _c = _b.next(); !_c.done; _c = _b.next()) {
12243
+ var child = _c.value;
12244
+ var childHeight = child.offsetHeight || child.height || 0;
12245
+ var childMarginBottom = toNumber(child.style.marginBottom.replace('px', ''));
12246
+ heightOfElements += childHeight + childMarginBottom;
12247
+ }
12248
+ }
12249
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
12250
+ finally {
12251
+ try {
12252
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
12253
+ }
12254
+ finally { if (e_1) throw e_1.error; }
12255
+ }
12256
+ return heightOfElements > this.gridBody.offsetHeight;
12257
+ }
12258
+ }
12259
+ return true;
12260
+ };
12207
12261
  DatoGridV2NoDataOverlayComponent.prototype.initDefaultConfig = function () {
12208
12262
  var enableSearch = this.gridQuery.getGridOptions().enableSearch;
12209
12263
  this.defaultConfig = {
@@ -12224,20 +12278,29 @@
12224
12278
  DatoGridV2NoDataOverlayComponent.ctorParameters = function () { return [
12225
12279
  { type: GridQuery },
12226
12280
  { type: GridService },
12227
- { type: core.ElementRef }
12281
+ { type: core.ElementRef },
12282
+ { type: core.ChangeDetectorRef }
12228
12283
  ]; };
12229
12284
  __decorate([
12230
12285
  core.Input(),
12231
12286
  __metadata("design:type", Object)
12232
12287
  ], DatoGridV2NoDataOverlayComponent.prototype, "config", void 0);
12288
+ __decorate([
12289
+ core.HostBinding('style'),
12290
+ __metadata("design:type", Object),
12291
+ __metadata("design:paramtypes", [])
12292
+ ], DatoGridV2NoDataOverlayComponent.prototype, "overlayStyles", null);
12233
12293
  DatoGridV2NoDataOverlayComponent = __decorate([
12234
12294
  core.Component({
12235
12295
  selector: 'dato-grid-v2-no-data-overlay',
12236
- 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",
12296
+ template: "<div class=\"container d-flex-column align-center height-100 p-4\">\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 [datoStaticSrc]=\"view.icon\" *ngIf=\"view.icon\" [hidden]=\"isIconHidden()\" [style.marginBottom]=\"'30px'\">\n <div class=\"dato-simple-bold primary-500-color\" [style.marginBottom]=\"'3px'\">{{ view.text | translate }}</div>\n</ng-template>\n",
12237
12297
  changeDetection: core.ChangeDetectionStrategy.OnPush,
12238
- styles: [":host{pointer-events:all}"]
12298
+ styles: [":host{pointer-events:all;overflow:auto}"]
12239
12299
  }),
12240
- __metadata("design:paramtypes", [GridQuery, GridService, core.ElementRef])
12300
+ __metadata("design:paramtypes", [GridQuery,
12301
+ GridService,
12302
+ core.ElementRef,
12303
+ core.ChangeDetectorRef])
12241
12304
  ], DatoGridV2NoDataOverlayComponent);
12242
12305
  return DatoGridV2NoDataOverlayComponent;
12243
12306
  }());
@@ -15568,7 +15631,7 @@
15568
15631
  });
15569
15632
  DatoGridControllerComponent.prototype.ngOnDestroy = function () {
15570
15633
  this.contentInit.complete();
15571
- this.tooltip && this.clearTooltip();
15634
+ this.clearTooltip();
15572
15635
  this.rowHoverComponent && this.rowHoverComponent.destroy();
15573
15636
  this.rowHoverComponent = null;
15574
15637
  };
@@ -15798,40 +15861,51 @@
15798
15861
  });
15799
15862
  this.addOnHoverElement();
15800
15863
  }
15801
- agGrid.cellMouseOver
15802
- .pipe(operators.filter(function (_a) {
15803
- var node = _a.node, column = _a.column;
15804
- return lastHoveredCell !== node.id + "-" + column.getColId();
15805
- }), ngxTakeUntilDestroy.untilDestroyed(this))
15806
- .subscribe(function (event) {
15807
- lastHoveredCell = event.node.id + "-" + event.column.getColId();
15864
+ agGrid.cellMouseOver.pipe(ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (event) {
15865
+ var node = event.node, column = event.column;
15866
+ if (lastHoveredCell === node.id + "-" + column.getColId()) {
15867
+ clearTimeout(_this.cellMouseOutTimer);
15868
+ return;
15869
+ }
15870
+ lastHoveredCell = node.id + "-" + column.getColId();
15808
15871
  _this.showTooltip(event);
15809
15872
  var row = event.event.target.parentElement;
15810
- if (onHoverEnabled && (event.node.group === false || isNil(event.node.group)) && _this.lastHoveredRow !== row) {
15873
+ if (onHoverEnabled && (node.group === false || isNil(node.group)) && _this.lastHoveredRow !== row) {
15811
15874
  var previousNode = _this.lastHoveredRow;
15812
15875
  _this.lastHoveredRow = row;
15813
15876
  _this.toggleRowHoverClass([previousNode, _this.lastHoveredRow]);
15814
15877
  _this.setOnHoverState(true, event);
15815
15878
  }
15816
15879
  });
15817
- var onTooltipOut = rxjs.merge(rxjs.fromEvent(bodyViewport, 'scroll'), rxjs.fromEvent(this.agGridEl, 'mouseleave'), agGrid.cellMouseOut);
15818
- onTooltipOut
15880
+ var onTooltipOut = rxjs.merge(rxjs.fromEvent(bodyViewport, 'scroll'), rxjs.fromEvent(this.agGridEl, 'mouseleave'));
15881
+ onTooltipOut.pipe(ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function () {
15882
+ lastHoveredCell = null;
15883
+ _this.clearTooltip();
15884
+ });
15885
+ agGrid.cellMouseOut
15819
15886
  .pipe(operators.filter(function () { return !isNil(_this.tooltip); }), ngxTakeUntilDestroy.untilDestroyed(this))
15820
15887
  .subscribe(function () {
15821
- _this.clearTooltip();
15888
+ _this.cellMouseOutTimer = window.setTimeout(function () { return _this.clearTooltip(); });
15822
15889
  });
15823
15890
  };
15824
15891
  /**
15825
15892
  * Dispose the tooltip
15826
15893
  */
15827
15894
  DatoGridControllerComponent.prototype.clearTooltip = function () {
15828
- this.tooltip.dispose();
15895
+ this.tooltip && this.tooltip.dispose();
15829
15896
  this.tooltip = null;
15830
15897
  };
15831
15898
  DatoGridControllerComponent.prototype.showTooltip = function (event) {
15832
15899
  var cell = event.event.target;
15900
+ if (cell.tagName === 'SPAN' && cell.scrollWidth === 0) {
15901
+ cell = cell.parentElement;
15902
+ }
15903
+ if (event.colDef.editable) {
15904
+ cell = cell.querySelector('.value-wrapper') || cell;
15905
+ }
15833
15906
  var textOverflow = cell.offsetWidth < cell.scrollWidth;
15834
15907
  if (textOverflow) {
15908
+ clearTimeout(this.cellMouseOutTimer);
15835
15909
  var params = { cell: cell, value: cell.innerText };
15836
15910
  isNil(this.tooltip) ? this.createAndShowTooltip(params) : this.updateTooltip(params);
15837
15911
  }
@@ -16076,7 +16150,7 @@
16076
16150
  template: "<ag-grid-angular data-auto-id=\"grid\" class=\"dato-grid ag-theme-material\" [class.has-background]=\"enableBackground\" [class.enable-v2_1]=\"enableV2_1\"\n [class.with-multi-selection-col]=\"gridOptions?.showMultiSelectionCheckboxes\" [class.pivot-mode]=\"isPivotMode\">\n</ag-grid-angular>\n<dato-grid-pagination-v2 [class.has-background]=\"enableBackground\"></dato-grid-pagination-v2>\n",
16077
16151
  changeDetection: core.ChangeDetectionStrategy.OnPush,
16078
16152
  encapsulation: core.ViewEncapsulation.None,
16079
- styles: ["dato-grid-v2{flex-grow:1;display:flex;flex-direction:column;position:relative}dato-grid-v2 .dato-grid,dato-grid-v2 dato-grid-pagination-v2{position:absolute;left:0;right:0;bottom:0}dato-grid-v2 .dato-grid{top:0;bottom:50px}dato-grid-v2 .grid-hover-actions{position:absolute;z-index:2;transition:opacity .2s ease-in-out}dato-grid-v2 .ag-row-drag{width:initial!important}dato-grid-v2 .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle;width:initial;height:initial}dato-grid-v2 .da-grid-icon.drag{width:14px;height:14px;margin-right:6px;opacity:0;transition:opacity .3s;transform:translateY(-50%)}dato-grid-v2 .da-grid-icon.folder{width:18px;height:35px;margin:0 8px}dato-grid-v2 .ag-row.ag-row-hover .da-grid-icon.drag{opacity:1}dato-grid-v2 ag-grid-angular.tree .ag-group-contracted,dato-grid-v2 ag-grid-angular.tree .ag-group-expanded{display:inline-block;width:18px;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-group-checkbox{display:none}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-empty-folder .folder{margin-left:26px}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-1 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 1)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-1{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-2 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 2)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-2{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-3 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 3)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-3{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-4 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 4)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-4{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row div[col-id=ag-Grid-AutoColumn]{padding-left:0}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell{display:flex;align-items:center}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .ag-group-value>span{display:inline-block;vertical-align:middle}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .initials{border-radius:50%;padding:4px;margin-right:8px;margin-left:20px;width:28px;height:28px;display:inline-block;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-row-group-leaf-indent{margin-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-selection-checkbox .ag-icon-checkbox-indeterminate:before{text-align:center;content:'-';display:inline-block;position:absolute;top:0;left:0;right:0;bottom:0;line-height:.5;color:#fff}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell{line-height:33px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.dato-editable-cell{line-height:29px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.ag-cell-inline-editing{height:35px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell{line-height:42px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.dato-editable-cell{line-height:38px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.ag-cell-inline-editing{height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell{line-height:48px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.dato-editable-cell{line-height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.ag-cell-inline-editing{height:50px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell{line-height:57px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.dato-editable-cell{line-height:53px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.ag-cell-inline-editing{height:59px}dato-grid-v2 ag-grid-angular .ag-cell.checkbox-selection-cell{display:flex}dato-grid-v2 .ag-menu .da-grid-icon svg{vertical-align:middle}dato-grid-v2 .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}dato-grid-v2 .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}dato-grid-v2 .group-contracted-icon,dato-grid-v2 .group-expanded-icon{width:7px}dato-grid-v2 .group-expanded-icon{transform:rotate(90deg)}dato-grid-v2 .dato-grid .ag-cell{border-top:0;border-bottom:0}.ag-dnd-ghost{min-width:100px;border:none;display:flex;justify-content:flex-start;align-content:center;align-items:center;cursor:-webkit-grabbing;cursor:grabbing;z-index:10000000}.ag-dnd-ghost .da-grid-icon.column-move-hide svg{height:18px;width:18px}.ag-dnd-ghost .da-grid-icon.column-move svg,.ag-dnd-ghost .da-grid-icon.column-move-pin svg{height:16px;width:16px}"]
16153
+ styles: ["dato-grid-v2{flex-grow:1;display:flex;flex-direction:column;position:relative}dato-grid-v2 .dato-grid,dato-grid-v2 dato-grid-pagination-v2{position:absolute;left:0;right:0;bottom:0}dato-grid-v2 .dato-grid{top:0;bottom:50px}dato-grid-v2 .grid-hover-actions{position:absolute;z-index:2;transition:opacity .2s ease-in-out}dato-grid-v2 .ag-row-drag{width:initial!important}dato-grid-v2 .da-grid-icon{display:inline-block;line-height:31px;vertical-align:middle;width:initial;height:initial}dato-grid-v2 .da-grid-icon.drag{width:14px;height:14px;margin-right:6px;opacity:0;transition:opacity .3s;transform:translateY(-50%)}dato-grid-v2 .da-grid-icon.folder{width:18px;height:35px;margin:0 8px}dato-grid-v2 .ag-row.ag-row-hover .da-grid-icon.drag{opacity:1}dato-grid-v2 ag-grid-angular.tree .ag-group-contracted,dato-grid-v2 ag-grid-angular.tree .ag-group-expanded{display:inline-block;width:18px;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-group-checkbox{display:none}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-empty-folder .folder{margin-left:26px}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-1 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 1)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-1{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-2 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 2)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-2{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-3 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 3)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-3{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row.ag-row-level-4 .ag-cell-wrapper .ag-row-drag{padding-right:calc(55px * 4)}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-row-group-indent-4{margin-left:0!important;padding-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-row div[col-id=ag-Grid-AutoColumn]{padding-left:0}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell{display:flex;align-items:center}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .ag-group-value>span{display:inline-block;vertical-align:middle}dato-grid-v2 ag-grid-angular.tree .ag-row .ag-cell .initials{border-radius:50%;padding:4px;margin-right:8px;margin-left:20px;width:28px;height:28px;display:inline-block;text-align:center}dato-grid-v2 ag-grid-angular.tree .ag-row-group-leaf-indent{margin-left:0!important}dato-grid-v2 ag-grid-angular.tree .ag-selection-checkbox .ag-icon-checkbox-indeterminate:before{text-align:center;content:'-';display:inline-block;position:absolute;top:0;left:0;right:0;bottom:0;line-height:.5;color:#fff}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell{line-height:33px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.dato-editable-cell{line-height:29px}dato-grid-v2 ag-grid-angular.row-height-35 .ag-cell.ag-cell-inline-editing{height:35px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell{line-height:42px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.dato-editable-cell{line-height:38px}dato-grid-v2 ag-grid-angular.row-height-44 .ag-cell.ag-cell-inline-editing{height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell{line-height:48px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.dato-editable-cell{line-height:44px}dato-grid-v2 ag-grid-angular.row-height-50 .ag-cell.ag-cell-inline-editing{height:50px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell{line-height:57px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.dato-editable-cell{line-height:53px}dato-grid-v2 ag-grid-angular.row-height-59 .ag-cell.ag-cell-inline-editing{height:59px}dato-grid-v2 ag-grid-angular .ag-cell.checkbox-selection-cell{display:flex}dato-grid-v2 .ag-menu .da-grid-icon svg{vertical-align:middle}dato-grid-v2 .ag-header-cell-sortable .ag-sort-none-icon{opacity:0;transition:opacity .2s}dato-grid-v2 .ag-header-cell-sortable:hover .ag-sort-none-icon{opacity:1}dato-grid-v2 .group-contracted-icon,dato-grid-v2 .group-expanded-icon{width:7px}dato-grid-v2 .group-expanded-icon{transform:rotate(90deg)}dato-grid-v2 .dato-grid .ag-cell{border-top:0;border-bottom:0}dato-grid-v2 .ag-overlay-wrapper ng-component{display:flex}.ag-dnd-ghost{min-width:100px;border:none;display:flex;justify-content:flex-start;align-content:center;align-items:center;cursor:-webkit-grabbing;cursor:grabbing;z-index:10000000}.ag-dnd-ghost .da-grid-icon.column-move-hide svg{height:18px;width:18px}.ag-dnd-ghost .da-grid-icon.column-move svg,.ag-dnd-ghost .da-grid-icon.column-move-pin svg{height:16px;width:16px}"]
16080
16154
  }),
16081
16155
  __metadata("design:paramtypes", [DatoGridControllerComponent, core.ElementRef])
16082
16156
  ], DatoGridV2Component);
@@ -16418,7 +16492,9 @@
16418
16492
  DatoGridPaginationV2Component.prototype.ngOnInit = function () {
16419
16493
  var _this = this;
16420
16494
  this.gridQuery
16421
- .waitForGrid(function () { return _this.gridQuery.gridRef.filterChanged; })
16495
+ .waitForGrid(function () {
16496
+ return rxjs.merge(_this.gridQuery.gridRef.filterChanged, _this.gridQuery.gridRef.rowGroupOpened, _this.gridQuery.gridRef.expandOrCollapseAll);
16497
+ })
16422
16498
  .pipe(ngxTakeUntilDestroy.untilDestroyed(this))
16423
16499
  .subscribe(function () {
16424
16500
  _this.gridApi.paginationGoToPage(0);
@@ -19496,6 +19572,7 @@
19496
19572
  function DatoPageLoaderComponent() {
19497
19573
  this.msg = '';
19498
19574
  this.salesforce = false;
19575
+ this.size = 'medium';
19499
19576
  this.circleIds = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'];
19500
19577
  }
19501
19578
  __decorate([
@@ -19506,10 +19583,14 @@
19506
19583
  core.Input(),
19507
19584
  __metadata("design:type", Object)
19508
19585
  ], DatoPageLoaderComponent.prototype, "salesforce", void 0);
19586
+ __decorate([
19587
+ core.Input(),
19588
+ __metadata("design:type", String)
19589
+ ], DatoPageLoaderComponent.prototype, "size", void 0);
19509
19590
  DatoPageLoaderComponent = __decorate([
19510
19591
  core.Component({
19511
19592
  selector: 'dato-page-loader',
19512
- template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-spinner_medium slds-spinner_brand\">\n <div class=\"slds-spinner__dot-a\"></div>\n <div class=\"slds-spinner__dot-b\"></div>\n </div>\n </div>\n </ng-container>\n <ng-template #datoramaPageLoader>\n <div class=\"animation-container d-flex align-center d-flex-wrap\">\n <div class=\"circle d-flex align-center\" *ngFor=\"let id of circleIds\" [ngClass]=\"'circle-' + id\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\">\n <circle cx=\"6\" cy=\"6\" r=\"5\" />\n </svg>\n </div>\n </div>\n </ng-template>\n <span class=\"loading-message simple-bold\">{{msg | translate}}</span>\n</div>",
19593
+ template: "<div class=\"d-flex-column align-center\">\n <ng-container *ngIf=\"salesforce; else datoramaPageLoader\">\n <div class=\"slds-spinner_container\">\n <div role=\"status\" class=\"slds-spinner slds-spinner_brand\" [ngClass]=\"'slds-spinner_' + size\">\n <div class=\"slds-spinner__dot-a\"></div>\n <div class=\"slds-spinner__dot-b\"></div>\n </div>\n </div>\n </ng-container>\n <ng-template #datoramaPageLoader>\n <div class=\"animation-container d-flex align-center d-flex-wrap\">\n <div class=\"circle d-flex align-center\" *ngFor=\"let id of circleIds\" [ngClass]=\"'circle-' + id\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\" viewBox=\"0 0 12 12\">\n <circle cx=\"6\" cy=\"6\" r=\"5\" />\n </svg>\n </div>\n </div>\n </ng-template>\n <span class=\"loading-message simple-bold\">{{msg | translate}}</span>\n</div>\n",
19513
19594
  changeDetection: core.ChangeDetectionStrategy.OnPush
19514
19595
  })
19515
19596
  ], DatoPageLoaderComponent);
@@ -20487,8 +20568,15 @@
20487
20568
 
20488
20569
  var DatoGridStatusCellComponent = /** @class */ (function () {
20489
20570
  function DatoGridStatusCellComponent(cdr) {
20571
+ var _a;
20490
20572
  this.cdr = cdr;
20491
- this.DEFAULT_MIN_WIDTH = 100;
20573
+ this.defaultConfigByStatus = (_a = {},
20574
+ _a[exports.GridStatusColumnTypes.SUCCESS] = { icon: 'success-line', iconCssClass: 'green-400-color' },
20575
+ _a[exports.GridStatusColumnTypes.FAILURE] = { icon: 'failed-line', iconCssClass: 'red-400-color' },
20576
+ _a[exports.GridStatusColumnTypes.PENDING] = { icon: 'time', iconCssClass: 'yellow-400-color' },
20577
+ _a[exports.GridStatusColumnTypes.WAITING] = { icon: 'info-line', iconCssClass: 'orange-400-color' },
20578
+ _a[exports.GridStatusColumnTypes.IN_PROGRESS] = { showSpinner: true },
20579
+ _a);
20492
20580
  }
20493
20581
  DatoGridStatusCellComponent.prototype.agInit = function (params) {
20494
20582
  var value = params.value, valueFormatted = params.valueFormatted, node = params.node;
@@ -20503,15 +20591,14 @@
20503
20591
  var mainCustomCellConfig = customCellConfig || {};
20504
20592
  var valueCustomCellConfig = valueToCustomCellConfig ? valueToCustomCellConfig[params.value] || {} : {};
20505
20593
  var config = __assign(__assign({}, mainCustomCellConfig), valueCustomCellConfig);
20506
- var color = config.color, icon = config.icon, cssClass = config.cssClass, iconCssClass = config.iconCssClass, minWidth = config.minWidth, showSpinner = config.showSpinner, getAdditionalText = config.getAdditionalText, getIsVisible = config.getIsVisible;
20594
+ var textCssClass = config.textCssClass, icon = config.icon, iconCssClass = config.iconCssClass, showSpinner = config.showSpinner, getAdditionalText = config.getAdditionalText, additionalTextCssClass = config.additionalTextCssClass, getIsVisible = config.getIsVisible, status = config.status;
20595
+ var defaultConfig = this.defaultConfigByStatus[status] || {};
20507
20596
  this.isVisible = !getIsVisible || getIsVisible(params.data);
20508
- this.color = color || 'primary';
20509
- this.backgroundClass = this.color + "-" + (this.color === 'accent' ? '100' : '200') + "-background-color";
20510
- this.icon = icon;
20511
- this.minWidth = minWidth || this.DEFAULT_MIN_WIDTH;
20512
- this.cssClass = cssClass || '';
20513
- this.iconCssClass = iconCssClass || '';
20514
- this.showSpinner = showSpinner;
20597
+ this.icon = icon || defaultConfig.icon;
20598
+ this.iconCssClass = iconCssClass || defaultConfig.iconCssClass || '';
20599
+ this.textCssClass = textCssClass || '';
20600
+ this.additionalTextCssClass = additionalTextCssClass || '';
20601
+ this.showSpinner = !!showSpinner || !!defaultConfig.showSpinner;
20515
20602
  this.additionalText = getAdditionalText ? getAdditionalText(params.data) : null;
20516
20603
  };
20517
20604
  DatoGridStatusCellComponent.prototype.refresh = function (params) {
@@ -20525,8 +20612,9 @@
20525
20612
  DatoGridStatusCellComponent = __decorate([
20526
20613
  core.Component({
20527
20614
  selector: 'dato-grid-status-cell',
20528
- template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <div *ngIf=\"status\" class=\"d-flex justify-center items-center px-15 py-5 {{backgroundClass}} {{cssClass}}\" [style.min-width.px]=\"minWidth\">\n <dato-icon *ngIf=\"icon\" class=\"mr-5 {{iconCssClass}}\" [icon]=\"icon\" datoSize=\"sm\"></dato-icon>\n <div class=\"dato-note {{color}}-800-color\" [class.ellipsis]=\"!additionalText\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\" [datoTooltipDisabled]=\"!!additionalText\">\n {{status}}\n </div>\n <div *ngIf=\"additionalText\" class=\"dato-note {{color}}-800-color ml-3 ellipsis\"\n [datoTooltipV2]=\"status + ' ' + additionalText\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{additionalText}}\n </div>\n <span *ngIf=\"showSpinner\" class=\"dato-spinner-loader ml-5\"></span>\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
20529
- changeDetection: core.ChangeDetectionStrategy.OnPush
20615
+ template: "<div *ngIf=\"!isGroup && isVisible\" class=\"height-100 d-flex items-center\">\n <dato-icon *ngIf=\"icon\" class=\"mr-6 {{iconCssClass}}\" [icon]=\"icon\" datoSize=\"sm\"></dato-icon>\n <dato-page-loader *ngIf=\"showSpinner\" [salesforce]=\"true\" size=\"x-small\" class=\"mr-10 mt-15\"></dato-page-loader>\n <div class=\"dato-simple status line-height-18 {{textCssClass}}\" [class.ellipsis]=\"!additionalText\"\n [datoTooltipV2]=\"status\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{status}}\n </div>\n <div *ngIf=\"additionalText\" class=\"dato-simple ml-3 ellipsis line-height-18 {{additionalTextCssClass}}\"\n [datoTooltipV2]=\"status + ' ' + additionalText\" [showOnlyOnTextOverflow]=\"true\" [tooltipCheckInView]=\"false\">\n {{additionalText}}\n </div>\n</div>\n<span *ngIf=\"isGroup\">{{status}}</span>\n",
20616
+ changeDetection: core.ChangeDetectionStrategy.OnPush,
20617
+ styles: [".line-height-18{line-height:18px}"]
20530
20618
  }),
20531
20619
  __metadata("design:paramtypes", [core.ChangeDetectorRef])
20532
20620
  ], DatoGridStatusCellComponent);
@@ -25498,7 +25586,7 @@
25498
25586
  };
25499
25587
  }
25500
25588
 
25501
- window.coreVersion = '22.10.3-rc.';
25589
+ window.coreVersion = '22.10.9-rc.';
25502
25590
 
25503
25591
  exports.APP_TRANSLATE = APP_TRANSLATE;
25504
25592
  exports.AceService = AceService;