@trudb/tru-common-lib 0.2.229 → 0.2.232
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/fesm2022/trudb-tru-common-lib.mjs +9 -5
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/base-views/search/services/tru-search-view-control-event-handler.d.ts +1 -1
- package/lib/interfaces/tru-ancestor.d.ts +1 -0
- package/lib/services/tru-data-context.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2193,8 +2193,8 @@ class TruDataContext {
|
|
|
2193
2193
|
onUpdateDependants() {
|
|
2194
2194
|
return this.updateDependants$;
|
|
2195
2195
|
}
|
|
2196
|
-
updateDependants = (table, ancestorRef) => {
|
|
2197
|
-
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef });
|
|
2196
|
+
updateDependants = (table, ancestorRef, entity) => {
|
|
2197
|
+
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef, entity: entity });
|
|
2198
2198
|
};
|
|
2199
2199
|
save = (entities = null, deleteOperation = false) => {
|
|
2200
2200
|
return new Promise((resolve, reject) => {
|
|
@@ -4003,7 +4003,10 @@ class TruDetailViewBase {
|
|
|
4003
4003
|
newEntity[this.view.parentTableRefName] = this.entity[this.view.parentTableRefName];
|
|
4004
4004
|
this.entities.unshift(newEntity);
|
|
4005
4005
|
if (!dataNotification)
|
|
4006
|
-
this.
|
|
4006
|
+
this.setNavigationIndex(0);
|
|
4007
|
+
else {
|
|
4008
|
+
this.setNavigationIndex(this.navigationIndex + 1);
|
|
4009
|
+
}
|
|
4007
4010
|
};
|
|
4008
4011
|
onCloneEntity = () => {
|
|
4009
4012
|
let windowEventArgs = this.desktopManager.addModalWindow(this.tableName, this.tableName, this.tableName, 'TruCloneView', this.entities, this.navigationIndex, this.dataContext, false, false, false);
|
|
@@ -4155,8 +4158,8 @@ class TruSearchViewControlEventHandler {
|
|
|
4155
4158
|
onUpdateDependants() {
|
|
4156
4159
|
return this.updateDependants$;
|
|
4157
4160
|
}
|
|
4158
|
-
updateDependants = (table, ancestorRef, value) => {
|
|
4159
|
-
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef, value: value });
|
|
4161
|
+
updateDependants = (table, ancestorRef, entity, value) => {
|
|
4162
|
+
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef, entity: entity, value: value });
|
|
4160
4163
|
};
|
|
4161
4164
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruSearchViewControlEventHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4162
4165
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruSearchViewControlEventHandler });
|
|
@@ -7806,6 +7809,7 @@ class TruDataGrid {
|
|
|
7806
7809
|
});
|
|
7807
7810
|
if (!entityAlreadyInGrid) {
|
|
7808
7811
|
rowNodesToAdd.push(this.enhanceRowDataForEntity(entity));
|
|
7812
|
+
this.rowData.unshift(...rowNodesToAdd);
|
|
7809
7813
|
this.api.applyTransaction({ add: rowNodesToAdd, addIndex: 0 });
|
|
7810
7814
|
}
|
|
7811
7815
|
}
|