igniteui-angular 12.3.28 → 12.3.29

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.
@@ -7464,8 +7464,8 @@
7464
7464
  if (isAddRow) {
7465
7465
  this.endAddRow();
7466
7466
  if (commit) {
7467
- this.grid.rowAddedNotifier.next({ data: args.newValue });
7468
- this.grid.rowAdded.emit({ data: args.newValue });
7467
+ this.grid.rowAddedNotifier.next({ data: args.newValue, owner: this.grid });
7468
+ this.grid.rowAdded.emit({ data: args.newValue, owner: this.grid });
7469
7469
  }
7470
7470
  }
7471
7471
  return args;
@@ -7930,8 +7930,7 @@
7930
7930
  return;
7931
7931
  }
7932
7932
  var record = data[index];
7933
- // // TODO: should we emit this when cascadeOnDelete is true for each row?!?!
7934
- grid.rowDeletedNotifier.next({ data: data[index] });
7933
+ grid.rowDeletedNotifier.next({ data: data[index], owner: grid });
7935
7934
  this.deleteRowFromData(rowId, index);
7936
7935
  if (grid.selectionService.isRowSelected(rowId)) {
7937
7936
  grid.selectionService.deselectRow(rowId);
@@ -57978,8 +57977,8 @@
57978
57977
  _this.notifyChanges(true);
57979
57978
  _this.cdr.detectChanges();
57980
57979
  });
57981
- this.verticalScrollContainer.contentSizeChange.pipe(operators.filter(function () { return !_this._init; }), destructor).subscribe(function () {
57982
- _this.notifyChanges();
57980
+ this.verticalScrollContainer.contentSizeChange.pipe(operators.filter(function () { return !_this._init; }), operators.throttleTime(30), destructor).subscribe(function () {
57981
+ _this.notifyChanges(true);
57983
57982
  });
57984
57983
  this.onDensityChanged.pipe(destructor).subscribe(function () {
57985
57984
  _this.crudService.endEdit(false);
@@ -58982,7 +58981,7 @@
58982
58981
  // commit pending states prior to adding a row
58983
58982
  this.crudService.endEdit(true);
58984
58983
  this.gridAPI.addRowToData(data);
58985
- this.rowAddedNotifier.next({ data: data });
58984
+ this.rowAddedNotifier.next({ data: data, owner: this });
58986
58985
  this.pipeTrigger++;
58987
58986
  this.notifyChanges();
58988
58987
  };
@@ -59009,7 +59008,8 @@
59009
59008
  rowID: rowId,
59010
59009
  cancel: false,
59011
59010
  rowData: this.getRowData(rowId),
59012
- oldValue: null
59011
+ oldValue: null,
59012
+ owner: this
59013
59013
  };
59014
59014
  this.rowDelete.emit(args);
59015
59015
  if (args.cancel) {
@@ -59017,8 +59017,7 @@
59017
59017
  }
59018
59018
  var record = this.gridAPI.deleteRowById(rowId);
59019
59019
  if (record !== null && record !== undefined) {
59020
- // TODO: should we emit this when cascadeOnDelete is true for each row?!?!
59021
- this.rowDeleted.emit({ data: record });
59020
+ this.rowDeleted.emit({ data: record, owner: this });
59022
59021
  }
59023
59022
  return record;
59024
59023
  };
@@ -61227,10 +61226,12 @@
61227
61226
  this.tbody.nativeElement.style.display = 'none';
61228
61227
  var res = !this.nativeElement.parentElement ||
61229
61228
  this.nativeElement.parentElement.clientHeight === 0 ||
61230
- this.nativeElement.parentElement.clientHeight === renderedHeight ||
61229
+ this.nativeElement.parentElement.clientHeight === renderedHeight;
61230
+ if (!this.platform.isChromium && !this.platform.isFirefox) {
61231
61231
  // If grid causes the parent container to extend (for example when container is flex)
61232
61232
  // we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
61233
- this.checkContainerSizeChange();
61233
+ res = this.checkContainerSizeChange();
61234
+ }
61234
61235
  this.tbody.nativeElement.style.display = '';
61235
61236
  return res;
61236
61237
  };
@@ -73946,7 +73947,7 @@
73946
73947
  IgxTreeGridComponent.prototype.addRow = function (data, parentRowID) {
73947
73948
  this.crudService.endEdit(true);
73948
73949
  this.gridAPI.addRowToData(data, parentRowID);
73949
- this.rowAddedNotifier.next({ data: data });
73950
+ this.rowAddedNotifier.next({ data: data, owner: this });
73950
73951
  this.pipeTrigger++;
73951
73952
  this.notifyChanges();
73952
73953
  };
@@ -74056,7 +74057,22 @@
74056
74057
  // if this is flat self-referencing data, and CascadeOnDelete is set to true
74057
74058
  // and if we have transactions we should start pending transaction. This allows
74058
74059
  // us in case of delete action to delete all child rows as single undo action
74059
- return this._gridAPI.deleteRowById(rowId);
74060
+ var args = {
74061
+ rowID: rowId,
74062
+ cancel: false,
74063
+ rowData: this.getRowData(rowId),
74064
+ oldValue: null,
74065
+ owner: this
74066
+ };
74067
+ this.rowDelete.emit(args);
74068
+ if (args.cancel) {
74069
+ return;
74070
+ }
74071
+ var record = this.gridAPI.deleteRowById(rowId);
74072
+ if (record !== null && record !== undefined) {
74073
+ this.rowDeleted.emit({ data: record, owner: this });
74074
+ }
74075
+ return record;
74060
74076
  };
74061
74077
  /**
74062
74078
  * Returns the `IgxTreeGridRow` by index.
@@ -74448,6 +74464,7 @@
74448
74464
  { provide: GridBaseAPIService, useClass: IgxTreeGridAPIService },
74449
74465
  { provide: IgxGridBaseDirective, useExisting: i0.forwardRef(function () { return IgxTreeGridComponent; }) },
74450
74466
  IgxFilteringService,
74467
+ IgxColumnResizingService,
74451
74468
  IgxForOfSyncService,
74452
74469
  IgxForOfScrollSyncService
74453
74470
  ]
@@ -77644,6 +77661,7 @@
77644
77661
  { provide: GridBaseAPIService, useClass: IgxHierarchicalGridAPIService },
77645
77662
  { provide: IgxGridBaseDirective, useExisting: i0.forwardRef(function () { return IgxHierarchicalGridComponent; }) },
77646
77663
  IgxGridSummaryService,
77664
+ IgxColumnResizingService,
77647
77665
  IgxFilteringService,
77648
77666
  IgxHierarchicalGridNavigationService,
77649
77667
  IgxForOfSyncService,
@@ -82887,17 +82905,75 @@
82887
82905
  this.overflow = 'auto';
82888
82906
  /**
82889
82907
  * @hidden @internal
82890
- * Gets/Sets the `minHeight` and `minWidth` properties of the current pane.
82908
+ * Get/Sets the `minWidth` properties of the current pane.
82891
82909
  */
82892
- this.minHeight = 0;
82910
+ this.minWidth = '0';
82893
82911
  /**
82894
82912
  * @hidden @internal
82895
- * Gets/Sets the `maxHeight` and `maxWidth` properties of the current `IgxSplitterPaneComponent`.
82913
+ * Get/Sets the `maxWidth` properties of the current pane.
82914
+ */
82915
+ this.maxWidth = '100%';
82916
+ /**
82917
+ * @hidden @internal
82918
+ * Gets/Sets the `minHeight` properties of the current pane.
82919
+ */
82920
+ this.minHeight = '0';
82921
+ /**
82922
+ * @hidden @internal
82923
+ * Gets/Sets the `maxHeight` properties of the current `IgxSplitterPaneComponent`.
82896
82924
  */
82897
82925
  this.maxHeight = '100%';
82898
82926
  this._size = 'auto';
82899
82927
  this._collapsed = false;
82900
82928
  }
82929
+ Object.defineProperty(IgxSplitterPaneComponent.prototype, "minSize", {
82930
+ /**
82931
+ * Gets/Sets the minimum allowed size of the current pane.
82932
+ *
82933
+ * @example
82934
+ * ```html
82935
+ * <igx-splitter>
82936
+ * <igx-splitter-pane [minSize]='minSize'>...</igx-splitter-pane>
82937
+ * </igx-splitter>
82938
+ * ```
82939
+ */
82940
+ get: function () {
82941
+ return this._minSize;
82942
+ },
82943
+ set: function (value) {
82944
+ this._minSize = value;
82945
+ if (this.owner) {
82946
+ this.owner.panes.notifyOnChanges();
82947
+ }
82948
+ },
82949
+ enumerable: false,
82950
+ configurable: true
82951
+ });
82952
+ ;
82953
+ Object.defineProperty(IgxSplitterPaneComponent.prototype, "maxSize", {
82954
+ /**
82955
+ * Gets/Set the maximum allowed size of the current pane.
82956
+ *
82957
+ * @example
82958
+ * ```html
82959
+ * <igx-splitter>
82960
+ * <igx-splitter-pane [maxSize]='maxSize'>...</igx-splitter-pane>
82961
+ * </igx-splitter>
82962
+ * ```
82963
+ */
82964
+ get: function () {
82965
+ return this._maxSize;
82966
+ },
82967
+ set: function (value) {
82968
+ this._maxSize = value;
82969
+ if (this.owner) {
82970
+ this.owner.panes.notifyOnChanges();
82971
+ }
82972
+ },
82973
+ enumerable: false,
82974
+ configurable: true
82975
+ });
82976
+ ;
82901
82977
  Object.defineProperty(IgxSplitterPaneComponent.prototype, "size", {
82902
82978
  /**
82903
82979
  * Gets/Sets the size of the current pane.
@@ -83034,8 +83110,10 @@
83034
83110
  collapsedChange: [{ type: i0.Output }],
83035
83111
  order: [{ type: i0.HostBinding, args: ['style.order',] }],
83036
83112
  overflow: [{ type: i0.HostBinding, args: ['style.overflow',] }],
83037
- minHeight: [{ type: i0.HostBinding, args: ['style.min-height',] }, { type: i0.HostBinding, args: ['style.min-width',] }],
83038
- maxHeight: [{ type: i0.HostBinding, args: ['style.max-height',] }, { type: i0.HostBinding, args: ['style.max-width',] }],
83113
+ minWidth: [{ type: i0.HostBinding, args: ['style.min-width',] }],
83114
+ maxWidth: [{ type: i0.HostBinding, args: ['style.max-width',] }],
83115
+ minHeight: [{ type: i0.HostBinding, args: ['style.min-height',] }],
83116
+ maxHeight: [{ type: i0.HostBinding, args: ['style.max-height',] }],
83039
83117
  size: [{ type: i0.Input }],
83040
83118
  flex: [{ type: i0.HostBinding, args: ['style.flex',] }],
83041
83119
  collapsed: [{ type: i0.Input }]
@@ -83137,8 +83215,10 @@
83137
83215
  return this._type;
83138
83216
  },
83139
83217
  set: function (value) {
83218
+ var _a;
83140
83219
  this._type = value;
83141
83220
  this.resetPaneSizes();
83221
+ (_a = this.panes) === null || _a === void 0 ? void 0 : _a.notifyOnChanges();
83142
83222
  },
83143
83223
  enumerable: false,
83144
83224
  configurable: true
@@ -83252,7 +83332,18 @@
83252
83332
  */
83253
83333
  IgxSplitterComponent.prototype.initPanes = function () {
83254
83334
  var _this = this;
83255
- this.panes.forEach(function (pane) { return pane.owner = _this; });
83335
+ this.panes.forEach(function (pane) {
83336
+ var _a, _b, _c, _d;
83337
+ pane.owner = _this;
83338
+ if (_this.type === exports.SplitterType.Horizontal) {
83339
+ pane.minWidth = (_a = pane.minSize) !== null && _a !== void 0 ? _a : '0';
83340
+ pane.maxWidth = (_b = pane.maxSize) !== null && _b !== void 0 ? _b : '100%';
83341
+ }
83342
+ else {
83343
+ pane.minHeight = (_c = pane.minSize) !== null && _c !== void 0 ? _c : '0';
83344
+ pane.maxHeight = (_d = pane.maxSize) !== null && _d !== void 0 ? _d : '100%';
83345
+ }
83346
+ });
83256
83347
  this.assignFlexOrder();
83257
83348
  if (this.panes.filter(function (x) { return x.collapsed; }).length > 0) {
83258
83349
  // if any panes are collapsed, reset sizes.
@@ -83266,7 +83357,13 @@
83266
83357
  IgxSplitterComponent.prototype.resetPaneSizes = function () {
83267
83358
  if (this.panes) {
83268
83359
  // if type is changed runtime, should reset sizes.
83269
- this.panes.forEach(function (x) { return x.size = 'auto'; });
83360
+ this.panes.forEach(function (x) {
83361
+ x.size = 'auto';
83362
+ x.minWidth = '0';
83363
+ x.maxWidth = '100%';
83364
+ x.minHeight = '0';
83365
+ x.maxHeight = '100%';
83366
+ });
83270
83367
  }
83271
83368
  };
83272
83369
  /**