@acorex/platform 20.0.3 → 20.0.5

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.
@@ -874,9 +874,9 @@ class AXPComponentSlotDirective {
874
874
  }
875
875
  const results = await Promise.all(configs.map(async (c) => ({
876
876
  config: c,
877
- visible: c.condition ? await this.evaluateCondition(c.condition) : true
877
+ visible: c.condition ? await this.evaluateCondition(c.condition) : true,
878
878
  })));
879
- const slots = results.filter(r => r.visible).map(r => r.config);
879
+ const slots = results.filter((r) => r.visible).map((r) => r.config);
880
880
  this.viewContainerRef.clear();
881
881
  await Promise.all(slots.map(async (config) => {
882
882
  let component;
@@ -891,6 +891,7 @@ class AXPComponentSlotDirective {
891
891
  component = config.component;
892
892
  }
893
893
  // load options
894
+ debugger;
894
895
  if (typeof config.options === 'function') {
895
896
  runInInjectionContext(this.injector, () => {
896
897
  const fun = config.options;
@@ -898,14 +899,14 @@ class AXPComponentSlotDirective {
898
899
  });
899
900
  }
900
901
  else if (config.options) {
901
- options = config.options;
902
+ options = await this.evaluator.evaluate(config.options, {});
902
903
  }
903
904
  // apply options and host
904
905
  const componentRef = this.viewContainerRef.createComponent(component);
905
906
  Object.assign(componentRef.instance, {
906
907
  host: this.host(),
907
908
  context: this.context(),
908
- ...options
909
+ ...options,
909
910
  });
910
911
  }));
911
912
  }
@@ -925,7 +926,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
925
926
  args: [{
926
927
  selector: 'axp-component-slot',
927
928
  standalone: false,
928
- exportAs: 'slot'
929
+ exportAs: 'slot',
929
930
  }]
930
931
  }] });
931
932