mmhglobal-dynamicform 2.24.1 → 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.
@@ -7482,12 +7482,13 @@ class ZselectmultipleComponent extends InputFieldBase {
7482
7482
  }
7483
7483
  const searchBy = this.data.SearchFields ?? this.itemTextField;
7484
7484
  const itemsData = this.getItemsData();
7485
- this.checkAllowCustomValue(searchBy, searchTerm, itemsData);
7485
+ if (this.data.AllowCustomValue) {
7486
+ this.checkAllowCustomValue(searchBy, searchTerm, itemsData);
7487
+ }
7486
7488
  if (this.debounceSub) {
7487
7489
  this.debounceSub.unsubscribe();
7488
7490
  }
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
+ 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
- 'clickEvent': button.ClickEvent,
10102
- 'click': (y) => {
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
  }