@trudb/tru-common-lib 0.0.871 → 0.0.873
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/esm2022/lib/classes/tru-data-change-parser.mjs +10 -7
- package/esm2022/lib/services/tru-connection-hub.mjs +9 -6
- package/esm2022/lib/services/tru-model-type-lookup.mjs +21 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/trudb-tru-common-lib.mjs +34 -10
- package/fesm2022/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/classes/tru-data-change-parser.d.ts +5 -3
- package/lib/services/tru-connection-hub.d.ts +3 -1
- package/lib/services/tru-model-type-lookup.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { TruEntityBase } from "../base-classes/tru-entity-base";
|
|
2
|
-
import { TruModelPropertyLookup } from "../services/tru-model-property-lookup";
|
|
3
1
|
import { Subject } from "rxjs";
|
|
2
|
+
import { TruEntityBase } from "../base-classes/tru-entity-base";
|
|
4
3
|
import { TruDataContext } from "../services/tru-data-context";
|
|
4
|
+
import { TruModelPropertyLookup } from "../services/tru-model-property-lookup";
|
|
5
|
+
import { TruModelTypeLookup } from "../services/tru-model-type-lookup";
|
|
5
6
|
import { TruDataChange } from "./tru-data-change";
|
|
6
7
|
export declare class TruDataChangeParser {
|
|
7
8
|
private dataContext;
|
|
@@ -13,12 +14,13 @@ export declare class TruDataChangeParser {
|
|
|
13
14
|
private expandPaths;
|
|
14
15
|
private isLoaded;
|
|
15
16
|
private types;
|
|
17
|
+
private propertyTypes;
|
|
16
18
|
private globalDataContext;
|
|
17
19
|
private waitingEntities;
|
|
18
20
|
private dataChanged$;
|
|
19
21
|
onDataChanged(): Subject<TruDataChange>;
|
|
20
22
|
dataChanged(change: TruDataChange): void;
|
|
21
|
-
constructor(connection: any, dataContext: TruDataContext, globalDataContext: TruDataContext | null, entity: typeof TruEntityBase, tableName: string, getLatestResults: any, getLatestQuery: any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean, modelPropertyLookup: TruModelPropertyLookup);
|
|
23
|
+
constructor(connection: any, dataContext: TruDataContext, globalDataContext: TruDataContext | null, entity: typeof TruEntityBase, tableName: string, getLatestResults: any, getLatestQuery: any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
22
24
|
private findEntityInCache;
|
|
23
25
|
private findEntityInGlobalCache;
|
|
24
26
|
private checkIfDateTime;
|
|
@@ -4,13 +4,15 @@ import { TruDataChange } from '../classes/tru-data-change';
|
|
|
4
4
|
import { TruAppEnvironment } from './tru-app-environment';
|
|
5
5
|
import { TruDataContext } from './tru-data-context';
|
|
6
6
|
import { TruModelPropertyLookup } from './tru-model-property-lookup';
|
|
7
|
+
import { TruModelTypeLookup } from './tru-model-type-lookup';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class TruConnectionHub {
|
|
9
10
|
private dataContext;
|
|
10
11
|
private appEnvironment;
|
|
12
|
+
private modelTypeLookup;
|
|
11
13
|
private modelPropertyLookup;
|
|
12
14
|
private connection;
|
|
13
|
-
constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, modelPropertyLookup: TruModelPropertyLookup);
|
|
15
|
+
constructor(dataContext: TruDataContext, appEnvironment: TruAppEnvironment, modelTypeLookup: TruModelTypeLookup, modelPropertyLookup: TruModelPropertyLookup);
|
|
14
16
|
start: () => void;
|
|
15
17
|
subscribe: (dataContext: TruDataContext, entity: typeof TruEntityBase, tableName: string, getLatestResults: () => any, getLatestQuery: () => any, contextFilters: [], expandPaths: Array<string>, isLoaded: () => boolean) => Subject<TruDataChange>;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TruConnectionHub, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TruEntityBase } from "../base-classes/tru-entity-base";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TruModelTypeLookup {
|
|
4
|
+
private _lookup;
|
|
5
|
+
constructor();
|
|
6
|
+
get lookup(): Map<string, typeof TruEntityBase>;
|
|
7
|
+
set lookup(value: Map<string, typeof TruEntityBase>);
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TruModelTypeLookup, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TruModelTypeLookup>;
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export * from './lib/services/tru-context-filters';
|
|
|
113
113
|
export * from './lib/services/tru-data-context';
|
|
114
114
|
export * from './lib/services/tru-entity-accessor';
|
|
115
115
|
export * from './lib/services/tru-model-property-lookup';
|
|
116
|
+
export * from './lib/services/tru-model-type-lookup';
|
|
116
117
|
export * from './lib/services/tru-predicate-map';
|
|
117
118
|
export * from './lib/services/tru-search-result-view-manager';
|
|
118
119
|
export * from './lib/services/tru-sort';
|