@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.
- package/bundles/indice-ng-components.umd.js +20 -16
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +11 -9
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +11 -9
- package/fesm2015/indice-ng-components.js +20 -16
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -2085,14 +2085,16 @@
|
|
|
2085
2085
|
this.onSearch = new i0.EventEmitter();
|
|
2086
2086
|
}
|
|
2087
2087
|
ViewLayoutComponent.prototype.ngOnInit = function () {
|
|
2088
|
-
var _a
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
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
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
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);
|