@indice/ng-components 0.2.92 → 0.2.93
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 +11 -13
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +10 -11
- package/esm2015/lib/layouts/views/view-layout/view-layout.component.js +3 -3
- package/fesm2015/indice-ng-components.js +11 -12
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -2085,8 +2085,8 @@
|
|
|
2085
2085
|
this.onSearch = new i0.EventEmitter();
|
|
2086
2086
|
}
|
|
2087
2087
|
ViewLayoutComponent.prototype.ngOnInit = function () {
|
|
2088
|
-
var _a;
|
|
2089
|
-
rxjs.fromEvent((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement, 'keyup').pipe(operators.map(function (event) {
|
|
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
2090
|
return event.target.value; // Get input value.
|
|
2091
2091
|
}), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
|
|
2092
2092
|
// If character length greater than minimumSearchCharacters setting.
|
|
@@ -2298,6 +2298,14 @@
|
|
|
2298
2298
|
this.onComplete = new i0.EventEmitter();
|
|
2299
2299
|
}
|
|
2300
2300
|
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();
|
|
2301
2309
|
};
|
|
2302
2310
|
FormLayoutComponent.prototype.onSidePaneDeactivated = function ($event) {
|
|
2303
2311
|
this.onComplete.emit(true);
|
|
@@ -2309,18 +2317,8 @@
|
|
|
2309
2317
|
this.onSearch.emit(text);
|
|
2310
2318
|
};
|
|
2311
2319
|
FormLayoutComponent.prototype.searchActionType = function (text) {
|
|
2312
|
-
var _this = this;
|
|
2313
2320
|
var _a;
|
|
2314
|
-
|
|
2315
|
-
return event.target.value; // Get input value.
|
|
2316
|
-
}), operators.filter(function (inputValue) { return inputValue.length >= 3 || inputValue.length === 0; }),
|
|
2317
|
-
// If character length greater than minimumSearchCharacters setting.
|
|
2318
|
-
operators.debounceTime(1000), // Time in milliseconds between key events.
|
|
2319
|
-
operators.distinctUntilChanged() // If previous query is different from current.
|
|
2320
|
-
).subscribe(function (_) {
|
|
2321
|
-
var _a;
|
|
2322
|
-
_this.onSearch.emit((_a = _this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement.value);
|
|
2323
|
-
});
|
|
2321
|
+
this.onSearch.emit((_a = this.searchInput$) === null || _a === void 0 ? void 0 : _a.nativeElement.value);
|
|
2324
2322
|
};
|
|
2325
2323
|
FormLayoutComponent.prototype.routerLinkActionClick = function (action, relative) {
|
|
2326
2324
|
if (relative === void 0) { relative = false; }
|