@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
55 lines (54 loc) • 1.56 kB
TypeScript
import { IDataField, TableAlignmentOptions } from "@nova-ui/bits";
import { IFormatterData } from "../configurator/components/formatters/types";
import { IProperties } from "../types";
export interface IFormatterProperties extends IProperties {
dataFieldIds?: IFormatterData;
}
export interface IFormatter {
componentType: string;
properties: IFormatterProperties;
}
export interface IFormatterConfigurator {
formatter?: IFormatter;
formatterDefinition: IFormatterDefinition;
dataFields: IDataField[];
}
export interface IFormatterDefinitionProperties {
/** CSS class to be applied to the formatter host element */
elementClass?: string;
}
export interface IFormatterDefinition {
componentType: string;
label: string;
/**
* The formatter's compatible data types.
*/
dataTypes: Record<string, string | string[]>;
/**
* Component used to configure values for formatter.
*/
configurationComponent?: string;
properties?: IFormatterDefinitionProperties;
}
export interface ITableFormatterDefinition extends IFormatterDefinition {
alignment?: TableAlignmentOptions;
}
export interface IInfoMessage {
componentType: string;
properties: IInfoMessageProperties;
}
export interface IInfoMessageProperties {
generalText: string;
emphasizeText?: string;
link?: ILinkDefinition;
allowDismiss?: boolean;
}
export interface ILinkDefinition {
href: string;
target: string;
text: string;
}
export declare enum EmbeddedContentMode {
URL = 0,
HTML = 1
}