@trudb/tru-common-lib 0.2.218 → 0.2.219
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.
|
@@ -1982,6 +1982,7 @@ class TruDataContext {
|
|
|
1982
1982
|
entityAccessor;
|
|
1983
1983
|
uiNotification;
|
|
1984
1984
|
_propertyChanged$ = new Subject();
|
|
1985
|
+
_entityAdded$ = new Subject();
|
|
1985
1986
|
_dataChanged$ = new Subject();
|
|
1986
1987
|
_breezeContext;
|
|
1987
1988
|
_pendingDeleteEntities = [];
|
|
@@ -2003,6 +2004,9 @@ class TruDataContext {
|
|
|
2003
2004
|
this.propertyChanged(changeArgs);
|
|
2004
2005
|
this.entityChangedHandler(changeArgs);
|
|
2005
2006
|
}
|
|
2007
|
+
else if (changeArgs.entityAction !== EntityAction.Attach) {
|
|
2008
|
+
this.entityAdded(changeArgs);
|
|
2009
|
+
}
|
|
2006
2010
|
});
|
|
2007
2011
|
}
|
|
2008
2012
|
onPropertyChanged() {
|
|
@@ -2011,6 +2015,12 @@ class TruDataContext {
|
|
|
2011
2015
|
propertyChanged(changeArgs) {
|
|
2012
2016
|
this._propertyChanged$.next(changeArgs);
|
|
2013
2017
|
}
|
|
2018
|
+
onEntityAdded() {
|
|
2019
|
+
return this._entityAdded$;
|
|
2020
|
+
}
|
|
2021
|
+
entityAdded(changeArgs) {
|
|
2022
|
+
this._propertyChanged$.next(changeArgs);
|
|
2023
|
+
}
|
|
2014
2024
|
onDataChanged() {
|
|
2015
2025
|
return this._dataChanged$;
|
|
2016
2026
|
}
|
|
@@ -7779,6 +7789,9 @@ class TruDataGrid {
|
|
|
7779
7789
|
this.api.refreshCells({ force: true });
|
|
7780
7790
|
}
|
|
7781
7791
|
}));
|
|
7792
|
+
this.subs.push(this.dataContext.onEntityAdded().subscribe((changeArgs) => {
|
|
7793
|
+
let test = changeArgs;
|
|
7794
|
+
}));
|
|
7782
7795
|
this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
|
|
7783
7796
|
if (this.config.view.active && this.config.view.window.active) {
|
|
7784
7797
|
let keySequence = this.util.getKeySequence(event);
|