@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
42 lines (41 loc) • 2.41 kB
TypeScript
import { BuiltInComponentRenderers, DynamicState, ResolvedComponentRenderer, VelcronCustomComponentDefinition, VelcronDefinition, VelcronRenderContext } from "../models";
export declare class VelcronRenderers {
private static components;
static registerComponent(type: string, component: any): void;
static hasComponents(): boolean;
static hasComponent(type: string): any;
static registerComponents(components: BuiltInComponentRenderers): void;
static getComponent(definition: VelcronDefinition, renderContext: VelcronRenderContext): ResolvedComponentRenderer;
static definitionContainsCustomColorSchema(definition: VelcronDefinition): boolean;
static createNewRendererContext(currentRenderCtx: VelcronRenderContext, definition: VelcronDefinition, newViewModel?: DynamicState): {
rootContext: object;
theming: {
state: {
currentTheme: import("@omnia/fx-models").ThemeDefinitionV2;
};
get: {
colorSchema: (colorSchemaType: string) => import("@omnia/fx-models").ColorSchema;
typography: (typographyType: string) => import("@omnia/fx-models").TypographyType;
color: (colorSchemaType: string, colorType: string) => string;
colorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
complementaryColorType: (colorType: string) => string;
complementaryColor: (colorSchemaType: string, colorType: string) => string;
complementaryColorDefinition: (colorSchemaType: string, colorType: string) => import("@omnia/fx-models").ColorDefinition;
currentTheme: () => import("@omnia/fx-models").ThemeDefinitionV2;
};
actions: {
setTheme(newTheme: import("@omnia/fx-models").ThemeDefinitionV2): void;
};
};
currentContext: object;
actions: {
[name: string]: [];
};
components: VelcronCustomComponentDefinition[];
hooks: import("../models").VelcronRenderContextHooks;
computed: {
[name: string]: [];
};
};
static ensureRenderContext(rendererInfo: ResolvedComponentRenderer, definition: VelcronDefinition, currentRenderCtx: VelcronRenderContext, newViewModel?: DynamicState): VelcronRenderContext;
}