@indice/ng-components 0.2.93 → 0.2.94

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.
@@ -2085,14 +2085,16 @@
2085
2085
  this.onSearch = new i0.EventEmitter();
2086
2086
  }
2087
2087
  ViewLayoutComponent.prototype.ngOnInit = function () {
2088
- var _a, _b;
2089
- (_b = rxjs.fromEvent((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement, 'keyup')) === null || _b === void 0 ? void 0 : _b.pipe(operators.map(function (event) {
2090
- return event.target.value; // Get input value.
2091
- }), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
2092
- // If character length greater than minimumSearchCharacters setting.
2093
- operators.debounceTime(1000), // Time in milliseconds between key events.
2094
- operators.distinctUntilChanged() // If previous query is different from current.
2095
- ).subscribe();
2088
+ var _a;
2089
+ if ((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2090
+ rxjs.fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(operators.map(function (event) {
2091
+ return event.target.value; // Get input value.
2092
+ }), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
2093
+ // If character length greater than minimumSearchCharacters setting.
2094
+ operators.debounceTime(1000), // Time in milliseconds between key events.
2095
+ operators.distinctUntilChanged() // If previous query is different from current.
2096
+ ).subscribe();
2097
+ }
2096
2098
  };
2097
2099
  ViewLayoutComponent.prototype.emitActionClick = function (action) {
2098
2100
  this.onAction.emit(action);
@@ -2298,14 +2300,16 @@
2298
2300
  this.onComplete = new i0.EventEmitter();
2299
2301
  }
2300
2302
  FormLayoutComponent.prototype.ngOnInit = function () {
2301
- var _a, _b;
2302
- (_b = rxjs.fromEvent((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement, 'keyup')) === null || _b === void 0 ? void 0 : _b.pipe(operators.map(function (event) {
2303
- return event.target.value; // Get input value.
2304
- }), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
2305
- // If character length greater than minimumSearchCharacters setting.
2306
- operators.debounceTime(1000), // Time in milliseconds between key events.
2307
- operators.distinctUntilChanged() // If previous query is different from current.
2308
- ).subscribe();
2303
+ var _a;
2304
+ if ((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2305
+ rxjs.fromEvent(this.searchInput$.nativeElement, 'keyup').pipe(operators.map(function (event) {
2306
+ return event.target.value; // Get input value.
2307
+ }), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
2308
+ // If character length greater than minimumSearchCharacters setting.
2309
+ operators.debounceTime(1000), // Time in milliseconds between key events.
2310
+ operators.distinctUntilChanged() // If previous query is different from current.
2311
+ ).subscribe();
2312
+ }
2309
2313
  };
2310
2314
  FormLayoutComponent.prototype.onSidePaneDeactivated = function ($event) {
2311
2315
  this.onComplete.emit(true);