@trudb/tru-common-lib 0.0.188 → 0.0.189

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.
@@ -1,6 +1,6 @@
1
1
  import { EntityAspect, BinaryPredicate, AndOrPredicate, breeze, MetadataStore, DataService, EntityManager, EntityQuery, FetchStrategy, EntityState } from 'breeze-client';
2
2
  import * as i0 from '@angular/core';
3
- import { Directive, Input, Component, NgModule, Injectable, EventEmitter, Inject, HostListener, ViewEncapsulation, Output, APP_INITIALIZER } from '@angular/core';
3
+ import { Directive, Input, Component, NgModule, Injectable, Inject, HostListener, EventEmitter, ViewEncapsulation, Output, APP_INITIALIZER } from '@angular/core';
4
4
  import * as i1$3 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
6
6
  import * as i2 from '@angular/forms';
@@ -131,10 +131,10 @@ class TruDetailViewBase {
131
131
  constructor() { }
132
132
  }
133
133
  TruDetailViewBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruDetailViewBase, deps: [], target: i0.ɵɵFactoryTarget.Component });
134
- TruDetailViewBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TruDetailViewBase, selector: "tru-detail-view-base", ngImport: i0, template: "", styles: ["::ng-deep .detail-container .mat-form-field{margin-left:10px;width:calc(100% - 20px)}::ng-deep .detail-container .mat-tab-group{margin-left:10px;margin-right:10px}\n"] });
134
+ TruDetailViewBase.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.2", type: TruDetailViewBase, selector: "tru-detail-view-base", ngImport: i0, template: "", styles: [""] });
135
135
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruDetailViewBase, decorators: [{
136
136
  type: Component,
137
- args: [{ selector: 'tru-detail-view-base', template: "", styles: ["::ng-deep .detail-container .mat-form-field{margin-left:10px;width:calc(100% - 20px)}::ng-deep .detail-container .mat-tab-group{margin-left:10px;margin-right:10px}\n"] }]
137
+ args: [{ selector: 'tru-detail-view-base', template: "" }]
138
138
  }], ctorParameters: function () { return []; } });
139
139
 
140
140
  class DetailViewModule {
@@ -381,13 +381,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.2", ngImpor
381
381
 
382
382
  class TruSearchViewEventHandler {
383
383
  constructor() {
384
- this.search$ = new EventEmitter();
385
- this.filter$ = new EventEmitter();
384
+ this.search$ = new BehaviorSubject(null);
385
+ this.filter$ = new BehaviorSubject(null);
386
386
  this.clear$ = new BehaviorSubject(null);
387
387
  this.default$ = new BehaviorSubject(null);
388
388
  }
389
389
  onSearch() {
390
- return this.search$;
390
+ return this.search$.asObservable();
391
391
  }
392
392
  onFilter() {
393
393
  return this.filter$;
@@ -398,11 +398,11 @@ class TruSearchViewEventHandler {
398
398
  onSetDefaults() {
399
399
  return this.default$;
400
400
  }
401
- search(entityQuery) {
402
- this.search$.emit(entityQuery);
401
+ search(query) {
402
+ this.search$.next(query);
403
403
  }
404
- filter(entityQuery) {
405
- this.filter$.emit(entityQuery);
404
+ filter(query) {
405
+ this.search$.next(query);
406
406
  }
407
407
  clearValues() {
408
408
  this.clear$.next(null);
@@ -1117,7 +1117,7 @@ class TruEntityAccessor {
1117
1117
  return 'Query' + entity.name;
1118
1118
  };
1119
1119
  this.warnIfMaxRecords = (entities, entityName) => {
1120
- if (entities.length >= this.maxRecordCount)
1120
+ if (entities.length >= this._maxRecordCount)
1121
1121
  this.uiNotification.warning('[' + entityName + '] has more records available than supported');
1122
1122
  };
1123
1123
  this.formatQueryChoices = (query, entities, pKeyName, hid = null) => {
@@ -1280,9 +1280,6 @@ class TruEntityAccessor {
1280
1280
  this._breezeContext = dataContext.breezeContext;
1281
1281
  this._entityManager = dataContext.entityManager;
1282
1282
  }
1283
- set maxRecordCount(maxRecordCount) {
1284
- this.maxRecordCount = maxRecordCount;
1285
- }
1286
1283
  }
1287
1284
  TruEntityAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor, deps: [{ token: i1$2.HttpClient }, { token: TruAppEnvironment }, { token: TruUiNotification }], target: i0.ɵɵFactoryTarget.Injectable });
1288
1285
  TruEntityAccessor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.2", ngImport: i0, type: TruEntityAccessor });