@omnia/fx 7.0.341-dev → 7.0.343-dev

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.
@@ -7,7 +7,8 @@ export declare enum AssignOperators {
7
7
  equalsPlus = "=+",
8
8
  equalsQuestion = "=?",
9
9
  plusPlus = "++",
10
- minusMinus = "--"
10
+ minusMinus = "--",
11
+ equalsExclamation = "=!"
11
12
  }
12
13
  export interface ResolvedComponentRenderer {
13
14
  component: any;
@@ -43,6 +44,9 @@ export interface VelcronRenderContext {
43
44
  properties?: {
44
45
  [name: string]: VelcronPrimitiveType | VelcroncomponentArrayType;
45
46
  };
47
+ computed?: {
48
+ [name: string]: [];
49
+ };
46
50
  parent?: VelcronRenderContext;
47
51
  hooks?: VelcronRenderContextHooks;
48
52
  }
@@ -138,6 +142,9 @@ export interface VelcronAppDefinition extends VelcronDefinitionBase {
138
142
  };
139
143
  components?: Array<VelcronCustomComponentDefinition>;
140
144
  state?: DynamicViewModel;
145
+ computed?: {
146
+ [name: string]: [];
147
+ };
141
148
  }
142
149
  export interface VelcronComponentDefinition extends VelcronDefinition {
143
150
  type: string;
@@ -7,11 +7,15 @@ export declare class VelcronActions {
7
7
  } | null;
8
8
  static registerAction(name: string, handler: IActionHandler): void;
9
9
  static parseAndExecuteActions(templates: Array<string>, renderContext: VelcronRenderContext, customActionContext?: VelcronCustomActionExecutionContext): void;
10
- static executeCustomAction(template: string, renderContext: VelcronAction, params: Array<VelcronActionParameterValue>): VelcronCustomActionExecutionContext | null;
10
+ static parseFunction(target: {
11
+ [name: string]: [];
12
+ }, template: string, renderContext: VelcronRenderContext, params: Array<VelcronActionParameterValue>, foundCb: (name: string, params: {}) => void): void;
11
13
  static getActionFromTemplate(partialTemplate: string, eventId: string, renderContext: VelcronRenderContext, customActionContext?: VelcronCustomActionExecutionContext): VelcronAction;
12
14
  static valueIsAction(value: string): boolean;
13
15
  static executeActions(arr: any, x: any, customActionContext?: VelcronCustomActionExecutionContext): void;
14
16
  static executeAction(awAction: VelcronActionWithAutoAwait, callback: (continueExecution: boolean) => void): void;
17
+ static dataBindComputed(renderContext: VelcronRenderContext, template: string): string;
18
+ static parseAndExecuteComputed(renderContext: VelcronRenderContext, template: string): string;
15
19
  private static extractParameterValues;
16
20
  }
17
21
  interface VelcronActionParameterValue {
@@ -26,7 +30,7 @@ export declare enum VelcronActionParameterDataType {
26
30
  }
27
31
  interface VelcronCustomActionExecutionContext {
28
32
  customAction: VelcronAction | null;
29
- parentAction: VelcronAction;
33
+ parentAction: VelcronAction | VelcronRenderContext;
30
34
  variables: object;
31
35
  returnValue: DeferredPromise<any>;
32
36
  }
@@ -9,7 +9,7 @@ export declare class VelcronData {
9
9
  static addCtxToVariableNames(template: string, skipIfNameStartsWith?: string, skipIfNameMatches?: Array<string>, overridePrefixWhenNameMatches?: {
10
10
  [name: string]: string;
11
11
  }): string;
12
- static evauluateJs(template: string, renderContext: VelcronRenderContext): any;
12
+ static evauluateJs(template: string, renderContext: VelcronRenderContext, overrideNamesMatching?: {}): any;
13
13
  private static variables;
14
14
  static deleteVariables(id: string): void;
15
15
  static getVariable<T>(name: string, renderContext: VelcronRenderContext): ParseResult<T>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "7.0.341-dev",
4
+ "version": "7.0.343-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "7.0.341-dev",
23
+ "@omnia/fx-models": "7.0.343-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",