@cds/core
Version:
Clarity Design System - common components, themes, and utilties
44 lines (43 loc) • 1.18 kB
TypeScript
/**
* Interal demo data and utilities used for example apps and documentation
*/
export * from './utils.js';
export * from './data/demo.service.js';
export * from './data/interfaces.js';
export interface TestVM {
id: string;
status: 'online' | 'disruption' | 'offline' | 'deactivated';
cpu: number;
memory: number;
selected: boolean;
about: string;
}
export declare enum StatusDisplayType {
online = "success",
disruption = "warning",
offline = "danger",
deactivated = "neutral"
}
export declare enum StatusIconType {
online = "check-circle",
disruption = "exclamation-triangle",
offline = "exclamation-circle",
deactivated = "disconnect"
}
export declare enum ColumnTypes {
Host = 1,
Status = 2,
CPU = 4,
Memory = 8,
All = 15
}
/**
* @demo
* This is a demo function used to standardize demos across framework examples. Do not use in production.
*/
export declare function getVMData(): TestVM[];
/**
* @demo
* This is a demo function used to standardize demos across framework examples. Do not use in production.
*/
export declare function getVMDataAsync(delay?: number): Promise<TestVM[]>;