@colijnit/corecomponents_v12 261.20.4 → 261.20.5
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.
|
@@ -12430,6 +12430,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12430
12430
|
rowDisabledFn;
|
|
12431
12431
|
showColumnSort = false;
|
|
12432
12432
|
showRowButtons = false;
|
|
12433
|
+
resetPageOnDataChange = true;
|
|
12433
12434
|
/**
|
|
12434
12435
|
* Promise function, if provided should return boolean
|
|
12435
12436
|
*/
|
|
@@ -12479,7 +12480,9 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12479
12480
|
this.changeDetection = changeDetection;
|
|
12480
12481
|
this._formMaster = _formMaster;
|
|
12481
12482
|
this.dataChanged.subscribe(() => {
|
|
12482
|
-
this.
|
|
12483
|
+
if (this.resetPageOnDataChange) {
|
|
12484
|
+
this.currentPage = 1;
|
|
12485
|
+
}
|
|
12483
12486
|
});
|
|
12484
12487
|
}
|
|
12485
12488
|
handleClickOutsideRow() {
|
|
@@ -12961,7 +12964,7 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12961
12964
|
this.rowToEdit = undefined;
|
|
12962
12965
|
}
|
|
12963
12966
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridComponent, deps: [{ token: IconCacheService }, { token: i0.ChangeDetectorRef }, { token: FormMasterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12964
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SimpleGridComponent, isStandalone: false, selector: "co-simple-grid", inputs: { showAdd: "showAdd", showDelete: "showDelete", deselectAllowed: "deselectAllowed", editOnCellClick: "editOnCellClick", rightToolbar: "rightToolbar", showGridSettings: "showGridSettings", rowsPerPage: "rowsPerPage", rowDisabledFn: "rowDisabledFn", showColumnSort: "showColumnSort", showRowButtons: "showRowButtons", canRowBeEdittedFn: "canRowBeEdittedFn" }, host: { listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class.co-simple-grid": "this.showClass" } }, providers: [FormMasterService], viewQueries: [{ propertyName: "headerCells", predicate: ["headerCell"], descendants: true }, { propertyName: "rowElements", predicate: ["rowElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
12967
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: SimpleGridComponent, isStandalone: false, selector: "co-simple-grid", inputs: { showAdd: "showAdd", showDelete: "showDelete", deselectAllowed: "deselectAllowed", editOnCellClick: "editOnCellClick", rightToolbar: "rightToolbar", showGridSettings: "showGridSettings", rowsPerPage: "rowsPerPage", rowDisabledFn: "rowDisabledFn", showColumnSort: "showColumnSort", showRowButtons: "showRowButtons", resetPageOnDataChange: "resetPageOnDataChange", canRowBeEdittedFn: "canRowBeEdittedFn" }, host: { listeners: { "keydown": "handleKeyDown($event)" }, properties: { "class.co-simple-grid": "this.showClass" } }, providers: [FormMasterService], viewQueries: [{ propertyName: "headerCells", predicate: ["headerCell"], descendants: true }, { propertyName: "rowElements", predicate: ["rowElement"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
12965
12968
|
@if (showToolbar) {
|
|
12966
12969
|
<co-grid-toolbar
|
|
12967
12970
|
[class.right]="rightToolbar"
|
|
@@ -13399,6 +13402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
13399
13402
|
type: Input
|
|
13400
13403
|
}], showRowButtons: [{
|
|
13401
13404
|
type: Input
|
|
13405
|
+
}], resetPageOnDataChange: [{
|
|
13406
|
+
type: Input
|
|
13402
13407
|
}], canRowBeEdittedFn: [{
|
|
13403
13408
|
type: Input
|
|
13404
13409
|
}], showClass: [{
|