@trudb/tru-common-lib 0.2.462 → 0.2.463

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.
@@ -8142,6 +8142,7 @@ class TruMergeData {
8142
8142
 
8143
8143
  class TruDataChangeParser {
8144
8144
  appEnvionment;
8145
+ user;
8145
8146
  dataContext;
8146
8147
  entity;
8147
8148
  tableName;
@@ -8162,8 +8163,9 @@ class TruDataChangeParser {
8162
8163
  dataChanged(change) {
8163
8164
  this.dataChanged$.next(change);
8164
8165
  }
8165
- constructor(connection, appEnviroment, dataContext, globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, modelTypeLookup, modelPropertyLookup) {
8166
+ constructor(connection, appEnviroment, user, dataContext, globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, modelTypeLookup, modelPropertyLookup) {
8166
8167
  this.appEnvionment = appEnviroment;
8168
+ this.user = user;
8167
8169
  this.dataContext = dataContext;
8168
8170
  this.globalDataContext = globalDataContext;
8169
8171
  this.entity = entity;
@@ -8417,12 +8419,14 @@ class TruDataChangeParser {
8417
8419
  class TruConnectionHub {
8418
8420
  dataContext;
8419
8421
  appEnvironment;
8422
+ user;
8420
8423
  modelTypeLookup;
8421
8424
  modelPropertyLookup;
8422
8425
  connection;
8423
- constructor(dataContext, appEnvironment, modelTypeLookup, modelPropertyLookup) {
8426
+ constructor(dataContext, appEnvironment, user, modelTypeLookup, modelPropertyLookup) {
8424
8427
  this.dataContext = dataContext;
8425
8428
  this.appEnvironment = appEnvironment;
8429
+ this.user = user;
8426
8430
  this.modelTypeLookup = modelTypeLookup;
8427
8431
  this.modelPropertyLookup = modelPropertyLookup;
8428
8432
  this.connection = new signalR.HubConnectionBuilder()
@@ -8456,9 +8460,9 @@ class TruConnectionHub {
8456
8460
  this.connect();
8457
8461
  };
8458
8462
  subscribe = (dataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded) => {
8459
- return new TruDataChangeParser(this.connection, this.appEnvironment, dataContext, this.appEnvironment.globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, this.modelTypeLookup, this.modelPropertyLookup).onDataChanged();
8463
+ return new TruDataChangeParser(this.connection, this.appEnvironment, this.user, dataContext, this.appEnvironment.globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, this.modelTypeLookup, this.modelPropertyLookup).onDataChanged();
8460
8464
  };
8461
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruConnectionHub, deps: [{ token: TruDataContext }, { token: TruAppEnvironment }, { token: TruModelTypeLookup }, { token: TruModelPropertyLookup }], target: i0.ɵɵFactoryTarget.Injectable });
8465
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruConnectionHub, deps: [{ token: TruDataContext }, { token: TruAppEnvironment }, { token: TruUser }, { token: TruModelTypeLookup }, { token: TruModelPropertyLookup }], target: i0.ɵɵFactoryTarget.Injectable });
8462
8466
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruConnectionHub, providedIn: 'root' });
8463
8467
  }
8464
8468
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TruConnectionHub, decorators: [{
@@ -8466,7 +8470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
8466
8470
  args: [{
8467
8471
  providedIn: 'root',
8468
8472
  }]
8469
- }], ctorParameters: () => [{ type: TruDataContext }, { type: TruAppEnvironment }, { type: TruModelTypeLookup }, { type: TruModelPropertyLookup }] });
8473
+ }], ctorParameters: () => [{ type: TruDataContext }, { type: TruAppEnvironment }, { type: TruUser }, { type: TruModelTypeLookup }, { type: TruModelPropertyLookup }] });
8470
8474
 
8471
8475
  class TruTabGroupEventNotifier {
8472
8476
  active$ = new BehaviorSubject(false);