@acorex/platform 20.0.3 → 20.0.4

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;
@@ -897,6 +897,9 @@ class AXPComponentSlotDirective {
897
897
  options = fun();
898
898
  });
899
899
  }
900
+ else if (this.evaluator.isExpression(config.options)) {
901
+ options = await this.evaluator.evaluate(config.options, {});
902
+ }
900
903
  else if (config.options) {
901
904
  options = config.options;
902
905
  }
@@ -905,7 +908,7 @@ class AXPComponentSlotDirective {
905
908
  Object.assign(componentRef.instance, {
906
909
  host: this.host(),
907
910
  context: this.context(),
908
- ...options
911
+ ...options,
909
912
  });
910
913
  }));
911
914
  }
@@ -925,7 +928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImpor
925
928
  args: [{
926
929
  selector: 'axp-component-slot',
927
930
  standalone: false,
928
- exportAs: 'slot'
931
+ exportAs: 'slot',
929
932
  }]
930
933
  }] });
931
934