igniteui-angular 11.1.31 → 11.1.32

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.
@@ -23715,7 +23715,7 @@
23715
23715
  * ```
23716
23716
  */
23717
23717
  IgxRowDirective.prototype.pin = function () {
23718
- return this.grid.pinRow(this.rowID);
23718
+ return this.grid.pinRow(this.rowID, this.index);
23719
23719
  };
23720
23720
  /**
23721
23721
  * Unpins the specified row.
@@ -46312,8 +46312,6 @@
46312
46312
  * @internal
46313
46313
  */
46314
46314
  _this.defaultStyle = true;
46315
- /** @hidden @internal */
46316
- _this.width = null;
46317
46315
  _this.iconService.addSvgIconFromText(materialIconsExtended.pinLeft.name, materialIconsExtended.pinLeft.value, 'imx-icons');
46318
46316
  _this.iconService.addSvgIconFromText(materialIconsExtended.unpinLeft.name, materialIconsExtended.unpinLeft.value, 'imx-icons');
46319
46317
  return _this;
@@ -46370,12 +46368,6 @@
46370
46368
  configurable: true
46371
46369
  });
46372
46370
  /** @hidden @internal */
46373
- IgxGridToolbarComponent.prototype.ngOnInit = function () {
46374
- var _this = this;
46375
- this.grid.rendered$.pipe(operators.first()).subscribe(function () { return _this.width = _this.grid.outerWidth; });
46376
- this.sub = this.grid.resizeNotify.subscribe(function () { return _this.width = _this.grid.outerWidth; });
46377
- };
46378
- /** @hidden @internal */
46379
46371
  IgxGridToolbarComponent.prototype.ngOnDestroy = function () {
46380
46372
  var _a;
46381
46373
  (_a = this.sub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
@@ -46401,8 +46393,7 @@
46401
46393
  hasActions: [{ type: i0.ContentChild, args: [IgxGridToolbarActionsDirective,] }],
46402
46394
  defaultStyle: [{ type: i0.HostBinding, args: ['class.igx-grid-toolbar',] }],
46403
46395
  cosyStyle: [{ type: i0.HostBinding, args: ['class.igx-grid-toolbar--cosy',] }],
46404
- compactStyle: [{ type: i0.HostBinding, args: ['class.igx-grid-toolbar--compact',] }],
46405
- width: [{ type: i0.HostBinding, args: ['style.max-width.px',] }, { type: i0.HostBinding, args: ['style.flex-basis.px',] }]
46396
+ compactStyle: [{ type: i0.HostBinding, args: ['class.igx-grid-toolbar--compact',] }]
46406
46397
  };
46407
46398
 
46408
46399
  /** @hidden @internal */
@@ -56266,9 +56257,13 @@
56266
56257
  insertAtIndex: index,
56267
56258
  isPinned: true,
56268
56259
  rowID: rowID,
56269
- row: row
56260
+ row: row,
56261
+ cancel: false
56270
56262
  };
56271
56263
  this.onRowPinning.emit(eventArgs);
56264
+ if (eventArgs.cancel) {
56265
+ return;
56266
+ }
56272
56267
  this.endEdit(false);
56273
56268
  var insertIndex = typeof eventArgs.insertAtIndex === 'number' ? eventArgs.insertAtIndex : this._pinnedRecordIDs.length;
56274
56269
  this._pinnedRecordIDs.splice(insertIndex, 0, rowID);
@@ -56297,9 +56292,13 @@
56297
56292
  var eventArgs = {
56298
56293
  isPinned: false,
56299
56294
  rowID: rowID,
56300
- row: row
56295
+ row: row,
56296
+ cancel: false
56301
56297
  };
56302
56298
  this.onRowPinning.emit(eventArgs);
56299
+ if (eventArgs.cancel) {
56300
+ return;
56301
+ }
56303
56302
  this.endEdit(false);
56304
56303
  this._pinnedRecordIDs.splice(index, 1);
56305
56304
  this._pipeTrigger++;