@colijnit/corecomponents_v12 259.1.3 → 259.1.4

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.
@@ -9795,6 +9795,7 @@
9795
9795
  this.headerColumns = [];
9796
9796
  this.headerColumnsCopy = [];
9797
9797
  this._data = [];
9798
+ this._exportData = [];
9798
9799
  this.disabledRows = [];
9799
9800
  this._prepared = false;
9800
9801
  }
@@ -9818,6 +9819,16 @@
9818
9819
  enumerable: false,
9819
9820
  configurable: true
9820
9821
  });
9822
+ Object.defineProperty(BaseSimpleGridComponent.prototype, "exportData", {
9823
+ get: function () {
9824
+ return this._exportData;
9825
+ },
9826
+ set: function (value) {
9827
+ this._exportData = value;
9828
+ },
9829
+ enumerable: false,
9830
+ configurable: true
9831
+ });
9821
9832
  Object.defineProperty(BaseSimpleGridComponent.prototype, "extraColumns", {
9822
9833
  set: function (value) {
9823
9834
  this._setColumns(value);
@@ -9926,6 +9937,7 @@
9926
9937
  BaseSimpleGridComponent.propDecorators = {
9927
9938
  content: [{ type: i0.ContentChildren, args: [SimpleGridColumnDirective,] }],
9928
9939
  data: [{ type: i0.Input }],
9940
+ exportData: [{ type: i0.Input }],
9929
9941
  dragDropEnabled: [{ type: i0.Input }],
9930
9942
  resizable: [{ type: i0.Input }],
9931
9943
  inlineEdit: [{ type: i0.Input }],
@@ -10461,7 +10473,7 @@
10461
10473
  };
10462
10474
  SimpleGridComponent.prototype.exportToExcel = function () {
10463
10475
  this.isSettingsMenuOpen = false;
10464
- var exportData = this._filterSelectedOrReturnAll(this.data);
10476
+ var exportData = this.exportData.length > 0 ? this._filterSelectedOrReturnAll(this.exportData) : this._filterSelectedOrReturnAll(this.data);
10465
10477
  var columns = this.headerColumnsCopy.map(function (column) {
10466
10478
  return ({
10467
10479
  key: column.field,