2023-08-29 14:50:42 +00:00
|
|
|
/**
|
|
|
|
* Exposes utilities for getting the types information associated to each of the widget types.
|
|
|
|
*/
|
|
|
|
import {StringUnion} from "app/common/StringUnion";
|
|
|
|
|
|
|
|
// Custom widgets that are attached to "Add New" menu.
|
|
|
|
export const AttachedCustomWidgets = StringUnion('custom.calendar');
|
|
|
|
export type IAttachedCustomWidget = typeof AttachedCustomWidgets.type;
|
|
|
|
|
|
|
|
// all widget types
|
2023-12-12 09:58:20 +00:00
|
|
|
export type IWidgetType = 'record' | 'detail' | 'single' | 'chart' | 'custom' | 'form' | IAttachedCustomWidget;
|
2024-01-18 17:23:50 +00:00
|
|
|
export enum WidgetType {
|
|
|
|
Table = 'record',
|
|
|
|
Card = 'single',
|
|
|
|
CardList = 'detail',
|
|
|
|
Chart = 'chart',
|
|
|
|
Custom = 'custom',
|
|
|
|
Form = 'form',
|
|
|
|
Calendar = 'custom.calendar',
|
|
|
|
}
|