mmhglobal-dynamicform 2.24.0 → 2.24.1
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/README.md +3 -0
- package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +8 -8
- package/fesm2015/mmhglobal-dynamicform.mjs +7 -7
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +7 -7
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { Injectable, Directive, Inject, Input, HostListener, Pipe, Component, Vi
|
|
|
3
3
|
import { HttpParams, HttpEventType } from '@angular/common/http';
|
|
4
4
|
import * as i1 from '@angular/router';
|
|
5
5
|
import { NavigationStart, NavigationEnd, NavigationError, RouterModule } from '@angular/router';
|
|
6
|
-
import { BehaviorSubject, forkJoin, of, tap as tap$1, map as map$1, first, isObservable, switchMap as switchMap$1, interval, takeWhile,
|
|
6
|
+
import { BehaviorSubject, forkJoin, of, tap as tap$1, map as map$1, first, isObservable, switchMap as switchMap$1, interval, takeWhile, from, Subject, delay as delay$1, filter, auditTime } from 'rxjs';
|
|
7
7
|
import { tap, switchMap, map, take, delay, concatMap, ignoreElements } from 'rxjs/operators';
|
|
8
8
|
import * as i2 from 'mmhglobal-zcore';
|
|
9
9
|
import { ZGroup, FormType, ZComponentHelper, MESSAGETYPE, ActionType, DefaultMessage, DefaultDialogTitle, Delimiter, ZSelectPostApiParams, ComponentType as ComponentType$1, ZComponentProperties, SignalType, DropdownSearchOperator, InternalComponentType_DropDown, UploadMetaData, AttachmentConfig, DefaultPageSettingParams, ZCoreModule } from 'mmhglobal-zcore';
|
|
@@ -7476,18 +7476,18 @@ class ZselectmultipleComponent extends InputFieldBase {
|
|
|
7476
7476
|
}
|
|
7477
7477
|
}
|
|
7478
7478
|
handleFilter(searchTerm, justOneTime) {
|
|
7479
|
-
|
|
7480
|
-
|
|
7479
|
+
if (this.multiselect) {
|
|
7480
|
+
const meetsLengthCondition = this.data.SearchLength && this.data.SearchLength <= searchTerm.length;
|
|
7481
|
+
this.multiselect.toggle(meetsLengthCondition);
|
|
7482
|
+
}
|
|
7481
7483
|
const searchBy = this.data.SearchFields ?? this.itemTextField;
|
|
7482
7484
|
const itemsData = this.getItemsData();
|
|
7483
7485
|
this.checkAllowCustomValue(searchBy, searchTerm, itemsData);
|
|
7484
7486
|
if (this.debounceSub) {
|
|
7485
7487
|
this.debounceSub.unsubscribe();
|
|
7486
7488
|
}
|
|
7487
|
-
const searchSubscription = of([])
|
|
7488
|
-
|
|
7489
|
-
.subscribe();
|
|
7490
|
-
this.debounceSub = meetsLengthCondition ? searchSubscription : new Subscription();
|
|
7489
|
+
const searchSubscription = of([]).pipe(tap(() => (this.isLoading = true)), delay(500), tap(() => this.performSearch(searchTerm)), tap(() => (this.isLoading = false))).subscribe();
|
|
7490
|
+
this.debounceSub = searchSubscription;
|
|
7491
7491
|
}
|
|
7492
7492
|
performSearch(value) {
|
|
7493
7493
|
const searchAction = () => {
|