@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.
package/core/index.d.ts CHANGED
@@ -1177,6 +1177,7 @@ declare class AXPExpressionEvaluatorService {
1177
1177
  private getMergedScope;
1178
1178
  evaluate(source: any | any[], scope: AXPExpressionEvaluatorScope): Promise<any>;
1179
1179
  private evaluateStringExpression;
1180
+ isExpression(expression: string): boolean;
1180
1181
  static ɵfac: i0.ɵɵFactoryDeclaration<AXPExpressionEvaluatorService, never>;
1181
1182
  static ɵprov: i0.ɵɵInjectableDeclaration<AXPExpressionEvaluatorService>;
1182
1183
  }
@@ -832,7 +832,7 @@ class AXPExpressionEvaluatorService {
832
832
  });
833
833
  }
834
834
  // Evaluate all expressions in parallel
835
- const values = await Promise.all(matches.map(m => {
835
+ const values = await Promise.all(matches.map((m) => {
836
836
  const sandbox = this.getOrCompileFunction(m.expression);
837
837
  return sandbox(scope);
838
838
  }));
@@ -848,6 +848,12 @@ class AXPExpressionEvaluatorService {
848
848
  result += templateExpression.slice(lastIndex);
849
849
  return result;
850
850
  }
851
+ isExpression(expression) {
852
+ if (typeof expression === 'string') {
853
+ return expression.includes('{{');
854
+ }
855
+ return false;
856
+ }
851
857
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AXPExpressionEvaluatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
852
858
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: AXPExpressionEvaluatorService, providedIn: 'root' }); }
853
859
  }