@sumaris-net/ngx-components 2.4.55 → 2.4.56
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/doc/changelog.md +3 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +7 -4
- package/esm2020/src/app/core/table/table.class.mjs +8 -6
- package/fesm2015/sumaris-net.ngx-components.mjs +13 -8
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +13 -8
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/table.class.d.ts +2 -1
|
@@ -26427,6 +26427,7 @@ class AppTable {
|
|
|
26427
26427
|
this.focusFirstColumn = false;
|
|
26428
26428
|
this.confirmBeforeDelete = false;
|
|
26429
26429
|
this.confirmBeforeCancel = false;
|
|
26430
|
+
this.clearSelectionBeforeOpen = true;
|
|
26430
26431
|
this.undoableDeletion = false;
|
|
26431
26432
|
this.propagateRowError = false;
|
|
26432
26433
|
this.defaultPageSize = DEFAULT_PAGE_SIZE;
|
|
@@ -27275,7 +27276,8 @@ class AppTable {
|
|
|
27275
27276
|
event.preventDefault();
|
|
27276
27277
|
}
|
|
27277
27278
|
this.markAsLoading();
|
|
27278
|
-
this.
|
|
27279
|
+
if (this.clearSelectionBeforeOpen)
|
|
27280
|
+
this.selection.clear();
|
|
27279
27281
|
this.openRow(row.currentData.id, row)
|
|
27280
27282
|
.then(() => this.markAsLoaded())
|
|
27281
27283
|
.catch(() => this.markAsLoaded());
|
|
@@ -27590,9 +27592,7 @@ class AppTable {
|
|
|
27590
27592
|
this.onNewRow.emit(event);
|
|
27591
27593
|
return true;
|
|
27592
27594
|
}
|
|
27593
|
-
return
|
|
27594
|
-
relativeTo: this.route
|
|
27595
|
-
});
|
|
27595
|
+
return this.navController.navigateForward(`${this.router.url}/new`);
|
|
27596
27596
|
});
|
|
27597
27597
|
}
|
|
27598
27598
|
// can be overridden to add more required columns
|
|
@@ -28021,7 +28021,7 @@ class AppTable {
|
|
|
28021
28021
|
}
|
|
28022
28022
|
}
|
|
28023
28023
|
AppTable.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AppTable, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
28024
|
-
AppTable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: AppTable, inputs: { settingsId: "settingsId", debug: "debug", i18nColumnPrefix: "i18nColumnPrefix", i18nColumnSuffix: "i18nColumnSuffix", autoLoad: "autoLoad", readOnly: "readOnly", inlineEdition: "inlineEdition", focusFirstColumn: "focusFirstColumn", confirmBeforeDelete: "confirmBeforeDelete", confirmBeforeCancel: "confirmBeforeCancel", undoableDeletion: "undoableDeletion", saveBeforeDelete: "saveBeforeDelete", keepEditedRowOnSave: "keepEditedRowOnSave", saveBeforeSort: "saveBeforeSort", saveBeforeFilter: "saveBeforeFilter", propagateRowError: "propagateRowError", defaultSortBy: "defaultSortBy", defaultSortDirection: "defaultSortDirection", defaultPageSize: "defaultPageSize", defaultPageSizeOptions: "defaultPageSizeOptions", focusColumn: "focusColumn", dataSource: "dataSource", filter: "filter", disabled: "disabled", paginator: "paginator" }, outputs: { onRefresh: "onRefresh", onOpenRow: "onOpenRow", onNewRow: "onNewRow", onStartEditingRow: "onStartEditingRow", onConfirmEditCreateRow: "onConfirmEditCreateRow", onCancelOrDeleteRow: "onCancelOrDeleteRow", onBeforeDeleteRows: "onBeforeDeleteRows", onBeforeCancelRows: "onBeforeCancelRows", onBeforeSave: "onBeforeSave", onAfterDeletedRows: "onAfterDeletedRows", onSort: "onSort", onDirty: "onDirty", onError: "onError" }, viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true }, { propertyName: "childPaginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], ngImport: i0 });
|
|
28024
|
+
AppTable.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: AppTable, inputs: { settingsId: "settingsId", debug: "debug", i18nColumnPrefix: "i18nColumnPrefix", i18nColumnSuffix: "i18nColumnSuffix", autoLoad: "autoLoad", readOnly: "readOnly", inlineEdition: "inlineEdition", focusFirstColumn: "focusFirstColumn", confirmBeforeDelete: "confirmBeforeDelete", confirmBeforeCancel: "confirmBeforeCancel", clearSelectionBeforeOpen: "clearSelectionBeforeOpen", undoableDeletion: "undoableDeletion", saveBeforeDelete: "saveBeforeDelete", keepEditedRowOnSave: "keepEditedRowOnSave", saveBeforeSort: "saveBeforeSort", saveBeforeFilter: "saveBeforeFilter", propagateRowError: "propagateRowError", defaultSortBy: "defaultSortBy", defaultSortDirection: "defaultSortDirection", defaultPageSize: "defaultPageSize", defaultPageSizeOptions: "defaultPageSizeOptions", focusColumn: "focusColumn", dataSource: "dataSource", filter: "filter", disabled: "disabled", paginator: "paginator" }, outputs: { onRefresh: "onRefresh", onOpenRow: "onOpenRow", onNewRow: "onNewRow", onStartEditingRow: "onStartEditingRow", onConfirmEditCreateRow: "onConfirmEditCreateRow", onCancelOrDeleteRow: "onCancelOrDeleteRow", onBeforeDeleteRows: "onBeforeDeleteRows", onBeforeCancelRows: "onBeforeCancelRows", onBeforeSave: "onBeforeSave", onAfterDeletedRows: "onAfterDeletedRows", onSort: "onSort", onDirty: "onDirty", onError: "onError" }, viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true }, { propertyName: "childPaginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], ngImport: i0 });
|
|
28025
28025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: AppTable, decorators: [{
|
|
28026
28026
|
type: Directive
|
|
28027
28027
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: undefined }, { type: EntitiesTableDataSource }, { type: undefined }]; }, propDecorators: { settingsId: [{
|
|
@@ -28044,6 +28044,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
28044
28044
|
type: Input
|
|
28045
28045
|
}], confirmBeforeCancel: [{
|
|
28046
28046
|
type: Input
|
|
28047
|
+
}], clearSelectionBeforeOpen: [{
|
|
28048
|
+
type: Input
|
|
28047
28049
|
}], undoableDeletion: [{
|
|
28048
28050
|
type: Input
|
|
28049
28051
|
}], saveBeforeDelete: [{
|
|
@@ -29441,7 +29443,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29441
29443
|
console.debug('[entity-editor] Updating route using queryParams: ', queryParams);
|
|
29442
29444
|
return yield this.router.navigate(['.'], {
|
|
29443
29445
|
relativeTo: this.route,
|
|
29444
|
-
queryParams: this.queryParams
|
|
29446
|
+
queryParams: this.queryParams,
|
|
29447
|
+
state: { animated: false }
|
|
29445
29448
|
});
|
|
29446
29449
|
}
|
|
29447
29450
|
}
|
|
@@ -29451,7 +29454,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29451
29454
|
const res = yield this.router.navigate(['.'], {
|
|
29452
29455
|
relativeTo: this.route,
|
|
29453
29456
|
replaceUrl: true,
|
|
29454
|
-
queryParams: Object.assign(Object.assign({}, this.queryParams), { [this.pathIdAttribute]: futureId })
|
|
29457
|
+
queryParams: Object.assign(Object.assign({}, this.queryParams), { [this.pathIdAttribute]: futureId }),
|
|
29458
|
+
state: { animated: false }
|
|
29455
29459
|
});
|
|
29456
29460
|
if (!res)
|
|
29457
29461
|
return false;
|
|
@@ -29463,7 +29467,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
29463
29467
|
console.debug('[entity-editor] Updating route to: ' + path);
|
|
29464
29468
|
return yield this.router.navigate(commands, {
|
|
29465
29469
|
replaceUrl: true,
|
|
29466
|
-
queryParams: this.queryParams
|
|
29470
|
+
queryParams: this.queryParams,
|
|
29471
|
+
state: { animated: false }
|
|
29467
29472
|
});
|
|
29468
29473
|
}
|
|
29469
29474
|
return Promise.reject('Missing page URL');
|