mmhglobal-dynamicform 2.24.0 → 2.24.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.
- package/README.md +9 -0
- package/esm2020/lib/zmfb/zmfb.component.mjs +10 -3
- package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +10 -9
- package/fesm2015/mmhglobal-dynamicform.mjs +18 -10
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +18 -10
- 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,19 @@ 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
|
-
this.
|
|
7485
|
+
if (this.data.AllowCustomValue) {
|
|
7486
|
+
this.checkAllowCustomValue(searchBy, searchTerm, itemsData);
|
|
7487
|
+
}
|
|
7484
7488
|
if (this.debounceSub) {
|
|
7485
7489
|
this.debounceSub.unsubscribe();
|
|
7486
7490
|
}
|
|
7487
|
-
|
|
7488
|
-
.pipe(tap(() => (this.isLoading = true)), delay(500), tap(() => this.performSearch(searchTerm)), tap(() => (this.isLoading = false)))
|
|
7489
|
-
.subscribe();
|
|
7490
|
-
this.debounceSub = meetsLengthCondition ? searchSubscription : new Subscription();
|
|
7491
|
+
this.debounceSub = of([]).pipe(tap(() => (this.isLoading = true)), delay(500), tap(() => this.performSearch(searchTerm)), tap(() => (this.isLoading = false))).subscribe();
|
|
7491
7492
|
}
|
|
7492
7493
|
performSearch(value) {
|
|
7493
7494
|
const searchAction = () => {
|
|
@@ -10086,6 +10087,9 @@ class ZmfbComponent extends ButtonFieldBase {
|
|
|
10086
10087
|
// handle as zWorkflowButton
|
|
10087
10088
|
this.isWorkflowButton = true;
|
|
10088
10089
|
this.loadWorkflowButton();
|
|
10090
|
+
//Object.assign(this.group, {
|
|
10091
|
+
// zmfbLinked: `${this.data.Type}_${this.data.Name}`
|
|
10092
|
+
//});
|
|
10089
10093
|
}
|
|
10090
10094
|
else {
|
|
10091
10095
|
const field$ = this.fieldService.getFormFieldCode(this.buttonField.Value, "FormField");
|
|
@@ -10098,8 +10102,8 @@ class ZmfbComponent extends ButtonFieldBase {
|
|
|
10098
10102
|
this.items.push({
|
|
10099
10103
|
label: label,
|
|
10100
10104
|
icon: ZComponentHelper.getIcon(button.Icon),
|
|
10101
|
-
|
|
10102
|
-
|
|
10105
|
+
clickEvent: button.ClickEvent,
|
|
10106
|
+
click: (y) => {
|
|
10103
10107
|
this.buttonClick(button);
|
|
10104
10108
|
}
|
|
10105
10109
|
});
|
|
@@ -10178,6 +10182,10 @@ class ZmfbComponent extends ButtonFieldBase {
|
|
|
10178
10182
|
console.log("GOTO Button: ", button.Name);
|
|
10179
10183
|
this.workflowService.gotoButton_Onclick(button, this.buttonField, attributes, this.group, false).subscribe(res => {
|
|
10180
10184
|
this.loadWorkflowButton();
|
|
10185
|
+
// Require to refresh the firstzBtn
|
|
10186
|
+
const mainButtonName = `${this.buttonField.Type}_${this.buttonField.Name}`;
|
|
10187
|
+
const mainButton = ZComponentHelper.getComponent(this.group, mainButtonName);
|
|
10188
|
+
mainButton['loadButton']();
|
|
10181
10189
|
if (res) {
|
|
10182
10190
|
this.workflowService.triggerSendEmail(this.group).subscribe();
|
|
10183
10191
|
}
|