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.
- package/esm2020/lib/directives/for-of/for_of.directive.mjs +2 -2
- package/esm2020/lib/grids/api.service.mjs +2 -3
- package/esm2020/lib/grids/common/crud.service.mjs +3 -3
- package/esm2020/lib/grids/common/events.mjs +1 -1
- package/esm2020/lib/grids/grid-base.directive.mjs +24 -13
- package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +10 -1
- package/esm2020/lib/grids/pivot-grid/pivot-grid.component.mjs +34 -9
- package/esm2020/lib/grids/tree-grid/tree-grid.component.mjs +21 -3
- package/esm2020/lib/simple-combo/simple-combo.component.mjs +2 -2
- package/esm2020/lib/splitter/splitter-pane/splitter-pane.component.mjs +61 -11
- package/esm2020/lib/splitter/splitter.component.mjs +20 -3
- package/esm2020/lib/tree/tree.component.mjs +30 -1
- package/fesm2015/igniteui-angular.mjs +198 -40
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +196 -40
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/grids/common/events.d.ts +1 -0
- package/lib/grids/grid-base.directive.d.ts +5 -0
- package/lib/grids/hierarchical-grid/hierarchical-grid.component.d.ts +2 -0
- package/lib/grids/pivot-grid/pivot-grid.component.d.ts +13 -0
- package/lib/splitter/splitter-pane/splitter-pane.component.d.ts +19 -5
- package/lib/tree/tree.component.d.ts +29 -0
- package/migrations/update-13_0_0/changes/inputs.json +416 -1
- package/migrations/update-13_0_0/index.js +208 -0
- package/package.json +1 -1
|
@@ -10699,7 +10699,7 @@ class IgxGridForOfDirective extends IgxForOfDirective {
|
|
|
10699
10699
|
this.igxForContainerSize = args.containerSize;
|
|
10700
10700
|
const sizeDiff = this._updateSizeCache(changes);
|
|
10701
10701
|
this._applyChanges();
|
|
10702
|
-
if (sizeDiff) {
|
|
10702
|
+
if (sizeDiff && this.igxForScrollOrientation === 'vertical') {
|
|
10703
10703
|
this._adjustScrollPositionAfterSizeChange(sizeDiff);
|
|
10704
10704
|
}
|
|
10705
10705
|
this._updateScrollOffset();
|
|
@@ -23579,8 +23579,8 @@ class IgxRowAddCrudState extends IgxRowCrudState {
|
|
|
23579
23579
|
if (isAddRow) {
|
|
23580
23580
|
this.endAddRow();
|
|
23581
23581
|
if (commit) {
|
|
23582
|
-
this.grid.rowAddedNotifier.next({ data: args.newValue });
|
|
23583
|
-
this.grid.rowAdded.emit({ data: args.newValue });
|
|
23582
|
+
this.grid.rowAddedNotifier.next({ data: args.newValue, owner: this.grid });
|
|
23583
|
+
this.grid.rowAdded.emit({ data: args.newValue, owner: this.grid });
|
|
23584
23584
|
}
|
|
23585
23585
|
}
|
|
23586
23586
|
return args;
|
|
@@ -37295,7 +37295,7 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
|
|
|
37295
37295
|
}
|
|
37296
37296
|
/** @hidden @internal */
|
|
37297
37297
|
onBlur() {
|
|
37298
|
-
if (this.collapsed) {
|
|
37298
|
+
if (this.collapsed && !this.selectedItem) {
|
|
37299
37299
|
this.clearOnBlur();
|
|
37300
37300
|
}
|
|
37301
37301
|
super.onBlur();
|
|
@@ -46016,6 +46016,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
46016
46016
|
selector: '[igxTreeExpandIndicator]'
|
|
46017
46017
|
}]
|
|
46018
46018
|
}] });
|
|
46019
|
+
/**
|
|
46020
|
+
* IgxTreeComponent allows a developer to show a set of nodes in a hierarchical fashion.
|
|
46021
|
+
*
|
|
46022
|
+
* @igxModule IgxTreeModule
|
|
46023
|
+
* @igxKeywords tree
|
|
46024
|
+
* @igxTheme igx-tree-theme
|
|
46025
|
+
* @igxGroup Grids & Lists
|
|
46026
|
+
*
|
|
46027
|
+
* @remark
|
|
46028
|
+
* The Angular Tree Component allows users to represent hierarchical data in a tree-view structure,
|
|
46029
|
+
* maintaining parent-child relationships, as well as to define static tree-view structure without a corresponding data model.
|
|
46030
|
+
* Its primary purpose is to allow end-users to visualize and navigate within hierarchical data structures.
|
|
46031
|
+
* The Ignite UI for Angular Tree Component also provides load on demand capabilities, item activation,
|
|
46032
|
+
* bi-state and cascading selection of items through built-in checkboxes, built-in keyboard navigation and more.
|
|
46033
|
+
*
|
|
46034
|
+
* @example
|
|
46035
|
+
* ```html
|
|
46036
|
+
* <igx-tree>
|
|
46037
|
+
* <igx-tree-node>
|
|
46038
|
+
* I am a parent node 1
|
|
46039
|
+
* <igx-tree-node>
|
|
46040
|
+
* I am a child node 1
|
|
46041
|
+
* </igx-tree-node>
|
|
46042
|
+
* ...
|
|
46043
|
+
* </igx-tree-node>
|
|
46044
|
+
* ...
|
|
46045
|
+
* </igx-tree>
|
|
46046
|
+
* ```
|
|
46047
|
+
*/
|
|
46019
46048
|
class IgxTreeComponent extends DisplayDensityBase {
|
|
46020
46049
|
constructor(navService, selectionService, treeService, element, _displayDensityOptions) {
|
|
46021
46050
|
super(_displayDensityOptions);
|
|
@@ -48079,8 +48108,7 @@ class GridBaseAPIService {
|
|
|
48079
48108
|
return;
|
|
48080
48109
|
}
|
|
48081
48110
|
const record = data[index];
|
|
48082
|
-
|
|
48083
|
-
grid.rowDeletedNotifier.next({ data: data[index] });
|
|
48111
|
+
grid.rowDeletedNotifier.next({ data: data[index], owner: grid });
|
|
48084
48112
|
this.deleteRowFromData(rowId, index);
|
|
48085
48113
|
if (grid.selectionService.isRowSelected(rowId)) {
|
|
48086
48114
|
grid.selectionService.deselectRow(rowId);
|
|
@@ -60122,6 +60150,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
60122
60150
|
this._rendered = false;
|
|
60123
60151
|
this.DRAG_SCROLL_DELTA = 10;
|
|
60124
60152
|
this._dataCloneStrategy = new DefaultDataCloneStrategy();
|
|
60153
|
+
this._autoSize = false;
|
|
60125
60154
|
/**
|
|
60126
60155
|
* @hidden @internal
|
|
60127
60156
|
*/
|
|
@@ -61171,6 +61200,12 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
61171
61200
|
get scrollSize() {
|
|
61172
61201
|
return this.verticalScrollContainer.getScrollNativeSize();
|
|
61173
61202
|
}
|
|
61203
|
+
/**
|
|
61204
|
+
* @hidden @internal
|
|
61205
|
+
*/
|
|
61206
|
+
get minColumnWidth() {
|
|
61207
|
+
return MINIMUM_COLUMN_WIDTH$2;
|
|
61208
|
+
}
|
|
61174
61209
|
/**
|
|
61175
61210
|
* Returns an array containing the filtered sorted data.
|
|
61176
61211
|
*
|
|
@@ -61530,10 +61565,11 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
61530
61565
|
this.notifyChanges(true);
|
|
61531
61566
|
this.cdr.detectChanges();
|
|
61532
61567
|
});
|
|
61533
|
-
this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), destructor).subscribe(() => {
|
|
61534
|
-
this.notifyChanges();
|
|
61568
|
+
this.verticalScrollContainer.contentSizeChange.pipe(filter(() => !this._init), throttleTime(30), destructor).subscribe(() => {
|
|
61569
|
+
this.notifyChanges(true);
|
|
61535
61570
|
});
|
|
61536
61571
|
this.onDensityChanged.pipe(destructor).subscribe(() => {
|
|
61572
|
+
this._autoSize = this.isPercentHeight && this.calcHeight !== this.getDataBasedBodyHeight();
|
|
61537
61573
|
this.crudService.endEdit(false);
|
|
61538
61574
|
if (this._summaryRowHeight === 0) {
|
|
61539
61575
|
this.summaryService.summaryHeight = 0;
|
|
@@ -62509,7 +62545,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
62509
62545
|
// commit pending states prior to adding a row
|
|
62510
62546
|
this.crudService.endEdit(true);
|
|
62511
62547
|
this.gridAPI.addRowToData(data);
|
|
62512
|
-
this.rowAddedNotifier.next({ data });
|
|
62548
|
+
this.rowAddedNotifier.next({ data: data, owner: this });
|
|
62513
62549
|
this.pipeTrigger++;
|
|
62514
62550
|
this.notifyChanges();
|
|
62515
62551
|
}
|
|
@@ -62536,7 +62572,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
62536
62572
|
rowID: rowId,
|
|
62537
62573
|
cancel: false,
|
|
62538
62574
|
rowData: this.getRowData(rowId),
|
|
62539
|
-
oldValue: null
|
|
62575
|
+
oldValue: null,
|
|
62576
|
+
owner: this
|
|
62540
62577
|
};
|
|
62541
62578
|
this.rowDelete.emit(args);
|
|
62542
62579
|
if (args.cancel) {
|
|
@@ -62544,8 +62581,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
62544
62581
|
}
|
|
62545
62582
|
const record = this.gridAPI.deleteRowById(rowId);
|
|
62546
62583
|
if (record !== null && record !== undefined) {
|
|
62547
|
-
|
|
62548
|
-
this.rowDeleted.emit({ data: record });
|
|
62584
|
+
this.rowDeleted.emit({ data: record, owner: this });
|
|
62549
62585
|
}
|
|
62550
62586
|
return record;
|
|
62551
62587
|
}
|
|
@@ -63203,8 +63239,8 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
63203
63239
|
return '0px';
|
|
63204
63240
|
}
|
|
63205
63241
|
const columnWidth = Math.floor(!Number.isFinite(sumExistingWidths) ?
|
|
63206
|
-
Math.max(computedWidth / columnsToSize,
|
|
63207
|
-
Math.max((computedWidth - sumExistingWidths) / columnsToSize,
|
|
63242
|
+
Math.max(computedWidth / columnsToSize, this.minColumnWidth) :
|
|
63243
|
+
Math.max((computedWidth - sumExistingWidths) / columnsToSize, this.minColumnWidth));
|
|
63208
63244
|
return columnWidth + 'px';
|
|
63209
63245
|
}
|
|
63210
63246
|
/**
|
|
@@ -64172,7 +64208,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
64172
64208
|
*/
|
|
64173
64209
|
_derivePossibleWidth() {
|
|
64174
64210
|
if (!this.columnWidthSetByUser) {
|
|
64175
|
-
this._columnWidth = this.width !== null ? this.getPossibleColumnWidth() :
|
|
64211
|
+
this._columnWidth = this.width !== null ? this.getPossibleColumnWidth() : this.minColumnWidth + 'px';
|
|
64176
64212
|
}
|
|
64177
64213
|
this._columns.forEach((column) => {
|
|
64178
64214
|
if (this.hasColumnLayouts && parseInt(this._columnWidth, 10)) {
|
|
@@ -64580,10 +64616,13 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
64580
64616
|
this.tbody.nativeElement.style.display = 'none';
|
|
64581
64617
|
let res = !this.nativeElement.parentElement ||
|
|
64582
64618
|
this.nativeElement.parentElement.clientHeight === 0 ||
|
|
64583
|
-
this.nativeElement.parentElement.clientHeight === renderedHeight
|
|
64619
|
+
this.nativeElement.parentElement.clientHeight === renderedHeight;
|
|
64620
|
+
if ((!this.platform.isChromium && !this.platform.isFirefox) || this._autoSize) {
|
|
64584
64621
|
// If grid causes the parent container to extend (for example when container is flex)
|
|
64585
64622
|
// we should always auto-size since the actual size of the container will continuously change as the grid renders elements.
|
|
64586
|
-
this.
|
|
64623
|
+
this._autoSize = false;
|
|
64624
|
+
res = this.checkContainerSizeChange();
|
|
64625
|
+
}
|
|
64587
64626
|
this.tbody.nativeElement.style.display = '';
|
|
64588
64627
|
return res;
|
|
64589
64628
|
}
|
|
@@ -64975,7 +65014,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
64975
65014
|
const cols = this.hasColumnLayouts ?
|
|
64976
65015
|
this.visibleColumns.filter(x => x.columnLayout) : this.visibleColumns.filter(x => !x.columnGroup);
|
|
64977
65016
|
cols.forEach((item) => {
|
|
64978
|
-
colSum += parseInt((item.calcWidth || item.defaultWidth), 10) ||
|
|
65017
|
+
colSum += parseInt((item.calcWidth || item.defaultWidth), 10) || this.minColumnWidth;
|
|
64979
65018
|
});
|
|
64980
65019
|
if (!colSum) {
|
|
64981
65020
|
return null;
|
|
@@ -73512,7 +73551,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
|
|
|
73512
73551
|
addRow(data, parentRowID) {
|
|
73513
73552
|
this.crudService.endEdit(true);
|
|
73514
73553
|
this.gridAPI.addRowToData(data, parentRowID);
|
|
73515
|
-
this.rowAddedNotifier.next({ data });
|
|
73554
|
+
this.rowAddedNotifier.next({ data: data, owner: this });
|
|
73516
73555
|
this.pipeTrigger++;
|
|
73517
73556
|
this.notifyChanges();
|
|
73518
73557
|
}
|
|
@@ -73619,7 +73658,22 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
|
|
|
73619
73658
|
// if this is flat self-referencing data, and CascadeOnDelete is set to true
|
|
73620
73659
|
// and if we have transactions we should start pending transaction. This allows
|
|
73621
73660
|
// us in case of delete action to delete all child rows as single undo action
|
|
73622
|
-
|
|
73661
|
+
const args = {
|
|
73662
|
+
rowID: rowId,
|
|
73663
|
+
cancel: false,
|
|
73664
|
+
rowData: this.getRowData(rowId),
|
|
73665
|
+
oldValue: null,
|
|
73666
|
+
owner: this
|
|
73667
|
+
};
|
|
73668
|
+
this.rowDelete.emit(args);
|
|
73669
|
+
if (args.cancel) {
|
|
73670
|
+
return;
|
|
73671
|
+
}
|
|
73672
|
+
const record = this.gridAPI.deleteRowById(rowId);
|
|
73673
|
+
if (record !== null && record !== undefined) {
|
|
73674
|
+
this.rowDeleted.emit({ data: record, owner: this });
|
|
73675
|
+
}
|
|
73676
|
+
return record;
|
|
73623
73677
|
}
|
|
73624
73678
|
/**
|
|
73625
73679
|
* Returns the `IgxTreeGridRow` by index.
|
|
@@ -73957,6 +74011,7 @@ IgxTreeGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
73957
74011
|
IgxGridCRUDService,
|
|
73958
74012
|
IgxGridSummaryService,
|
|
73959
74013
|
IgxGridNavigationService,
|
|
74014
|
+
IgxColumnResizingService,
|
|
73960
74015
|
{ provide: IgxGridSelectionService, useClass: IgxTreeGridSelectionService },
|
|
73961
74016
|
{ provide: IGX_GRID_SERVICE_BASE, useClass: IgxTreeGridAPIService },
|
|
73962
74017
|
{ provide: IGX_GRID_BASE, useExisting: IgxTreeGridComponent },
|
|
@@ -73970,6 +74025,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
73970
74025
|
IgxGridCRUDService,
|
|
73971
74026
|
IgxGridSummaryService,
|
|
73972
74027
|
IgxGridNavigationService,
|
|
74028
|
+
IgxColumnResizingService,
|
|
73973
74029
|
{ provide: IgxGridSelectionService, useClass: IgxTreeGridSelectionService },
|
|
73974
74030
|
{ provide: IGX_GRID_SERVICE_BASE, useClass: IgxTreeGridAPIService },
|
|
73975
74031
|
{ provide: IGX_GRID_BASE, useExisting: IgxTreeGridComponent },
|
|
@@ -75864,6 +75920,12 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
75864
75920
|
const id = this.id;
|
|
75865
75921
|
return (!this.parentIsland && ((_a = this.paginationComponents) === null || _a === void 0 ? void 0 : _a.first)) || ((_b = this.rootGrid.paginatorList) === null || _b === void 0 ? void 0 : _b.find((pg) => { var _a; return ((_a = pg.nativeElement.offsetParent) === null || _a === void 0 ? void 0 : _a.id) === id; }));
|
|
75866
75922
|
}
|
|
75923
|
+
/** @hidden @internal */
|
|
75924
|
+
get excelStyleFilteringComponent() {
|
|
75925
|
+
return this.parentIsland ?
|
|
75926
|
+
this.parentIsland.excelStyleFilteringComponents.first :
|
|
75927
|
+
super.excelStyleFilteringComponent;
|
|
75928
|
+
}
|
|
75867
75929
|
/**
|
|
75868
75930
|
* Sets an array of objects containing the filtered data in the `IgxHierarchicalGridComponent`.
|
|
75869
75931
|
* ```typescript
|
|
@@ -76537,6 +76599,7 @@ IgxHierarchicalGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
76537
76599
|
{ provide: IGX_GRID_SERVICE_BASE, useClass: IgxHierarchicalGridAPIService },
|
|
76538
76600
|
{ provide: IGX_GRID_BASE, useExisting: IgxHierarchicalGridComponent },
|
|
76539
76601
|
IgxGridSummaryService,
|
|
76602
|
+
IgxColumnResizingService,
|
|
76540
76603
|
IgxFilteringService,
|
|
76541
76604
|
IgxHierarchicalGridNavigationService,
|
|
76542
76605
|
IgxForOfSyncService,
|
|
@@ -76551,6 +76614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
76551
76614
|
{ provide: IGX_GRID_SERVICE_BASE, useClass: IgxHierarchicalGridAPIService },
|
|
76552
76615
|
{ provide: IGX_GRID_BASE, useExisting: IgxHierarchicalGridComponent },
|
|
76553
76616
|
IgxGridSummaryService,
|
|
76617
|
+
IgxColumnResizingService,
|
|
76554
76618
|
IgxFilteringService,
|
|
76555
76619
|
IgxHierarchicalGridNavigationService,
|
|
76556
76620
|
IgxForOfSyncService,
|
|
@@ -81337,17 +81401,67 @@ class IgxSplitterPaneComponent {
|
|
|
81337
81401
|
this.overflow = 'auto';
|
|
81338
81402
|
/**
|
|
81339
81403
|
* @hidden @internal
|
|
81340
|
-
*
|
|
81404
|
+
* Get/Sets the `minWidth` properties of the current pane.
|
|
81341
81405
|
*/
|
|
81342
|
-
this.
|
|
81406
|
+
this.minWidth = '0';
|
|
81343
81407
|
/**
|
|
81344
81408
|
* @hidden @internal
|
|
81345
|
-
*
|
|
81409
|
+
* Get/Sets the `maxWidth` properties of the current pane.
|
|
81410
|
+
*/
|
|
81411
|
+
this.maxWidth = '100%';
|
|
81412
|
+
/**
|
|
81413
|
+
* @hidden @internal
|
|
81414
|
+
* Gets/Sets the `minHeight` properties of the current pane.
|
|
81415
|
+
*/
|
|
81416
|
+
this.minHeight = '0';
|
|
81417
|
+
/**
|
|
81418
|
+
* @hidden @internal
|
|
81419
|
+
* Gets/Sets the `maxHeight` properties of the current `IgxSplitterPaneComponent`.
|
|
81346
81420
|
*/
|
|
81347
81421
|
this.maxHeight = '100%';
|
|
81348
81422
|
this._size = 'auto';
|
|
81349
81423
|
this._collapsed = false;
|
|
81350
81424
|
}
|
|
81425
|
+
/**
|
|
81426
|
+
* Gets/Sets the minimum allowed size of the current pane.
|
|
81427
|
+
*
|
|
81428
|
+
* @example
|
|
81429
|
+
* ```html
|
|
81430
|
+
* <igx-splitter>
|
|
81431
|
+
* <igx-splitter-pane [minSize]='minSize'>...</igx-splitter-pane>
|
|
81432
|
+
* </igx-splitter>
|
|
81433
|
+
* ```
|
|
81434
|
+
*/
|
|
81435
|
+
get minSize() {
|
|
81436
|
+
return this._minSize;
|
|
81437
|
+
}
|
|
81438
|
+
;
|
|
81439
|
+
set minSize(value) {
|
|
81440
|
+
this._minSize = value;
|
|
81441
|
+
if (this.owner) {
|
|
81442
|
+
this.owner.panes.notifyOnChanges();
|
|
81443
|
+
}
|
|
81444
|
+
}
|
|
81445
|
+
/**
|
|
81446
|
+
* Gets/Set the maximum allowed size of the current pane.
|
|
81447
|
+
*
|
|
81448
|
+
* @example
|
|
81449
|
+
* ```html
|
|
81450
|
+
* <igx-splitter>
|
|
81451
|
+
* <igx-splitter-pane [maxSize]='maxSize'>...</igx-splitter-pane>
|
|
81452
|
+
* </igx-splitter>
|
|
81453
|
+
* ```
|
|
81454
|
+
*/
|
|
81455
|
+
get maxSize() {
|
|
81456
|
+
return this._maxSize;
|
|
81457
|
+
}
|
|
81458
|
+
;
|
|
81459
|
+
set maxSize(value) {
|
|
81460
|
+
this._maxSize = value;
|
|
81461
|
+
if (this.owner) {
|
|
81462
|
+
this.owner.panes.notifyOnChanges();
|
|
81463
|
+
}
|
|
81464
|
+
}
|
|
81351
81465
|
/**
|
|
81352
81466
|
* Gets/Sets the size of the current pane.
|
|
81353
81467
|
* * @example
|
|
@@ -81443,7 +81557,7 @@ class IgxSplitterPaneComponent {
|
|
|
81443
81557
|
}
|
|
81444
81558
|
}
|
|
81445
81559
|
IgxSplitterPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IgxSplitterPaneComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
81446
|
-
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-
|
|
81560
|
+
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>" });
|
|
81447
81561
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: IgxSplitterPaneComponent, decorators: [{
|
|
81448
81562
|
type: Component,
|
|
81449
81563
|
args: [{ selector: 'igx-splitter-pane', template: "<ng-content></ng-content>" }]
|
|
@@ -81464,18 +81578,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
81464
81578
|
}], overflow: [{
|
|
81465
81579
|
type: HostBinding,
|
|
81466
81580
|
args: ['style.overflow']
|
|
81581
|
+
}], minWidth: [{
|
|
81582
|
+
type: HostBinding,
|
|
81583
|
+
args: ['style.min-width']
|
|
81584
|
+
}], maxWidth: [{
|
|
81585
|
+
type: HostBinding,
|
|
81586
|
+
args: ['style.max-width']
|
|
81467
81587
|
}], minHeight: [{
|
|
81468
81588
|
type: HostBinding,
|
|
81469
81589
|
args: ['style.min-height']
|
|
81470
|
-
}, {
|
|
81471
|
-
type: HostBinding,
|
|
81472
|
-
args: ['style.min-width']
|
|
81473
81590
|
}], maxHeight: [{
|
|
81474
81591
|
type: HostBinding,
|
|
81475
81592
|
args: ['style.max-height']
|
|
81476
|
-
}, {
|
|
81477
|
-
type: HostBinding,
|
|
81478
|
-
args: ['style.max-width']
|
|
81479
81593
|
}], size: [{
|
|
81480
81594
|
type: Input
|
|
81481
81595
|
}], flex: [{
|
|
@@ -81592,8 +81706,10 @@ class IgxSplitterComponent {
|
|
|
81592
81706
|
return this._type;
|
|
81593
81707
|
}
|
|
81594
81708
|
set type(value) {
|
|
81709
|
+
var _a;
|
|
81595
81710
|
this._type = value;
|
|
81596
81711
|
this.resetPaneSizes();
|
|
81712
|
+
(_a = this.panes) === null || _a === void 0 ? void 0 : _a.notifyOnChanges();
|
|
81597
81713
|
}
|
|
81598
81714
|
/**
|
|
81599
81715
|
* @hidden @internal
|
|
@@ -81698,7 +81814,18 @@ class IgxSplitterComponent {
|
|
|
81698
81814
|
* This method inits panes with properties.
|
|
81699
81815
|
*/
|
|
81700
81816
|
initPanes() {
|
|
81701
|
-
this.panes.forEach(pane =>
|
|
81817
|
+
this.panes.forEach(pane => {
|
|
81818
|
+
var _a, _b, _c, _d;
|
|
81819
|
+
pane.owner = this;
|
|
81820
|
+
if (this.type === SplitterType.Horizontal) {
|
|
81821
|
+
pane.minWidth = (_a = pane.minSize) !== null && _a !== void 0 ? _a : '0';
|
|
81822
|
+
pane.maxWidth = (_b = pane.maxSize) !== null && _b !== void 0 ? _b : '100%';
|
|
81823
|
+
}
|
|
81824
|
+
else {
|
|
81825
|
+
pane.minHeight = (_c = pane.minSize) !== null && _c !== void 0 ? _c : '0';
|
|
81826
|
+
pane.maxHeight = (_d = pane.maxSize) !== null && _d !== void 0 ? _d : '100%';
|
|
81827
|
+
}
|
|
81828
|
+
});
|
|
81702
81829
|
this.assignFlexOrder();
|
|
81703
81830
|
if (this.panes.filter(x => x.collapsed).length > 0) {
|
|
81704
81831
|
// if any panes are collapsed, reset sizes.
|
|
@@ -81712,7 +81839,13 @@ class IgxSplitterComponent {
|
|
|
81712
81839
|
resetPaneSizes() {
|
|
81713
81840
|
if (this.panes) {
|
|
81714
81841
|
// if type is changed runtime, should reset sizes.
|
|
81715
|
-
this.panes.forEach(x =>
|
|
81842
|
+
this.panes.forEach(x => {
|
|
81843
|
+
x.size = 'auto';
|
|
81844
|
+
x.minWidth = '0';
|
|
81845
|
+
x.maxWidth = '100%';
|
|
81846
|
+
x.minHeight = '0';
|
|
81847
|
+
x.maxHeight = '100%';
|
|
81848
|
+
});
|
|
81716
81849
|
}
|
|
81717
81850
|
}
|
|
81718
81851
|
/**
|
|
@@ -86114,6 +86247,19 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
86114
86247
|
*/
|
|
86115
86248
|
this.toolbarExporting = new EventEmitter();
|
|
86116
86249
|
}
|
|
86250
|
+
/**
|
|
86251
|
+
* Gets the sorting expressions generated for the dimensions.
|
|
86252
|
+
*
|
|
86253
|
+
* @example
|
|
86254
|
+
* ```typescript
|
|
86255
|
+
* const expressions = this.grid.dimensionsSortingExpressions;
|
|
86256
|
+
* ```
|
|
86257
|
+
*/
|
|
86258
|
+
get dimensionsSortingExpressions() {
|
|
86259
|
+
const allEnabledDimensions = this.rowDimensions.concat(this.columnDimensions);
|
|
86260
|
+
const dimensionsSortingExpressions = PivotSortUtil.generateDimensionSortingExpressions(allEnabledDimensions);
|
|
86261
|
+
return dimensionsSortingExpressions;
|
|
86262
|
+
}
|
|
86117
86263
|
set pivotConfiguration(value) {
|
|
86118
86264
|
this._pivotConfiguration = value;
|
|
86119
86265
|
if (!this._init) {
|
|
@@ -86173,6 +86319,17 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
86173
86319
|
this.onDensityChanged.emit(densityChangedArgs);
|
|
86174
86320
|
}
|
|
86175
86321
|
}
|
|
86322
|
+
/**
|
|
86323
|
+
* @hidden @internal
|
|
86324
|
+
*/
|
|
86325
|
+
get minColumnWidth() {
|
|
86326
|
+
if (this.superCompactMode) {
|
|
86327
|
+
return MINIMUM_COLUMN_WIDTH_SUPER_COMPACT;
|
|
86328
|
+
}
|
|
86329
|
+
else {
|
|
86330
|
+
return MINIMUM_COLUMN_WIDTH;
|
|
86331
|
+
}
|
|
86332
|
+
}
|
|
86176
86333
|
get pivotKeys() {
|
|
86177
86334
|
return this.pivotConfiguration.pivotKeys || DEFAULT_PIVOT_KEYS;
|
|
86178
86335
|
}
|
|
@@ -87129,9 +87286,8 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
87129
87286
|
dim.childLevel.sortDirection = dimension.sortDirection;
|
|
87130
87287
|
dim = dim.childLevel;
|
|
87131
87288
|
}
|
|
87132
|
-
const dimensionsSortingExpressions = PivotSortUtil.generateDimensionSortingExpressions(this.rowDimensions);
|
|
87133
87289
|
this.pipeTrigger++;
|
|
87134
|
-
this.dimensionsSortingExpressionsChange.emit(dimensionsSortingExpressions);
|
|
87290
|
+
this.dimensionsSortingExpressionsChange.emit(this.dimensionsSortingExpressions);
|
|
87135
87291
|
if (dimensionType === PivotDimensionType.Column) {
|
|
87136
87292
|
this.setupColumns();
|
|
87137
87293
|
}
|
|
@@ -87383,7 +87539,6 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
87383
87539
|
ref.instance.header = value.displayName;
|
|
87384
87540
|
ref.instance.field = value.member;
|
|
87385
87541
|
ref.instance.parent = parent;
|
|
87386
|
-
ref.instance.width = MINIMUM_COLUMN_WIDTH + 'px';
|
|
87387
87542
|
ref.instance.sortable = true;
|
|
87388
87543
|
ref.instance.dataType = value.dataType || this.resolveDataTypes(data[0][value.member]);
|
|
87389
87544
|
ref.instance.formatter = value.formatter;
|
|
@@ -87463,7 +87618,9 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
87463
87618
|
ref.instance.header = parent != null ? key.split(parent.header + this.pivotKeys.columnDimensionSeparator)[1] : key;
|
|
87464
87619
|
ref.instance.field = key;
|
|
87465
87620
|
ref.instance.parent = parent;
|
|
87466
|
-
|
|
87621
|
+
if (value.dimension.width) {
|
|
87622
|
+
ref.instance.width = value.dimension.width;
|
|
87623
|
+
}
|
|
87467
87624
|
const valueDefinition = this.values[0];
|
|
87468
87625
|
ref.instance.dataType = (valueDefinition === null || valueDefinition === void 0 ? void 0 : valueDefinition.dataType) || this.resolveDataTypes(data[0][valueDefinition === null || valueDefinition === void 0 ? void 0 : valueDefinition.member]);
|
|
87469
87626
|
ref.instance.formatter = valueDefinition === null || valueDefinition === void 0 ? void 0 : valueDefinition.formatter;
|
|
@@ -87475,20 +87632,21 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
87475
87632
|
if (dim.width) {
|
|
87476
87633
|
return dim.width;
|
|
87477
87634
|
}
|
|
87478
|
-
return this.
|
|
87635
|
+
return this.minColumnWidth + 'px';
|
|
87479
87636
|
}
|
|
87480
87637
|
getMeasureChildren(colFactory, data, parent, hidden, parentWidth) {
|
|
87481
87638
|
const cols = [];
|
|
87482
87639
|
const count = this.values.length;
|
|
87483
|
-
const
|
|
87484
|
-
this.superCompactMode ? MINIMUM_COLUMN_WIDTH_SUPER_COMPACT : MINIMUM_COLUMN_WIDTH;
|
|
87640
|
+
const childWidth = parseInt(parentWidth, 10) / count;
|
|
87485
87641
|
const isPercent = parentWidth && parentWidth.indexOf('%') !== -1;
|
|
87486
87642
|
this.values.forEach(val => {
|
|
87487
87643
|
const ref = colFactory.create(this.viewRef.injector);
|
|
87488
87644
|
ref.instance.header = val.displayName || val.member;
|
|
87489
87645
|
ref.instance.field = parent.field + this.pivotKeys.columnDimensionSeparator + val.member;
|
|
87490
87646
|
ref.instance.parent = parent;
|
|
87491
|
-
|
|
87647
|
+
if (parentWidth) {
|
|
87648
|
+
ref.instance.width = isPercent ? childWidth + '%' : childWidth + 'px';
|
|
87649
|
+
}
|
|
87492
87650
|
ref.instance.hidden = hidden;
|
|
87493
87651
|
ref.instance.sortable = true;
|
|
87494
87652
|
ref.instance.dataType = val.dataType || this.resolveDataTypes(data[0][val.member]);
|