@indice/ng-components 0.5.1-beta.0 → 0.5.1-beta.2
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.
|
@@ -4425,7 +4425,7 @@ class BaseListComponent {
|
|
|
4425
4425
|
this.singularResult = 'result';
|
|
4426
4426
|
this.pluralResults = 'results';
|
|
4427
4427
|
this.minimumSearchCharacters = 3;
|
|
4428
|
-
this.searchDebounceTime =
|
|
4428
|
+
this.searchDebounceTime = 300;
|
|
4429
4429
|
this.searchSubject$ = new Subject();
|
|
4430
4430
|
this.autoLoad = true;
|
|
4431
4431
|
}
|
|
@@ -4458,12 +4458,7 @@ class BaseListComponent {
|
|
|
4458
4458
|
{ key: 'count', icon: Icons.ItemsCount, text: 'please wait...' }
|
|
4459
4459
|
];
|
|
4460
4460
|
this.searchSub$ = this.searchSubject$.pipe(filter(value => (value?.length ?? 0) >= this.minimumSearchCharacters || (value?.length ?? 0) === 0), debounceTime(this.searchDebounceTime), distinctUntilChanged()).subscribe(searchText => {
|
|
4461
|
-
this.
|
|
4462
|
-
this.page = 1;
|
|
4463
|
-
this.items = null;
|
|
4464
|
-
this.search = searchText;
|
|
4465
|
-
this.setRouteParams();
|
|
4466
|
-
this.load();
|
|
4461
|
+
this.executeSearch(searchText);
|
|
4467
4462
|
});
|
|
4468
4463
|
// disabled external route changes monitoring due to sync issues - which is bad :) - refresh from url will not work
|
|
4469
4464
|
// until i come up with a solution...
|
|
@@ -4631,6 +4626,14 @@ class BaseListComponent {
|
|
|
4631
4626
|
searchChanged(searchText) {
|
|
4632
4627
|
this.searchSubject$.next(searchText);
|
|
4633
4628
|
}
|
|
4629
|
+
executeSearch(searchText) {
|
|
4630
|
+
this.count = 0;
|
|
4631
|
+
this.page = 1;
|
|
4632
|
+
this.items = null;
|
|
4633
|
+
this.search = searchText;
|
|
4634
|
+
this.setRouteParams();
|
|
4635
|
+
this.load();
|
|
4636
|
+
}
|
|
4634
4637
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.1", ngImport: i0, type: BaseListComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4635
4638
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.1", type: BaseListComponent, isStandalone: false, selector: "ng-component", inputs: { autoLoad: ["auto-load", "autoLoad"] }, ngImport: i0, template: '', isInline: true }); }
|
|
4636
4639
|
}
|