@datorama/core 22.13.0-beta.10 → 22.13.0-beta.12

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
@@ -8236,6 +8236,10 @@ dato-grid-header span {
8236
8236
  display: block;
8237
8237
  }
8238
8238
 
8239
+ .ag-dato-core .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-checked:before {
8240
+ display: none;
8241
+ }
8242
+
8239
8243
  .ag-dato-core .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-unchecked,
8240
8244
  .ag-dato-core .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-indeterminate {
8241
8245
  background-color: themify(primary-0);
@@ -8366,6 +8370,10 @@ dato-grid-header span {
8366
8370
  display: block;
8367
8371
  }
8368
8372
 
8373
+ .ag-dato-core .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-checked:before {
8374
+ display: none;
8375
+ }
8376
+
8369
8377
  .ag-dato-core .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-unchecked,
8370
8378
  .ag-dato-core .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-indeterminate {
8371
8379
  background-color: themify(primary-0);
@@ -8481,16 +8489,31 @@ dato-grid-header span {
8481
8489
  line-height: 19px;
8482
8490
  }
8483
8491
 
8484
- .ag-dato-core .ag-menu .ag-menu-option-icon span {
8485
- margin-top: 0;
8492
+ .ag-dato-core .ag-menu .ag-menu-list .ag-menu-option {
8493
+ padding-left: 15px;
8486
8494
  }
8487
8495
 
8488
- .ag-dato-core .ag-menu .ag-menu-option-icon span.context-item-icon {
8489
- width: 18px;
8496
+ .ag-dato-core .ag-menu .ag-menu-list .ag-menu-option .ag-menu-option-icon {
8497
+ display: none;
8498
+ }
8499
+
8500
+ .ag-dato-core .ag-menu .ag-menu-list .ag-menu-option .ag-menu-option-popup-pointer {
8501
+ width: 20px;
8502
+ }
8503
+
8504
+ .ag-dato-core .ag-menu .ag-menu-list .ag-menu-option .ag-menu-option-popup-pointer .ag-icon-small-right {
8505
+ height: 12px;
8506
+ background-position-y: center;
8507
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDEwIiBmaWxsPSIjOWNhMGEwIj48cGF0aCBkPSJNMC45Miw5LjQxQTAuNSwwLjUsMCwwLDEsLjU3LDguNTZMNC4yMyw1LDAuNTcsMS40NkEwLjUsMC41LDAsMSwxLDEuMjcuNzRsNCwzLjkxYTAuNSwwLjUsMCwwLDEsMCwuNzJsLTQsMy45MUEwLjUsMC41LDAsMCwxLC45Miw5LjQxWiIvPjwvc3ZnPg==");
8508
+ }
8509
+
8510
+ .ag-dato-core .ag-menu .ag-menu-list .ag-menu-option .ag-menu-option-popup-pointer .ag-icon-small-right:before {
8511
+ display: none;
8490
8512
  }
8491
8513
 
8492
8514
  .ag-dato-core .ag-menu .ag-menu-separator {
8493
8515
  border-top: themify(primary-200) 1px solid;
8516
+ height: unset;
8494
8517
  }
8495
8518
 
8496
8519
  .ag-dato-core .ag-menu .ag-menu-separator .ag-menu-separator-cell {
@@ -8558,11 +8581,6 @@ dato-grid-header span {
8558
8581
  padding: 8px 0;
8559
8582
  }
8560
8583
 
8561
- .ag-dato-core .ag-menu-list .ag-menu-option .ag-menu-option-popup-pointer.ag-icon-small-right {
8562
- background-position-y: center;
8563
- background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDEwIiBmaWxsPSIjOWNhMGEwIj48cGF0aCBkPSJNMC45Miw5LjQxQTAuNSwwLjUsMCwwLDEsLjU3LDguNTZMNC4yMyw1LDAuNTcsMS40NkEwLjUsMC41LDAsMSwxLDEuMjcuNzRsNCwzLjkxYTAuNSwwLjUsMCwwLDEsMCwuNzJsLTQsMy45MUEwLjUsMC41LDAsMCwxLC45Miw5LjQxWiIvPjwvc3ZnPg==");
8564
- }
8565
-
8566
8584
  .ag-dato-core .ag-filter {
8567
8585
  /* CAUTION: IE hackery ahead */
8568
8586
  }
@@ -8690,6 +8708,10 @@ dato-grid-header span {
8690
8708
  fill: themify(primary-200);
8691
8709
  }
8692
8710
 
8711
+ .ag-dato-core .ag-filter .ag-filter-filter {
8712
+ margin: 0;
8713
+ }
8714
+
8693
8715
  .ag-dato-core .ag-filter select.ag-filter-select {
8694
8716
  -webkit-appearance: none;
8695
8717
  appearance: none;
@@ -8757,6 +8779,10 @@ dato-grid-header span {
8757
8779
  display: block;
8758
8780
  }
8759
8781
 
8782
+ .ag-dato-core .ag-filter .ag-filter-checkbox .ag-icon.ag-icon-checkbox-checked:before {
8783
+ display: none;
8784
+ }
8785
+
8760
8786
  .ag-dato-core .ag-filter .ag-filter-checkbox .ag-icon.ag-icon-checkbox-unchecked,
8761
8787
  .ag-dato-core .ag-filter .ag-filter-checkbox .ag-icon.ag-icon-checkbox-indeterminate {
8762
8788
  background-color: themify(primary-0);
@@ -8916,6 +8942,10 @@ dato-grid-header span {
8916
8942
  display: block;
8917
8943
  }
8918
8944
 
8945
+ .ag-dato-core .ag-column-select-panel .ag-column-select-header .ag-column-tool-panel .ag-icon.ag-icon-checkbox-checked:before {
8946
+ display: none;
8947
+ }
8948
+
8919
8949
  .ag-dato-core .ag-column-select-panel .ag-column-select-header .ag-column-tool-panel .ag-icon.ag-icon-checkbox-unchecked,
8920
8950
  .ag-dato-core .ag-column-select-panel .ag-column-select-header .ag-column-tool-panel .ag-icon.ag-icon-checkbox-indeterminate {
8921
8951
  background-color: themify(primary-0);
@@ -9009,6 +9039,10 @@ dato-grid-header span {
9009
9039
  display: block;
9010
9040
  }
9011
9041
 
9042
+ .ag-dato-core .ag-column-select-panel .ag-column-container .ag-column-select-column .ag-column-select-checkbox > span .ag-icon.ag-icon-checkbox-checked:before {
9043
+ display: none;
9044
+ }
9045
+
9012
9046
  .ag-dato-core .ag-column-select-panel .ag-column-container .ag-column-select-column .ag-column-select-checkbox > span .ag-icon.ag-icon-checkbox-unchecked,
9013
9047
  .ag-dato-core .ag-column-select-panel .ag-column-container .ag-column-select-column .ag-column-select-checkbox > span .ag-icon.ag-icon-checkbox-indeterminate {
9014
9048
  background-color: themify(primary-0);
@@ -14799,6 +14833,10 @@ dato-input input:disabled:hover {
14799
14833
  flex-grow: 1;
14800
14834
  }
14801
14835
 
14836
+ .dato-grid .ag-menu .ag-menu-separator {
14837
+ height: unset;
14838
+ }
14839
+
14802
14840
  .dato-grid .ag-menu .ag-menu-separator > span {
14803
14841
  height: 1px;
14804
14842
  margin: 7px 0;
@@ -14866,6 +14904,10 @@ dato-input input:disabled:hover {
14866
14904
  display: block;
14867
14905
  }
14868
14906
 
14907
+ .dato-grid .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-checked:before {
14908
+ display: none;
14909
+ }
14910
+
14869
14911
  .dato-grid .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-unchecked,
14870
14912
  .dato-grid .ag-header .ag-header-cell .ag-header-select-all .ag-icon.ag-icon-checkbox-indeterminate {
14871
14913
  background-color: themify(primary-0);
@@ -15003,6 +15045,10 @@ dato-input input:disabled:hover {
15003
15045
  display: block;
15004
15046
  }
15005
15047
 
15048
+ .dato-grid .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-checked:before {
15049
+ display: none;
15050
+ }
15051
+
15006
15052
  .dato-grid .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-unchecked,
15007
15053
  .dato-grid .ag-cell .ag-selection-checkbox .ag-icon.ag-icon-checkbox-indeterminate {
15008
15054
  background-color: themify(primary-0);
@@ -15028,10 +15074,6 @@ dato-input input:disabled:hover {
15028
15074
  margin-left: 0;
15029
15075
  }
15030
15076
 
15031
- .dato-grid .ag-cell .ag-selection-checkbox .ag-icon-checkbox-checked:before {
15032
- display: none;
15033
- }
15034
-
15035
15077
  .dato-grid .ag-cell .search-highlight {
15036
15078
  background-color: #FDF2CF;
15037
15079
  }
@@ -3946,19 +3946,11 @@
3946
3946
  return DatoDisableControlDirective;
3947
3947
  }());
3948
3948
 
3949
- function copyToClipboard(value) {
3950
- var el = createElement('textarea');
3951
- el.value = value;
3952
- // Set non-editable to avoid focus and move outside of view
3953
- el.setAttribute('readonly', '');
3954
- setStyles(el, { position: 'absolute', left: '-9999px' });
3955
- var remove = appendToBody(el);
3956
- // Select text inside element
3957
- el.select();
3958
- // Copy text to clipboard
3959
- document.execCommand('copy');
3960
- // Remove temporary element
3961
- remove();
3949
+ function writeToClipboard(value) {
3950
+ navigator.clipboard.writeText(value);
3951
+ }
3952
+ function readFromClipboard() {
3953
+ return navigator.clipboard.readText();
3962
3954
  }
3963
3955
  var DatoClipboardDirective = /** @class */ (function () {
3964
3956
  function DatoClipboardDirective() {
@@ -3972,7 +3964,7 @@
3972
3964
  configurable: true
3973
3965
  });
3974
3966
  DatoClipboardDirective.prototype.onClick = function () {
3975
- copyToClipboard(this.value);
3967
+ writeToClipboard(this.value);
3976
3968
  this.copied.emit(this.value);
3977
3969
  };
3978
3970
  __decorate([
@@ -5955,7 +5947,8 @@
5955
5947
  this.gridColumnApi = event.columnApi;
5956
5948
  if (this.gridColumnApi.getRowGroupColumns().length >= 1) {
5957
5949
  this.gridComponent.rowGroupOpened.pipe(ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function (event) { return _this.rowGroupStateChange(event); });
5958
- this.paginationComponent.toggleRowGroup.pipe(ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function () { return _this.toggleCollapseState(); });
5950
+ this.paginationComponent &&
5951
+ this.paginationComponent.toggleRowGroup.pipe(ngxTakeUntilDestroy.untilDestroyed(this)).subscribe(function () { return _this.toggleCollapseState(); });
5959
5952
  }
5960
5953
  this.cdr.detectChanges();
5961
5954
  this.gridReady.emit(event);
@@ -14361,26 +14354,41 @@
14361
14354
  this.loadSavedSettings(savedSettings);
14362
14355
  }
14363
14356
  };
14357
+ GridService.prototype.initGridOptions = function (gridOptions) {
14358
+ var options = __assign({}, gridOptions);
14359
+ if (typeof gridOptions.enableSearch === 'undefined') {
14360
+ options.enableSearch = options.enableV2_1;
14361
+ }
14362
+ if (typeof gridOptions.enableBackground === 'undefined') {
14363
+ options.enableBackground = options.enableV2_1;
14364
+ }
14365
+ if (typeof gridOptions.showMultiSelectionCheckboxes === 'undefined') {
14366
+ options.showMultiSelectionCheckboxes =
14367
+ gridOptions.enableV2_1 && options.rowSelection !== exports.GridRowSelectionType.SINGLE;
14368
+ }
14369
+ if (typeof gridOptions.enableSearchHighlight === 'undefined') {
14370
+ options.enableSearchHighlight = options.enableSearch && defaultGridOptions.enableSearchHighlight;
14371
+ }
14372
+ if (gridOptions.usePivotGridStyle) {
14373
+ var rowHeight_1 = 30;
14374
+ options.rowHeight = rowHeight_1;
14375
+ options.defaultColDef = __assign(__assign({}, options.defaultColDef), { cellClassRules: this.getPivotModeCellClassRules(), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14376
+ var style = { lineHeight: rowHeight_1 + "px" };
14377
+ if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
14378
+ style.textAlign = 'end';
14379
+ }
14380
+ return style;
14381
+ } });
14382
+ options.autoGroupColumnDef = __assign(__assign({}, options.autoGroupColumnDef), { cellClassRules: this.getPivotModeCellClassRules(), headerClass: this.getPivotHeaderClass.bind(this) });
14383
+ }
14384
+ return options;
14385
+ };
14364
14386
  GridService.prototype.normalizeOptions = function (params) {
14365
14387
  var _this = this;
14366
14388
  this.customHeadersTemplates = params.customHeadersTemplates;
14367
14389
  var headerComponentParams = { gridService: this, gridQuery: this.gridQuery };
14368
14390
  params.gridOptions.autoGroupColumnDef = __assign(__assign({}, headerComponentParams), params.gridOptions.autoGroupColumnDef);
14369
14391
  params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { headerComponentParams: headerComponentParams });
14370
- if (typeof params.gridOptions.enableSearch === 'undefined') {
14371
- params.gridOptions.enableSearch = params.gridOptions.enableV2_1;
14372
- }
14373
- if (typeof params.gridOptions.enableBackground === 'undefined') {
14374
- params.gridOptions.enableBackground = params.gridOptions.enableV2_1;
14375
- }
14376
- if (typeof params.gridOptions.showMultiSelectionCheckboxes === 'undefined') {
14377
- params.gridOptions.showMultiSelectionCheckboxes =
14378
- params.gridOptions.enableV2_1 && params.gridOptions.rowSelection !== exports.GridRowSelectionType.SINGLE;
14379
- }
14380
- if (typeof params.gridOptions.enableSearchHighlight === 'undefined') {
14381
- params.gridOptions.enableSearchHighlight =
14382
- params.gridOptions.enableSearch && defaultGridOptions.enableSearchHighlight;
14383
- }
14384
14392
  params.gridOptions.columnDefs = this.normalizeColumns(params.gridOptions.columnDefs, params.gridOptions);
14385
14393
  /** Add core filters */
14386
14394
  params.gridOptions.isExternalFilterPresent = function () { return true; };
@@ -14419,18 +14427,6 @@
14419
14427
  this.initPivotSecondaryColsProcess(params);
14420
14428
  params.gridOptions.saveSettings = false;
14421
14429
  }
14422
- if (params.gridOptions.usePivotGridStyle) {
14423
- var rowHeight_1 = 30;
14424
- params.gridOptions.rowHeight = rowHeight_1;
14425
- params.gridOptions.defaultColDef = __assign(__assign({}, params.gridOptions.defaultColDef), { cellClassRules: this.getPivotModeCellClassRules(), headerClass: this.getPivotHeaderClass.bind(this), cellStyle: function (params) {
14426
- var style = { lineHeight: rowHeight_1 + "px" };
14427
- if (params.colDef.type === exports.DatoGridColumnTypes.Number) {
14428
- style.textAlign = 'end';
14429
- }
14430
- return style;
14431
- } });
14432
- params.gridOptions.autoGroupColumnDef = __assign(__assign({}, params.gridOptions.autoGroupColumnDef), { cellClassRules: this.getPivotModeCellClassRules(), headerClass: this.getPivotHeaderClass.bind(this) });
14433
- }
14434
14430
  return params.gridOptions;
14435
14431
  };
14436
14432
  GridService.prototype.getPivotHeaderClass = function (params) {
@@ -14868,7 +14864,7 @@
14868
14864
  var rawValue = _this.api.grid.getValue(column.getColId(), row);
14869
14865
  var formatter = column.getColDef().valueFormatter;
14870
14866
  var value = formatter && typeof formatter !== 'string' ? formatter(rawValue) : rawValue;
14871
- copyToClipboard(value);
14867
+ writeToClipboard(value);
14872
14868
  };
14873
14869
  if (node.isSelected()) {
14874
14870
  selected = _this.gridQuery.getSelectedRowNodes();
@@ -15744,8 +15740,8 @@
15744
15740
  this.onGridChange = new core.EventEmitter();
15745
15741
  this.rowActions = [];
15746
15742
  this.gridActions = [];
15747
- this.contentInit = new rxjs.Subject();
15748
15743
  this.gridReady$ = this.gridQuery.gridReady$;
15744
+ this.contentInit = new rxjs.Subject();
15749
15745
  this.gridElements = {
15750
15746
  centerViewport: null,
15751
15747
  centerContainer: null,
@@ -15758,7 +15754,7 @@
15758
15754
  return this._gridOptions;
15759
15755
  },
15760
15756
  set: function (gridOptions) {
15761
- this._gridOptions = gridOptions;
15757
+ this._gridOptions = this.gridService.initGridOptions(gridOptions);
15762
15758
  this.gridService.treeData = gridOptions.treeData;
15763
15759
  this.gridService.isPivotMode = gridOptions.pivotMode;
15764
15760
  if (this.agGridEl) {
@@ -25965,7 +25961,6 @@
25965
25961
  exports.compose = compose;
25966
25962
  exports.convertFromTreeData = convertFromTreeData;
25967
25963
  exports.convertToTreeData = convertToTreeData;
25968
- exports.copyToClipboard = copyToClipboard;
25969
25964
  exports.createComponent = createComponent;
25970
25965
  exports.createElement = createElement;
25971
25966
  exports.createGUID = createGUID;
@@ -26081,6 +26076,7 @@
26081
26076
  exports.queryAll = queryAll;
26082
26077
  exports.random = random;
26083
26078
  exports.rawDiff = rawDiff;
26079
+ exports.readFromClipboard = readFromClipboard;
26084
26080
  exports.reject = reject;
26085
26081
  exports.relativeDateTypes = relativeDateTypes;
26086
26082
  exports.removeClass = removeClass;
@@ -26130,6 +26126,7 @@
26130
26126
  exports.validateStringCondition = validateStringCondition;
26131
26127
  exports.values = values;
26132
26128
  exports.workerMap = workerMap;
26129
+ exports.writeToClipboard = writeToClipboard;
26133
26130
  exports.zoneStable = zoneStable;
26134
26131
  exports.ɵ0 = ɵ0$2;
26135
26132
  exports.ɵ1 = ɵ1$2;