@datorama/core 22.13.0-beta.7 → 22.13.0-beta.9

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.
package/bundle.scss CHANGED
@@ -14947,6 +14947,10 @@ dato-input input:disabled:hover {
14947
14947
  background-color: themify(accent-100);
14948
14948
  }
14949
14949
 
14950
+ .dato-grid .ag-cell {
14951
+ -webkit-font-smoothing: antialiased;
14952
+ }
14953
+
14950
14954
  .dato-grid .ag-cell .ag-selection-checkbox {
14951
14955
  display: block;
14952
14956
  position: relative;
@@ -15020,6 +15024,14 @@ dato-input input:disabled:hover {
15020
15024
  display: none;
15021
15025
  }
15022
15026
 
15027
+ .dato-grid .ag-cell .ag-selection-checkbox .ag-cell-value {
15028
+ margin-left: 0;
15029
+ }
15030
+
15031
+ .dato-grid .ag-cell .ag-selection-checkbox .ag-icon-checkbox-checked:before {
15032
+ display: none;
15033
+ }
15034
+
15023
15035
  .dato-grid .ag-cell .search-highlight {
15024
15036
  background-color: #FDF2CF;
15025
15037
  }
@@ -15207,10 +15219,6 @@ dato-input input:disabled:hover {
15207
15219
  background-color: themify(primary-100);
15208
15220
  }
15209
15221
 
15210
- .dato-grid.pivot-style .ag-cell {
15211
- color: themify(primary-500);
15212
- }
15213
-
15214
15222
  .dato-grid.pivot-style .ag-cell .ag-row-group-leaf-indent {
15215
15223
  margin: 0 !important;
15216
15224
  }
@@ -15228,10 +15236,6 @@ dato-input input:disabled:hover {
15228
15236
  height: inherit;
15229
15237
  }
15230
15238
 
15231
- .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-cell dato-grid-column-header > div span {
15232
- color: themify(primary-500);
15233
- }
15234
-
15235
15239
  .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-cell.top-border {
15236
15240
  border-top: 1px solid themify(primary-200);
15237
15241
  }
@@ -15256,7 +15260,6 @@ dato-input input:disabled:hover {
15256
15260
 
15257
15261
  .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell .ag-header-group-cell-label span {
15258
15262
  height: auto;
15259
- color: themify(primary-500);
15260
15263
  }
15261
15264
 
15262
15265
  .dato-grid.pivot-style .ag-header .ag-header-row .ag-header-group-cell.ag-header-group-cell-with-group {
@@ -14212,6 +14212,7 @@
14212
14212
  this.logger = logger;
14213
14213
  this.treeConfig = defaultGridTreeLabel;
14214
14214
  this.pageNumberToReturnAfterRefresh = -1;
14215
+ this.reloadGridActionsSubject = new rxjs.Subject();
14215
14216
  this.CHECKBOX_SELECTION_COL_ID = 'grid-checkbox-selection';
14216
14217
  }
14217
14218
  Object.defineProperty(GridService.prototype, "treeData", {
@@ -14244,6 +14245,12 @@
14244
14245
  ? context
14245
14246
  : deepmerge(this.gridRef.gridOptions.context || {}, context);
14246
14247
  };
14248
+ GridService.prototype.reloadGridActions = function () {
14249
+ this.reloadGridActionsSubject.next();
14250
+ };
14251
+ GridService.prototype.onReloadGridActions = function () {
14252
+ return this.reloadGridActionsSubject.asObservable();
14253
+ };
14247
14254
  /**
14248
14255
  * @deprecated use selectRows instead
14249
14256
  * @param row
@@ -17079,6 +17086,7 @@
17079
17086
  });
17080
17087
  this.registerGroupListeners();
17081
17088
  this.subscribeRowsSelectionData();
17089
+ this.subscribeReloadGridActions();
17082
17090
  };
17083
17091
  DatoGridV2ToolbarComponent.prototype.onActionClick = function (action) {
17084
17092
  if (isFunction(action.onClick)) {
@@ -17334,6 +17342,12 @@
17334
17342
  _this.cdr.detectChanges();
17335
17343
  });
17336
17344
  };
17345
+ DatoGridV2ToolbarComponent.prototype.subscribeReloadGridActions = function () {
17346
+ var _this = this;
17347
+ this.gridService.onReloadGridActions().subscribe(function () {
17348
+ _this.initGridActions();
17349
+ });
17350
+ };
17337
17351
  DatoGridV2ToolbarComponent.prototype.selectAllPages = function () {
17338
17352
  if (this.gridQuery.isServerSide) {
17339
17353
  this.gridService.setServerSidePagination({ selectAllRowsEnabled: true, excludedFromSelectAll: [] });
@@ -20826,7 +20840,7 @@
20826
20840
  selector: 'dato-grid-initials-cell',
20827
20841
  template: "<div *ngIf=\"!isGroup\" class=\"height-100 d-flex items-center primary-500-color initials-container\">\n <div *ngIf=\"initials\" class=\"initials text-center mr-12\" [class.bold]=\"isBold\">{{ initials }}</div>\n <div [class.bold]=\"isBold\">{{text}}</div>\n</div>\n\n<span *ngIf=\"isGroup\">{{text}}</span>\n",
20828
20842
  changeDetection: core.ChangeDetectionStrategy.OnPush,
20829
- styles: [".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px}.initials-container.bold{font-weight:600}"]
20843
+ styles: [".initials-container .initials{width:34px;height:34px;line-height:33px;border-radius:50%;font-size:15px;flex:0 0 auto}.initials-container.bold{font-weight:600}"]
20830
20844
  })
20831
20845
  ], DatoGridInitialsCellComponent);
20832
20846
  return DatoGridInitialsCellComponent;