@trudb/tru-common-lib 0.0.513 → 0.0.515
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/esm2020/lib/classes/tru-data-change-parser.mjs +2 -1
- package/esm2020/lib/services/tru-data-context.mjs +9 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/trudb-tru-common-lib.mjs +17 -9
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +17 -9
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/services/tru-data-context.d.ts +5 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, Input, Injectable, Component, Inject, HostListener, NgModule, EventEmitter, ViewEncapsulation, Output, APP_INITIALIZER, InjectionToken } from '@angular/core';
|
|
3
3
|
import { EntityAspect, MetadataStore, EntityManager, DataService, EntityQuery, Predicate, FetchStrategy, EntityState, BinaryPredicate, AndOrPredicate, breeze } from 'breeze-client';
|
|
4
|
-
import { BehaviorSubject, defer, from, of,
|
|
4
|
+
import { BehaviorSubject, defer, from, of, Subject, Observable, skip, forkJoin, throwError } from 'rxjs';
|
|
5
5
|
import * as _ from 'underscore';
|
|
6
6
|
import * as i1$2 from '@angular/common/http';
|
|
7
7
|
import { HttpClientModule, HttpClient, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
@@ -852,6 +852,7 @@ class TruDataContext {
|
|
|
852
852
|
this.appEnvironment = appEnvironment;
|
|
853
853
|
this.entityAccessor = entityAccessor;
|
|
854
854
|
this.uiNotification = uiNotification;
|
|
855
|
+
this._dataChanged$ = new Subject();
|
|
855
856
|
this._pendingDeleteEntities = [];
|
|
856
857
|
this._pendingCascadeDeleteEntities = [];
|
|
857
858
|
this.validationChangeDetection = new Observable((observer) => {
|
|
@@ -1044,6 +1045,12 @@ class TruDataContext {
|
|
|
1044
1045
|
this._breezeContext = this.breezeContextFactory.createContext();
|
|
1045
1046
|
this.entityAccessor.context = this;
|
|
1046
1047
|
}
|
|
1048
|
+
onDataChanged() {
|
|
1049
|
+
return this._dataChanged$;
|
|
1050
|
+
}
|
|
1051
|
+
dataChanged(change) {
|
|
1052
|
+
this._dataChanged$.next(change);
|
|
1053
|
+
}
|
|
1047
1054
|
get breezeContext() {
|
|
1048
1055
|
return this._breezeContext;
|
|
1049
1056
|
}
|
|
@@ -1662,6 +1669,13 @@ class TruContextFilterChoice {
|
|
|
1662
1669
|
}
|
|
1663
1670
|
}
|
|
1664
1671
|
|
|
1672
|
+
class TruDataChange {
|
|
1673
|
+
constructor() {
|
|
1674
|
+
this.dataChanges = [];
|
|
1675
|
+
this.reload = false;
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1665
1679
|
class TruFormulaEval {
|
|
1666
1680
|
static isString(s) {
|
|
1667
1681
|
return typeof s === 'string';
|
|
@@ -2045,13 +2059,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
2045
2059
|
type: Injectable
|
|
2046
2060
|
}], ctorParameters: function () { return []; } });
|
|
2047
2061
|
|
|
2048
|
-
class TruDataChange {
|
|
2049
|
-
constructor() {
|
|
2050
|
-
this.dataChanges = [];
|
|
2051
|
-
this.reload = false;
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
|
|
2055
2062
|
class TruDataChangeParser {
|
|
2056
2063
|
onDataChanged() {
|
|
2057
2064
|
return this.dataChanged$;
|
|
@@ -2308,6 +2315,7 @@ class TruDataChangeParser {
|
|
|
2308
2315
|
dataChangeArgs.dataChanges = payload;
|
|
2309
2316
|
dataChangeArgs.reload = reloadResults;
|
|
2310
2317
|
this.dataChanged(dataChangeArgs);
|
|
2318
|
+
this.dataContext.dataChanged(dataChangeArgs);
|
|
2311
2319
|
};
|
|
2312
2320
|
this.dataContext = dataContext;
|
|
2313
2321
|
this.globalDataContext = globalDataContext;
|
|
@@ -6284,5 +6292,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
|
|
|
6284
6292
|
* Generated bundle index. Do not edit.
|
|
6285
6293
|
*/
|
|
6286
6294
|
|
|
6287
|
-
export { DetailViewModule, TruAppEnvironment, TruAuth, TruAuthInterceptor, TruBreezeContext, TruBreezeContextFactory, TruBreezeMetadataProvider, TruBreezeValidator, TruBreezeValidatorModule, TruChoice, TruColumn, TruColumnModule, TruCommonModule, TruComponentConfigBase, TruComponentLookup, TruConfirmDialog, TruConfirmDialogConfig, TruConfirmDialogModule, TruConnectionHub, TruContextFilter, TruContextFilterChoice, TruContextFilters, TruControlComponentConfigBase, TruDataContext, TruDataGrid, TruDataGridModule, TruDataGridTypes, TruDesktop, TruDesktopManager, TruDesktopModule, TruDesktopViewConfig, TruDetailViewBase, TruEditControlBase, TruEditControlConfigBase, TruEditParentControlConfigBase, TruEditPkeyControlConfigBase, TruEntityAccessor, TruEntityBase, TruExportDialog, TruExportDialogConfig, TruExportDialogModule, TruForm, TruFormModule, TruFormulaEval, TruGroupBox, TruGroupBoxModule, TruIconModule, TruLogin, TruLoginModule, TruModelPropertyLookup, TruPredicate, TruPredicateMap, TruPropertyConfigBase, TruPropertyConfigCloudFile, TruPropertyConfigDate, TruPropertyConfigDecimal, TruPropertyConfigFile, TruPropertyConfigForeignKey, TruPropertyConfigInteger, TruPropertyConfigPassword, TruPropertyConfigPercentage, TruPropertyConfigScientific, TruPropertyConfigText, TruPropertyConfigTextChoices, TruPropertyConfigUsaAddress, TruPropertyConfigZipCode, TruQueryPredicateManager, TruRow, TruRowModule, TruSearchConfigBase, TruSearchControlBase, TruSearchControlConfigBase, TruSearchControlRangeBase, TruSearchIconModule, TruSearchPanelPositionManager, TruSearchPanelPositionManagerModule, TruSearchResultViewBase, TruSearchResultViewBaseModule, TruSearchResultViewManager, TruSearchViewBase, TruSearchViewBaseModule, TruSearchViewControlEventHandler, TruSearchViewEventHandler, TruSort, TruTableConfigBase, TruTableRegistry, TruTextManager, TruToolbar, TruToolbarButton, TruToolbarButtonModule, TruToolbarContextFilter, TruToolbarContextFilterModule, TruToolbarDropdown, TruToolbarDropdownModule, TruToolbarMenu, TruToolbarMenuModule, TruToolbarModule, TruToolbarSeparator, TruToolbarSeparatorModule, TruToolbarText, TruToolbarTextModule, TruUiNotification, TruUser, TruUtil, TruValidationDialog, TruValidationDialogModule, TruWindowActionEventHandler, TruWindowEventArgs, TruWindowEventHandler };
|
|
6295
|
+
export { DetailViewModule, TruAppEnvironment, TruAuth, TruAuthInterceptor, TruBreezeContext, TruBreezeContextFactory, TruBreezeMetadataProvider, TruBreezeValidator, TruBreezeValidatorModule, TruChoice, TruColumn, TruColumnModule, TruCommonModule, TruComponentConfigBase, TruComponentLookup, TruConfirmDialog, TruConfirmDialogConfig, TruConfirmDialogModule, TruConnectionHub, TruContextFilter, TruContextFilterChoice, TruContextFilters, TruControlComponentConfigBase, TruDataChange, TruDataContext, TruDataGrid, TruDataGridModule, TruDataGridTypes, TruDesktop, TruDesktopManager, TruDesktopModule, TruDesktopViewConfig, TruDetailViewBase, TruEditControlBase, TruEditControlConfigBase, TruEditParentControlConfigBase, TruEditPkeyControlConfigBase, TruEntityAccessor, TruEntityBase, TruExportDialog, TruExportDialogConfig, TruExportDialogModule, TruForm, TruFormModule, TruFormulaEval, TruGroupBox, TruGroupBoxModule, TruIconModule, TruLogin, TruLoginModule, TruModelPropertyLookup, TruPredicate, TruPredicateMap, TruPropertyConfigBase, TruPropertyConfigCloudFile, TruPropertyConfigDate, TruPropertyConfigDecimal, TruPropertyConfigFile, TruPropertyConfigForeignKey, TruPropertyConfigInteger, TruPropertyConfigPassword, TruPropertyConfigPercentage, TruPropertyConfigScientific, TruPropertyConfigText, TruPropertyConfigTextChoices, TruPropertyConfigUsaAddress, TruPropertyConfigZipCode, TruQueryPredicateManager, TruRow, TruRowModule, TruSearchConfigBase, TruSearchControlBase, TruSearchControlConfigBase, TruSearchControlRangeBase, TruSearchIconModule, TruSearchPanelPositionManager, TruSearchPanelPositionManagerModule, TruSearchResultViewBase, TruSearchResultViewBaseModule, TruSearchResultViewManager, TruSearchViewBase, TruSearchViewBaseModule, TruSearchViewControlEventHandler, TruSearchViewEventHandler, TruSort, TruTableConfigBase, TruTableRegistry, TruTextManager, TruToolbar, TruToolbarButton, TruToolbarButtonModule, TruToolbarContextFilter, TruToolbarContextFilterModule, TruToolbarDropdown, TruToolbarDropdownModule, TruToolbarMenu, TruToolbarMenuModule, TruToolbarModule, TruToolbarSeparator, TruToolbarSeparatorModule, TruToolbarText, TruToolbarTextModule, TruUiNotification, TruUser, TruUtil, TruValidationDialog, TruValidationDialogModule, TruWindowActionEventHandler, TruWindowEventArgs, TruWindowEventHandler };
|
|
6288
6296
|
//# sourceMappingURL=trudb-tru-common-lib.mjs.map
|