igniteui-angular 13.2.3 → 13.2.6

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.
@@ -11158,7 +11158,7 @@ class IgxGridForOfDirective extends IgxForOfDirective {
11158
11158
  this.igxForContainerSize = args.containerSize;
11159
11159
  const sizeDiff = this._updateSizeCache(changes);
11160
11160
  this._applyChanges();
11161
- if (sizeDiff) {
11161
+ if (sizeDiff && this.igxForScrollOrientation === 'vertical') {
11162
11162
  this._adjustScrollPositionAfterSizeChange(sizeDiff);
11163
11163
  }
11164
11164
  this._updateScrollOffset();
@@ -24016,8 +24016,8 @@ class IgxRowAddCrudState extends IgxRowCrudState {
24016
24016
  if (isAddRow) {
24017
24017
  this.endAddRow();
24018
24018
  if (commit) {
24019
- this.grid.rowAddedNotifier.next({ data: args.newValue });
24020
- this.grid.rowAdded.emit({ data: args.newValue });
24019
+ this.grid.rowAddedNotifier.next({ data: args.newValue, owner: this.grid });
24020
+ this.grid.rowAdded.emit({ data: args.newValue, owner: this.grid });
24021
24021
  }
24022
24022
  }
24023
24023
  return args;
@@ -37693,7 +37693,7 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
37693
37693
  }
37694
37694
  /** @hidden @internal */
37695
37695
  onBlur() {
37696
- if (this.collapsed) {
37696
+ if (this.collapsed && !this.selectedItem) {
37697
37697
  this.clearOnBlur();
37698
37698
  }
37699
37699
  super.onBlur();
@@ -46365,6 +46365,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
46365
46365
  selector: '[igxTreeExpandIndicator]'
46366
46366
  }]
46367
46367
  }] });
46368
+ /**
46369
+ * IgxTreeComponent allows a developer to show a set of nodes in a hierarchical fashion.
46370
+ *
46371
+ * @igxModule IgxTreeModule
46372
+ * @igxKeywords tree
46373
+ * @igxTheme igx-tree-theme
46374
+ * @igxGroup Grids & Lists
46375
+ *
46376
+ * @remark
46377
+ * The Angular Tree Component allows users to represent hierarchical data in a tree-view structure,
46378
+ * maintaining parent-child relationships, as well as to define static tree-view structure without a corresponding data model.
46379
+ * Its primary purpose is to allow end-users to visualize and navigate within hierarchical data structures.
46380
+ * The Ignite UI for Angular Tree Component also provides load on demand capabilities, item activation,
46381
+ * bi-state and cascading selection of items through built-in checkboxes, built-in keyboard navigation and more.
46382
+ *
46383
+ * @example
46384
+ * ```html
46385
+ * <igx-tree>
46386
+ * <igx-tree-node>
46387
+ * I am a parent node 1
46388
+ * <igx-tree-node>
46389
+ * I am a child node 1
46390
+ * </igx-tree-node>
46391
+ * ...
46392
+ * </igx-tree-node>
46393
+ * ...
46394
+ * </igx-tree>
46395
+ * ```
46396
+ */
46368
46397
  class IgxTreeComponent extends DisplayDensityBase {
46369
46398
  constructor(navService, selectionService, treeService, element, _displayDensityOptions) {
46370
46399
  super(_displayDensityOptions);
@@ -48408,8 +48437,7 @@ class GridBaseAPIService {
48408
48437
  return;
48409
48438
  }
48410
48439
  const record = data[index];
48411
- // // TODO: should we emit this when cascadeOnDelete is true for each row?!?!
48412
- grid.rowDeletedNotifier.next({ data: data[index] });
48440
+ grid.rowDeletedNotifier.next({ data: data[index], owner: grid });
48413
48441
  this.deleteRowFromData(rowId, index);
48414
48442
  if (grid.selectionService.isRowSelected(rowId)) {
48415
48443
  grid.selectionService.deselectRow(rowId);
@@ -60390,6 +60418,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
60390
60418
  this._rendered = false;
60391
60419
  this.DRAG_SCROLL_DELTA = 10;
60392
60420
  this._dataCloneStrategy = new DefaultDataCloneStrategy();
60421
+ this._autoSize = false;
60393
60422
  /**
60394
60423
  * @hidden @internal
60395
60424
  */
@@ -61430,6 +61459,12 @@ class IgxGridBaseDirective extends DisplayDensityBase {
61430
61459
  get scrollSize() {
61431
61460
  return this.verticalScrollContainer.getScrollNativeSize();
61432
61461
  }
61462
+ /**
61463
+ * @hidden @internal
61464
+ */
61465
+ get minColumnWidth() {
61466
+ return MINIMUM_COLUMN_WIDTH$2;
61467
+ }
61433
61468
  /**
61434
61469
  * Returns an array containing the filtered sorted data.
61435
61470
  *
@@ -61786,10 +61821,11 @@ class IgxGridBaseDirective extends DisplayDensityBase {
61786
61821
  this.notifyChanges(true);
61787
61822
  this.cdr.detectChanges();
61788
61823
  });
61789
- this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), destructor).subscribe(() => {
61790
- this.notifyChanges();
61824
+ this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
61825
+ this.notifyChanges(true);
61791
61826
  });
61792
61827
  this.onDensityChanged.pipe(destructor).subscribe(() => {
61828
+ this._autoSize = this.isPercentHeight && this.calcHeight !== this.getDataBasedBodyHeight();
61793
61829
  this.crudService.endEdit(false);
61794
61830
  if (this._summaryRowHeight === 0) {
61795
61831
  this.summaryService.summaryHeight = 0;
@@ -62756,7 +62792,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
62756
62792
  // commit pending states prior to adding a row
62757
62793
  this.crudService.endEdit(true);
62758
62794
  this.gridAPI.addRowToData(data);
62759
- this.rowAddedNotifier.next({ data });
62795
+ this.rowAddedNotifier.next({ data: data, owner: this });
62760
62796
  this.pipeTrigger++;
62761
62797
  this.notifyChanges();
62762
62798
  }
@@ -62783,7 +62819,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
62783
62819
  rowID: rowId,
62784
62820
  cancel: false,
62785
62821
  rowData: this.getRowData(rowId),
62786
- oldValue: null
62822
+ oldValue: null,
62823
+ owner: this
62787
62824
  };
62788
62825
  this.rowDelete.emit(args);
62789
62826
  if (args.cancel) {
@@ -62791,8 +62828,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
62791
62828
  }
62792
62829
  const record = this.gridAPI.deleteRowById(rowId);
62793
62830
  if (record !== null && record !== undefined) {
62794
- // TODO: should we emit this when cascadeOnDelete is true for each row?!?!
62795
- this.rowDeleted.emit({ data: record });
62831
+ this.rowDeleted.emit({ data: record, owner: this });
62796
62832
  }
62797
62833
  return record;
62798
62834
  }
@@ -63450,8 +63486,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
63450
63486
  return '0px';
63451
63487
  }
63452
63488
  const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
63453
- Math.max(computedWidth / columnsToSize, MINIMUM_COLUMN_WIDTH$2) :
63454
- Math.max((computedWidth - sumExistingWidths) / columnsToSize, MINIMUM_COLUMN_WIDTH$2));
63489
+ Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
63490
+ Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
63455
63491
  return columnWidth + 'px';
63456
63492
  }
63457
63493
  /**
@@ -64417,7 +64453,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
64417
64453
  */
64418
64454
  _derivePossibleWidth() {
64419
64455
  if (!this.columnWidthSetByUser) {
64420
- this._columnWidth = this.width !== null ? this.getPossibleColumnWidth() : MINIMUM_COLUMN_WIDTH$2 + 'px';
64456
+ this._columnWidth = this.width !== null ? this.getPossibleColumnWidth() : this.minColumnWidth + 'px';
64421
64457
  }
64422
64458
  this._columns.forEach((column) => {
64423
64459
  if (this.hasColumnLayouts && parseInt(this._columnWidth, 10)) {
@@ -64825,10 +64861,13 @@ class IgxGridBaseDirective extends DisplayDensityBase {
64825
64861
  this.tbody.nativeElement.style.display = 'none';
64826
64862
  let res = !this.nativeElement.parentElement ||
64827
64863
  this.nativeElement.parentElement.clientHeight === 0 ||
64828
- this.nativeElement.parentElement.clientHeight === renderedHeight ||
64864
+ this.nativeElement.parentElement.clientHeight === renderedHeight;
64865
+ if ((!this.platform.isChromium && !this.platform.isFirefox) || this._autoSize) {
64829
64866
  // If grid causes the parent container to extend (for example when container is flex)
64830
64867
  // we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
64831
- this.checkContainerSizeChange();
64868
+ this._autoSize = false;
64869
+ res = this.checkContainerSizeChange();
64870
+ }
64832
64871
  this.tbody.nativeElement.style.display = '';
64833
64872
  return res;
64834
64873
  }
@@ -65219,7 +65258,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
65219
65258
  const cols = this.hasColumnLayouts ?
65220
65259
  this.visibleColumns.filter(x => x.columnLayout) : this.visibleColumns.filter(x => !x.columnGroup);
65221
65260
  cols.forEach((item) => {
65222
- colSum += parseInt((item.calcWidth || item.defaultWidth), 10) || MINIMUM_COLUMN_WIDTH$2;
65261
+ colSum += parseInt((item.calcWidth || item.defaultWidth), 10) || this.minColumnWidth;
65223
65262
  });
65224
65263
  if (!colSum) {
65225
65264
  return null;
@@ -73681,7 +73720,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
73681
73720
  addRow(data, parentRowID) {
73682
73721
  this.crudService.endEdit(true);
73683
73722
  this.gridAPI.addRowToData(data, parentRowID);
73684
- this.rowAddedNotifier.next({ data });
73723
+ this.rowAddedNotifier.next({ data: data, owner: this });
73685
73724
  this.pipeTrigger++;
73686
73725
  this.notifyChanges();
73687
73726
  }
@@ -73788,7 +73827,22 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
73788
73827
  // if this is flat self-referencing data, and CascadeOnDelete is set to true
73789
73828
  // and if we have transactions we should start pending transaction. This allows
73790
73829
  // us in case of delete action to delete all child rows as single undo action
73791
- return this.gridAPI.deleteRowById(rowId);
73830
+ const args = {
73831
+ rowID: rowId,
73832
+ cancel: false,
73833
+ rowData: this.getRowData(rowId),
73834
+ oldValue: null,
73835
+ owner: this
73836
+ };
73837
+ this.rowDelete.emit(args);
73838
+ if (args.cancel) {
73839
+ return;
73840
+ }
73841
+ const record = this.gridAPI.deleteRowById(rowId);
73842
+ if (record !== null && record !== undefined) {
73843
+ this.rowDeleted.emit({ data: record, owner: this });
73844
+ }
73845
+ return record;
73792
73846
  }
73793
73847
  /**
73794
73848
  * Returns the `IgxTreeGridRow` by index.
@@ -74126,6 +74180,7 @@ IgxTreeGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
74126
74180
  IgxGridCRUDService,
74127
74181
  IgxGridSummaryService,
74128
74182
  IgxGridNavigationService,
74183
+ IgxColumnResizingService,
74129
74184
  { provide: IgxGridSelectionService, useClass: IgxTreeGridSelectionService },
74130
74185
  { provide: IGX_GRID_SERVICE_BASE, useClass: IgxTreeGridAPIService },
74131
74186
  { provide: IGX_GRID_BASE, useExisting: IgxTreeGridComponent },
@@ -74139,6 +74194,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
74139
74194
  IgxGridCRUDService,
74140
74195
  IgxGridSummaryService,
74141
74196
  IgxGridNavigationService,
74197
+ IgxColumnResizingService,
74142
74198
  { provide: IgxGridSelectionService, useClass: IgxTreeGridSelectionService },
74143
74199
  { provide: IGX_GRID_SERVICE_BASE, useClass: IgxTreeGridAPIService },
74144
74200
  { provide: IGX_GRID_BASE, useExisting: IgxTreeGridComponent },
@@ -76016,6 +76072,12 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
76016
76072
  const id = this.id;
76017
76073
  return (!this.parentIsland && this.paginationComponents?.first) || this.rootGrid.paginatorList?.find((pg) => pg.nativeElement.offsetParent?.id === id);
76018
76074
  }
76075
+ /** @hidden @internal */
76076
+ get excelStyleFilteringComponent() {
76077
+ return this.parentIsland ?
76078
+ this.parentIsland.excelStyleFilteringComponents.first :
76079
+ super.excelStyleFilteringComponent;
76080
+ }
76019
76081
  /**
76020
76082
  * Sets an array of objects containing the filtered data in the `IgxHierarchicalGridComponent`.
76021
76083
  * ```typescript
@@ -76688,6 +76750,7 @@ IgxHierarchicalGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
76688
76750
  { provide: IGX_GRID_SERVICE_BASE, useClass: IgxHierarchicalGridAPIService },
76689
76751
  { provide: IGX_GRID_BASE, useExisting: IgxHierarchicalGridComponent },
76690
76752
  IgxGridSummaryService,
76753
+ IgxColumnResizingService,
76691
76754
  IgxFilteringService,
76692
76755
  IgxHierarchicalGridNavigationService,
76693
76756
  IgxForOfSyncService,
@@ -76702,6 +76765,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
76702
76765
  { provide: IGX_GRID_SERVICE_BASE, useClass: IgxHierarchicalGridAPIService },
76703
76766
  { provide: IGX_GRID_BASE, useExisting: IgxHierarchicalGridComponent },
76704
76767
  IgxGridSummaryService,
76768
+ IgxColumnResizingService,
76705
76769
  IgxFilteringService,
76706
76770
  IgxHierarchicalGridNavigationService,
76707
76771
  IgxForOfSyncService,
@@ -81480,17 +81544,67 @@ class IgxSplitterPaneComponent {
81480
81544
  this.overflow = 'auto';
81481
81545
  /**
81482
81546
  * @hidden @internal
81483
- * Gets/Sets the `minHeight` and `minWidth` properties of the current pane.
81547
+ * Get/Sets the `minWidth` properties of the current pane.
81484
81548
  */
81485
- this.minHeight = 0;
81549
+ this.minWidth = '0';
81486
81550
  /**
81487
81551
  * @hidden @internal
81488
- * Gets/Sets the `maxHeight` and `maxWidth` properties of the current `IgxSplitterPaneComponent`.
81552
+ * Get/Sets the `maxWidth` properties of the current pane.
81553
+ */
81554
+ this.maxWidth = '100%';
81555
+ /**
81556
+ * @hidden @internal
81557
+ * Gets/Sets the `minHeight` properties of the current pane.
81558
+ */
81559
+ this.minHeight = '0';
81560
+ /**
81561
+ * @hidden @internal
81562
+ * Gets/Sets the `maxHeight` properties of the current `IgxSplitterPaneComponent`.
81489
81563
  */
81490
81564
  this.maxHeight = '100%';
81491
81565
  this._size = 'auto';
81492
81566
  this._collapsed = false;
81493
81567
  }
81568
+ /**
81569
+ * Gets/Sets the minimum allowed size of the current pane.
81570
+ *
81571
+ * @example
81572
+ * ```html
81573
+ * <igx-splitter>
81574
+ * <igx-splitter-pane [minSize]='minSize'>...</igx-splitter-pane>
81575
+ * </igx-splitter>
81576
+ * ```
81577
+ */
81578
+ get minSize() {
81579
+ return this._minSize;
81580
+ }
81581
+ ;
81582
+ set minSize(value) {
81583
+ this._minSize = value;
81584
+ if (this.owner) {
81585
+ this.owner.panes.notifyOnChanges();
81586
+ }
81587
+ }
81588
+ /**
81589
+ * Gets/Set the maximum allowed size of the current pane.
81590
+ *
81591
+ * @example
81592
+ * ```html
81593
+ * <igx-splitter>
81594
+ * <igx-splitter-pane [maxSize]='maxSize'>...</igx-splitter-pane>
81595
+ * </igx-splitter>
81596
+ * ```
81597
+ */
81598
+ get maxSize() {
81599
+ return this._maxSize;
81600
+ }
81601
+ ;
81602
+ set maxSize(value) {
81603
+ this._maxSize = value;
81604
+ if (this.owner) {
81605
+ this.owner.panes.notifyOnChanges();
81606
+ }
81607
+ }
81494
81608
  /**
81495
81609
  * Gets/Sets the size of the current pane.
81496
81610
  * * @example
@@ -81586,7 +81700,7 @@ class IgxSplitterPaneComponent {
81586
81700
  }
81587
81701
  }
81588
81702
  IgxSplitterPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IgxSplitterPaneComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
81589
- IgxSplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: IgxSplitterPaneComponent, selector: "igx-splitter-pane", inputs: { minSize: "minSize", maxSize: "maxSize", resizable: "resizable", size: "size", collapsed: "collapsed" }, outputs: { collapsedChange: "collapsedChange" }, host: { properties: { "style.display": "this.display", "style.order": "this.order", "style.overflow": "this.overflow", "style.min-height": "this.minHeight", "style.min-width": "this.minHeight", "style.max-height": "this.maxHeight", "style.max-width": "this.maxHeight", "style.flex": "this.flex" } }, ngImport: i0, template: "<ng-content></ng-content>" });
81703
+ IgxSplitterPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: IgxSplitterPaneComponent, selector: "igx-splitter-pane", inputs: { minSize: "minSize", maxSize: "maxSize", resizable: "resizable", size: "size", collapsed: "collapsed" }, outputs: { collapsedChange: "collapsedChange" }, host: { properties: { "style.display": "this.display", "style.order": "this.order", "style.overflow": "this.overflow", "style.min-width": "this.minWidth", "style.max-width": "this.maxWidth", "style.min-height": "this.minHeight", "style.max-height": "this.maxHeight", "style.flex": "this.flex" } }, ngImport: i0, template: "<ng-content></ng-content>" });
81590
81704
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IgxSplitterPaneComponent, decorators: [{
81591
81705
  type: Component,
81592
81706
  args: [{ selector: 'igx-splitter-pane', template: "<ng-content></ng-content>" }]
@@ -81607,18 +81721,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
81607
81721
  }], overflow: [{
81608
81722
  type: HostBinding,
81609
81723
  args: ['style.overflow']
81724
+ }], minWidth: [{
81725
+ type: HostBinding,
81726
+ args: ['style.min-width']
81727
+ }], maxWidth: [{
81728
+ type: HostBinding,
81729
+ args: ['style.max-width']
81610
81730
  }], minHeight: [{
81611
81731
  type: HostBinding,
81612
81732
  args: ['style.min-height']
81613
- }, {
81614
- type: HostBinding,
81615
- args: ['style.min-width']
81616
81733
  }], maxHeight: [{
81617
81734
  type: HostBinding,
81618
81735
  args: ['style.max-height']
81619
- }, {
81620
- type: HostBinding,
81621
- args: ['style.max-width']
81622
81736
  }], size: [{
81623
81737
  type: Input
81624
81738
  }], flex: [{
@@ -81737,6 +81851,7 @@ class IgxSplitterComponent {
81737
81851
  set type(value) {
81738
81852
  this._type = value;
81739
81853
  this.resetPaneSizes();
81854
+ this.panes?.notifyOnChanges();
81740
81855
  }
81741
81856
  /**
81742
81857
  * @hidden @internal
@@ -81841,7 +81956,17 @@ class IgxSplitterComponent {
81841
81956
  * This method inits panes with properties.
81842
81957
  */
81843
81958
  initPanes() {
81844
- this.panes.forEach(pane => pane.owner = this);
81959
+ this.panes.forEach(pane => {
81960
+ pane.owner = this;
81961
+ if (this.type === SplitterType.Horizontal) {
81962
+ pane.minWidth = pane.minSize ?? '0';
81963
+ pane.maxWidth = pane.maxSize ?? '100%';
81964
+ }
81965
+ else {
81966
+ pane.minHeight = pane.minSize ?? '0';
81967
+ pane.maxHeight = pane.maxSize ?? '100%';
81968
+ }
81969
+ });
81845
81970
  this.assignFlexOrder();
81846
81971
  if (this.panes.filter(x => x.collapsed).length > 0) {
81847
81972
  // if any panes are collapsed, reset sizes.
@@ -81855,7 +81980,13 @@ class IgxSplitterComponent {
81855
81980
  resetPaneSizes() {
81856
81981
  if (this.panes) {
81857
81982
  // if type is changed runtime, should reset sizes.
81858
- this.panes.forEach(x => x.size = 'auto');
81983
+ this.panes.forEach(x => {
81984
+ x.size = 'auto';
81985
+ x.minWidth = '0';
81986
+ x.maxWidth = '100%';
81987
+ x.minHeight = '0';
81988
+ x.maxHeight = '100%';
81989
+ });
81859
81990
  }
81860
81991
  }
81861
81992
  /**
@@ -86216,6 +86347,19 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
86216
86347
  */
86217
86348
  this.toolbarExporting = new EventEmitter();
86218
86349
  }
86350
+ /**
86351
+ * Gets the sorting expressions generated for the dimensions.
86352
+ *
86353
+ * @example
86354
+ * ```typescript
86355
+ * const expressions = this.grid.dimensionsSortingExpressions;
86356
+ * ```
86357
+ */
86358
+ get dimensionsSortingExpressions() {
86359
+ const allEnabledDimensions = this.rowDimensions.concat(this.columnDimensions);
86360
+ const dimensionsSortingExpressions = PivotSortUtil.generateDimensionSortingExpressions(allEnabledDimensions);
86361
+ return dimensionsSortingExpressions;
86362
+ }
86219
86363
  set pivotConfiguration(value) {
86220
86364
  this._pivotConfiguration = value;
86221
86365
  if (!this._init) {
@@ -86275,6 +86419,17 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
86275
86419
  this.onDensityChanged.emit(densityChangedArgs);
86276
86420
  }
86277
86421
  }
86422
+ /**
86423
+ * @hidden @internal
86424
+ */
86425
+ get minColumnWidth() {
86426
+ if (this.superCompactMode) {
86427
+ return MINIMUM_COLUMN_WIDTH_SUPER_COMPACT;
86428
+ }
86429
+ else {
86430
+ return MINIMUM_COLUMN_WIDTH;
86431
+ }
86432
+ }
86278
86433
  get pivotKeys() {
86279
86434
  return this.pivotConfiguration.pivotKeys || DEFAULT_PIVOT_KEYS;
86280
86435
  }
@@ -87227,9 +87382,8 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
87227
87382
  dim.childLevel.sortDirection = dimension.sortDirection;
87228
87383
  dim = dim.childLevel;
87229
87384
  }
87230
- const dimensionsSortingExpressions = PivotSortUtil.generateDimensionSortingExpressions(this.rowDimensions);
87231
87385
  this.pipeTrigger++;
87232
- this.dimensionsSortingExpressionsChange.emit(dimensionsSortingExpressions);
87386
+ this.dimensionsSortingExpressionsChange.emit(this.dimensionsSortingExpressions);
87233
87387
  if (dimensionType === PivotDimensionType.Column) {
87234
87388
  this.setupColumns();
87235
87389
  }
@@ -87480,7 +87634,6 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
87480
87634
  ref.instance.header = value.displayName;
87481
87635
  ref.instance.field = value.member;
87482
87636
  ref.instance.parent = parent;
87483
- ref.instance.width = MINIMUM_COLUMN_WIDTH + 'px';
87484
87637
  ref.instance.sortable = true;
87485
87638
  ref.instance.dataType = value.dataType || this.resolveDataTypes(data[0][value.member]);
87486
87639
  ref.instance.formatter = value.formatter;
@@ -87559,7 +87712,9 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
87559
87712
  ref.instance.header = parent != null ? key.split(parent.header + this.pivotKeys.columnDimensionSeparator)[1] : key;
87560
87713
  ref.instance.field = key;
87561
87714
  ref.instance.parent = parent;
87562
- ref.instance.width = this.resolveColumnDimensionWidth(value.dimension);
87715
+ if (value.dimension.width) {
87716
+ ref.instance.width = value.dimension.width;
87717
+ }
87563
87718
  const valueDefinition = this.values[0];
87564
87719
  ref.instance.dataType = valueDefinition?.dataType || this.resolveDataTypes(data[0][valueDefinition?.member]);
87565
87720
  ref.instance.formatter = valueDefinition?.formatter;
@@ -87571,20 +87726,21 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
87571
87726
  if (dim.width) {
87572
87727
  return dim.width;
87573
87728
  }
87574
- return this.superCompactMode ? MINIMUM_COLUMN_WIDTH_SUPER_COMPACT + 'px' : MINIMUM_COLUMN_WIDTH + 'px';
87729
+ return this.minColumnWidth + 'px';
87575
87730
  }
87576
87731
  getMeasureChildren(colFactory, data, parent, hidden, parentWidth) {
87577
87732
  const cols = [];
87578
87733
  const count = this.values.length;
87579
- const width = parentWidth ? parseInt(parentWidth, 10) / count :
87580
- this.superCompactMode ? MINIMUM_COLUMN_WIDTH_SUPER_COMPACT : MINIMUM_COLUMN_WIDTH;
87734
+ const childWidth = parseInt(parentWidth, 10) / count;
87581
87735
  const isPercent = parentWidth && parentWidth.indexOf('%') !== -1;
87582
87736
  this.values.forEach(val => {
87583
87737
  const ref = colFactory.create(this.viewRef.injector);
87584
87738
  ref.instance.header = val.displayName || val.member;
87585
87739
  ref.instance.field = parent.field + this.pivotKeys.columnDimensionSeparator + val.member;
87586
87740
  ref.instance.parent = parent;
87587
- ref.instance.width = isPercent ? width + '%' : width + 'px';
87741
+ if (parentWidth) {
87742
+ ref.instance.width = isPercent ? childWidth + '%' : childWidth + 'px';
87743
+ }
87588
87744
  ref.instance.hidden = hidden;
87589
87745
  ref.instance.sortable = true;
87590
87746
  ref.instance.dataType = val.dataType || this.resolveDataTypes(data[0][val.member]);