@acorex/platform 20.9.1 → 20.9.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.
@@ -2946,14 +2946,15 @@ class AXPDialogRendererComponent extends AXBasePageComponent {
2946
2946
  return { widgetName: rest.slice(0, dot), action: rest.slice(dot + 1) };
2947
2947
  }
2948
2948
  async invokeWidget(widgetName, apiMethod, opts) {
2949
- if (!this.widgetCoreService)
2950
- return;
2949
+ if (!this.widgetCoreService) {
2950
+ return undefined;
2951
+ }
2951
2952
  try {
2952
2953
  const widget = this.widgetCoreService.getWidget(widgetName);
2953
2954
  const api = widget?.api?.();
2954
2955
  const fn = api?.[apiMethod];
2955
2956
  if (typeof fn === 'function') {
2956
- await Promise.resolve(fn({
2957
+ const result = await Promise.resolve(fn({
2957
2958
  close: (result) => {
2958
2959
  void this.closeWithOptionalSkipValidate(result);
2959
2960
  },
@@ -2964,11 +2965,13 @@ class AXPDialogRendererComponent extends AXBasePageComponent {
2964
2965
  }));
2965
2966
  // Footer predicates (e.g. wizard step) must refresh when the widget advances outside executeAction (e.g. dialogRef.invokeWidget after entity-form continue).
2966
2967
  await this.aggregateAndEvaluateActions();
2968
+ return result;
2967
2969
  }
2968
2970
  }
2969
2971
  catch {
2970
2972
  //
2971
2973
  }
2974
+ return undefined;
2972
2975
  }
2973
2976
  async close(result, options) {
2974
2977
  if (options?.skipDirtyConfirm) {