@trudb/tru-common-lib 0.0.189 → 0.0.190

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, Inject, HostListener, EventEmitter, ViewEncapsulation, Output, APP_INITIALIZER } from '@angular/core';
3
+ import { Directive, Input, Component, NgModule, Injectable, EventEmitter, Inject, HostListener, 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';
@@ -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 BehaviorSubject(null);
385
- this.filter$ = new BehaviorSubject(null);
384
+ this.search$ = new EventEmitter();
385
+ this.filter$ = new EventEmitter();
386
386
  this.clear$ = new BehaviorSubject(null);
387
387
  this.default$ = new BehaviorSubject(null);
388
388
  }
389
389
  onSearch() {
390
- return this.search$.asObservable();
390
+ return this.search$;
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(query) {
402
- this.search$.next(query);
401
+ search(entityQuery) {
402
+ this.search$.emit(entityQuery);
403
403
  }
404
- filter(query) {
405
- this.search$.next(query);
404
+ filter(entityQuery) {
405
+ this.filter$.emit(entityQuery);
406
406
  }
407
407
  clearValues() {
408
408
  this.clear$.next(null);