@trudb/tru-common-lib 0.2.230 → 0.2.233
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 +8 -7
- 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) => {
|
|
@@ -4001,11 +4001,12 @@ class TruDetailViewBase {
|
|
|
4001
4001
|
newEntity = this.dataContext.entityAccess().add(this.entityType);
|
|
4002
4002
|
if (this.view.parentTableRefName)
|
|
4003
4003
|
newEntity[this.view.parentTableRefName] = this.entity[this.view.parentTableRefName];
|
|
4004
|
-
|
|
4005
|
-
|
|
4004
|
+
if (!dataNotification) {
|
|
4005
|
+
this.entities.unshift(newEntity);
|
|
4006
4006
|
this.setNavigationIndex(0);
|
|
4007
|
+
}
|
|
4007
4008
|
else {
|
|
4008
|
-
this.
|
|
4009
|
+
this.entities.push(newEntity);
|
|
4009
4010
|
}
|
|
4010
4011
|
};
|
|
4011
4012
|
onCloneEntity = () => {
|
|
@@ -4158,8 +4159,8 @@ class TruSearchViewControlEventHandler {
|
|
|
4158
4159
|
onUpdateDependants() {
|
|
4159
4160
|
return this.updateDependants$;
|
|
4160
4161
|
}
|
|
4161
|
-
updateDependants = (table, ancestorRef, value) => {
|
|
4162
|
-
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef, value: value });
|
|
4162
|
+
updateDependants = (table, ancestorRef, entity, value) => {
|
|
4163
|
+
this.updateDependants$.next({ table: table, ancestorRef: ancestorRef, entity: entity, value: value });
|
|
4163
4164
|
};
|
|
4164
4165
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruSearchViewControlEventHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4165
4166
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: TruSearchViewControlEventHandler });
|