igniteui-angular 15.1.23 → 15.1.25
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/buttonGroup/buttonGroup.component.mjs +11 -6
- package/esm2020/lib/grids/cell.component.mjs +2 -2
- package/esm2020/lib/grids/columns/column.component.mjs +5 -4
- package/esm2020/lib/grids/common/crud.service.mjs +2 -2
- package/esm2020/lib/grids/grid/grid.component.mjs +4 -4
- package/esm2020/lib/grids/grid-base.directive.mjs +3 -3
- package/esm2020/lib/grids/grid-public-cell.mjs +3 -8
- package/esm2020/lib/grids/grid-public-row.mjs +3 -3
- package/esm2020/lib/grids/hierarchical-grid/hierarchical-grid.component.mjs +4 -4
- package/esm2020/lib/grids/pivot-grid/pivot-grid.component.mjs +2 -1
- package/esm2020/lib/grids/tree-grid/tree-grid.component.mjs +4 -4
- package/fesm2015/igniteui-angular.mjs +32 -30
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +32 -30
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/buttonGroup/buttonGroup.component.d.ts +2 -2
- package/lib/grids/common/crud.service.d.ts +2 -2
- package/lib/grids/grid-base.directive.d.ts +4 -4
- package/lib/grids/grid-public-cell.d.ts +1 -1
- package/lib/grids/pivot-grid/pivot-grid.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25330,7 +25330,7 @@ class IgxGridCRUDService extends IgxRowAddCrudState {
|
|
|
25330
25330
|
});
|
|
25331
25331
|
}
|
|
25332
25332
|
/**
|
|
25333
|
-
* Finishes the row transactions on the current row.
|
|
25333
|
+
* Finishes the row transactions on the current row and returns whether the grid editing was canceled.
|
|
25334
25334
|
*
|
|
25335
25335
|
* @remarks
|
|
25336
25336
|
* If `commit === true`, passes them from the pending state to the data (or transaction service)
|
|
@@ -29826,20 +29826,25 @@ class IgxButtonGroupComponent extends DisplayDensityBase {
|
|
|
29826
29826
|
*/
|
|
29827
29827
|
_clickHandler(index) {
|
|
29828
29828
|
const button = this.buttons[index];
|
|
29829
|
+
const args = { cancel: false, button, index };
|
|
29829
29830
|
if (!this.multiSelection) {
|
|
29830
29831
|
this.buttons.forEach((b, i) => {
|
|
29831
29832
|
if (i !== index && this.selectedIndexes.indexOf(i) !== -1) {
|
|
29832
|
-
this.deselected.emit({ button: b, index: i });
|
|
29833
|
+
this.deselected.emit({ cancel: false, button: b, index: i });
|
|
29833
29834
|
}
|
|
29834
29835
|
});
|
|
29835
29836
|
}
|
|
29836
29837
|
if (this.selectedIndexes.indexOf(index) === -1) {
|
|
29837
|
-
this.
|
|
29838
|
-
|
|
29838
|
+
this.selected.emit(args);
|
|
29839
|
+
if (!args.cancel) {
|
|
29840
|
+
this.selectButton(index);
|
|
29841
|
+
}
|
|
29839
29842
|
}
|
|
29840
29843
|
else {
|
|
29841
|
-
this.
|
|
29842
|
-
|
|
29844
|
+
this.deselected.emit(args);
|
|
29845
|
+
if (!args.cancel) {
|
|
29846
|
+
this.deselectButton(index);
|
|
29847
|
+
}
|
|
29843
29848
|
}
|
|
29844
29849
|
}
|
|
29845
29850
|
}
|
|
@@ -50814,12 +50819,7 @@ class IgxGridCell {
|
|
|
50814
50819
|
this._row = row;
|
|
50815
50820
|
this._rowIndex = row.index;
|
|
50816
50821
|
}
|
|
50817
|
-
|
|
50818
|
-
this._columnField = column;
|
|
50819
|
-
}
|
|
50820
|
-
else {
|
|
50821
|
-
this._column = column;
|
|
50822
|
-
}
|
|
50822
|
+
this._column = column;
|
|
50823
50823
|
}
|
|
50824
50824
|
/**
|
|
50825
50825
|
* Returns the row containing the cell.
|
|
@@ -50841,7 +50841,7 @@ class IgxGridCell {
|
|
|
50841
50841
|
* @memberof IgxGridCell
|
|
50842
50842
|
*/
|
|
50843
50843
|
get column() {
|
|
50844
|
-
return this._column
|
|
50844
|
+
return this._column;
|
|
50845
50845
|
}
|
|
50846
50846
|
/**
|
|
50847
50847
|
* Gets the current edit value while a cell is in edit mode.
|
|
@@ -51749,7 +51749,7 @@ class IgxColumnComponent {
|
|
|
51749
51749
|
.map((rec, index) => {
|
|
51750
51750
|
if (!this.grid.isGroupByRecord(rec) && !this.grid.isSummaryRow(rec)) {
|
|
51751
51751
|
this.grid.pagingMode === 1 && this.grid.page !== 0 ? index = index + this.grid.perPage * this.grid.page : index = this.grid.dataRowList.first.index + index;
|
|
51752
|
-
const cell = new IgxGridCell(this.grid, index, this
|
|
51752
|
+
const cell = new IgxGridCell(this.grid, index, this);
|
|
51753
51753
|
return cell;
|
|
51754
51754
|
}
|
|
51755
51755
|
}).filter(cell => cell);
|
|
@@ -52637,7 +52637,8 @@ class IgxColumnComponent {
|
|
|
52637
52637
|
}
|
|
52638
52638
|
}
|
|
52639
52639
|
if (hasIndex) {
|
|
52640
|
-
grid.
|
|
52640
|
+
index === grid._pinnedColumns.length - 1 ?
|
|
52641
|
+
grid._moveColumns(this, targetColumn, DropPosition.AfterDropTarget) : grid._moveColumns(this, targetColumn, DropPosition.BeforeDropTarget);
|
|
52641
52642
|
}
|
|
52642
52643
|
if (this.columnGroup) {
|
|
52643
52644
|
this.allChildren.forEach(child => child.pin());
|
|
@@ -52966,7 +52967,7 @@ class IgxColumnComponent {
|
|
|
52966
52967
|
const isPercentageWidth = colWidth && typeof colWidth === 'string' && colWidth.indexOf('%') !== -1;
|
|
52967
52968
|
const isAutoWidth = colWidth && typeof colWidth === 'string' && colWidth === 'fit-content';
|
|
52968
52969
|
if (isPercentageWidth) {
|
|
52969
|
-
this._calcWidth = parseFloat(colWidth) / 100 * this.grid.calcWidth;
|
|
52970
|
+
this._calcWidth = Math.floor(parseFloat(colWidth) / 100 * this.grid.calcWidth);
|
|
52970
52971
|
}
|
|
52971
52972
|
else if (!colWidth || isAutoWidth && !this.autoSize) {
|
|
52972
52973
|
// no width
|
|
@@ -54481,7 +54482,7 @@ class BaseRow {
|
|
|
54481
54482
|
get cells() {
|
|
54482
54483
|
const res = [];
|
|
54483
54484
|
this.grid.columns.forEach(col => {
|
|
54484
|
-
const cell = new IgxGridCell(this.grid, this.index, col
|
|
54485
|
+
const cell = new IgxGridCell(this.grid, this.index, col);
|
|
54485
54486
|
res.push(cell);
|
|
54486
54487
|
});
|
|
54487
54488
|
return res;
|
|
@@ -54791,7 +54792,7 @@ class IgxHierarchicalGridRow extends BaseRow {
|
|
|
54791
54792
|
get cells() {
|
|
54792
54793
|
const res = [];
|
|
54793
54794
|
this.grid.columns.forEach(col => {
|
|
54794
|
-
const cell = new IgxGridCell(this.grid, this.index, col
|
|
54795
|
+
const cell = new IgxGridCell(this.grid, this.index, col);
|
|
54795
54796
|
res.push(cell);
|
|
54796
54797
|
});
|
|
54797
54798
|
return res;
|
|
@@ -67311,7 +67312,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
67311
67312
|
return this.unpinnedRecords.findIndex(x => x[this.primaryKey] === id);
|
|
67312
67313
|
}
|
|
67313
67314
|
/**
|
|
67314
|
-
* Finishes the row transactions on the current row.
|
|
67315
|
+
* Finishes the row transactions on the current row and returns whether the grid editing was canceled.
|
|
67315
67316
|
*
|
|
67316
67317
|
* @remarks
|
|
67317
67318
|
* If `commit === true`, passes them from the pending state to the data (or transaction service)
|
|
@@ -67324,7 +67325,7 @@ class IgxGridBaseDirective extends DisplayDensityBase {
|
|
|
67324
67325
|
// TODO: Facade for crud service refactoring. To be removed
|
|
67325
67326
|
// TODO: do not remove this, as it is used in rowEditTemplate, but mark is as internal and hidden
|
|
67326
67327
|
endEdit(commit = true, event) {
|
|
67327
|
-
this.crudService.endEdit(commit, event);
|
|
67328
|
+
return this.crudService.endEdit(commit, event);
|
|
67328
67329
|
}
|
|
67329
67330
|
/**
|
|
67330
67331
|
* Enters add mode by spawning the UI under the specified row by rowID.
|
|
@@ -71003,7 +71004,7 @@ class IgxGridCellComponent {
|
|
|
71003
71004
|
}
|
|
71004
71005
|
getCellType(useRow) {
|
|
71005
71006
|
const rowID = useRow ? this.grid.createRow(this.intRow.index, this.intRow.data) : this.intRow.index;
|
|
71006
|
-
return new IgxGridCell(this.grid, rowID, this.column
|
|
71007
|
+
return new IgxGridCell(this.grid, rowID, this.column);
|
|
71007
71008
|
}
|
|
71008
71009
|
}
|
|
71009
71010
|
IgxGridCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: IgxGridCellComponent, deps: [{ token: IgxGridSelectionService }, { token: IGX_GRID_BASE }, { token: IgxOverlayService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: HammerGesturesManager }, { token: PlatformUtil }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -71942,7 +71943,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
|
|
|
71942
71943
|
const row = this.getRowByIndex(rowIndex);
|
|
71943
71944
|
const column = this._columns.find((col) => col.visibleIndex === index);
|
|
71944
71945
|
if (row && row instanceof IgxGridRow && !((_a = row.data) === null || _a === void 0 ? void 0 : _a.detailsData) && column) {
|
|
71945
|
-
return new IgxGridCell(this, rowIndex, column
|
|
71946
|
+
return new IgxGridCell(this, rowIndex, column);
|
|
71946
71947
|
}
|
|
71947
71948
|
}
|
|
71948
71949
|
/**
|
|
@@ -72536,7 +72537,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
|
|
|
72536
72537
|
if (this.pagingMode === 1 && this.page !== 0) {
|
|
72537
72538
|
row.index = rowIndex + this.perPage * this.page;
|
|
72538
72539
|
}
|
|
72539
|
-
return new IgxGridCell(this, row.index,
|
|
72540
|
+
return new IgxGridCell(this, row.index, column);
|
|
72540
72541
|
}
|
|
72541
72542
|
}
|
|
72542
72543
|
/**
|
|
@@ -72555,7 +72556,7 @@ class IgxGridComponent extends IgxGridBaseDirective {
|
|
|
72555
72556
|
const row = this.getRowByKey(rowSelector);
|
|
72556
72557
|
const column = this._columns.find((col) => col.field === columnField);
|
|
72557
72558
|
if (row && column) {
|
|
72558
|
-
return new IgxGridCell(this, row.index,
|
|
72559
|
+
return new IgxGridCell(this, row.index, column);
|
|
72559
72560
|
}
|
|
72560
72561
|
}
|
|
72561
72562
|
pinRow(rowID, index) {
|
|
@@ -75225,6 +75226,7 @@ class IgxPivotGridComponent extends IgxGridBaseDirective {
|
|
|
75225
75226
|
* @hidden @internal
|
|
75226
75227
|
*/
|
|
75227
75228
|
endEdit(_commit = true, _event) {
|
|
75229
|
+
return;
|
|
75228
75230
|
}
|
|
75229
75231
|
/**
|
|
75230
75232
|
* @hidden @internal
|
|
@@ -80786,7 +80788,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
|
|
|
80786
80788
|
const row = this.getRowByIndex(rowIndex);
|
|
80787
80789
|
const column = this.columns.find((col) => col.visibleIndex === index);
|
|
80788
80790
|
if (row && row instanceof IgxTreeGridRow && column) {
|
|
80789
|
-
return new IgxGridCell(this, rowIndex, column
|
|
80791
|
+
return new IgxGridCell(this, rowIndex, column);
|
|
80790
80792
|
}
|
|
80791
80793
|
}
|
|
80792
80794
|
/**
|
|
@@ -81143,7 +81145,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
|
|
|
81143
81145
|
const row = this.getRowByIndex(rowIndex);
|
|
81144
81146
|
const column = this.columns.find((col) => col.field === columnField);
|
|
81145
81147
|
if (row && row instanceof IgxTreeGridRow && column) {
|
|
81146
|
-
return new IgxGridCell(this, rowIndex,
|
|
81148
|
+
return new IgxGridCell(this, rowIndex, column);
|
|
81147
81149
|
}
|
|
81148
81150
|
}
|
|
81149
81151
|
/**
|
|
@@ -81162,7 +81164,7 @@ class IgxTreeGridComponent extends IgxGridBaseDirective {
|
|
|
81162
81164
|
const row = this.getRowByKey(rowSelector);
|
|
81163
81165
|
const column = this.columns.find((col) => col.field === columnField);
|
|
81164
81166
|
if (row && column) {
|
|
81165
|
-
return new IgxGridCell(this, row.index,
|
|
81167
|
+
return new IgxGridCell(this, row.index, column);
|
|
81166
81168
|
}
|
|
81167
81169
|
}
|
|
81168
81170
|
pinRow(rowID, index) {
|
|
@@ -83366,7 +83368,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
83366
83368
|
const row = this.getRowByIndex(rowIndex);
|
|
83367
83369
|
const column = this.columns.find((col) => col.visibleIndex === index);
|
|
83368
83370
|
if (row && row instanceof IgxHierarchicalGridRow && column) {
|
|
83369
|
-
return new IgxGridCell(this, rowIndex, column
|
|
83371
|
+
return new IgxGridCell(this, rowIndex, column);
|
|
83370
83372
|
}
|
|
83371
83373
|
}
|
|
83372
83374
|
/**
|
|
@@ -83590,7 +83592,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
83590
83592
|
const row = this.getRowByIndex(rowIndex);
|
|
83591
83593
|
const column = this.columns.find((col) => col.field === columnField);
|
|
83592
83594
|
if (row && row instanceof IgxHierarchicalGridRow && column) {
|
|
83593
|
-
return new IgxGridCell(this, rowIndex,
|
|
83595
|
+
return new IgxGridCell(this, rowIndex, column);
|
|
83594
83596
|
}
|
|
83595
83597
|
}
|
|
83596
83598
|
/**
|
|
@@ -83609,7 +83611,7 @@ class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirective {
|
|
|
83609
83611
|
const row = this.getRowByKey(rowSelector);
|
|
83610
83612
|
const column = this.columns.find((col) => col.field === columnField);
|
|
83611
83613
|
if (row && column) {
|
|
83612
|
-
return new IgxGridCell(this, row.index,
|
|
83614
|
+
return new IgxGridCell(this, row.index, column);
|
|
83613
83615
|
}
|
|
83614
83616
|
}
|
|
83615
83617
|
pinRow(rowID, index) {
|