Newer
Older
import type { TDarkness, TIcons, TPosition, TTextStyle, TThemeColor } from '@interfaces/common';

Дмитрий Малюгин
committed
export interface ITableColumn {
name: string;
type?: TTableColumnType;
editable?: boolean;
filterable?: boolean;
sortable?: boolean;
initSort?: 'up' | 'down' | 'none';

Дмитрий Малюгин
committed
}
export interface ITableItem {
value: string;
editable?: boolean;
}
export type TTableColumnType =
| 'checkbox'

Дмитрий Малюгин
committed
| 'text'
| 'date'
| 'select'
| 'rating'
| 'progressBar'
| 'knob'
| 'avatar'
| 'image';
export interface ITreeItem {
label: string;
link?: string;
linkBlank?: boolean;
color?: TThemeColor;
textStyle?: TTextStyle;
isTriangleToColor?: boolean;
iconBefore?: TIcons;
iconAfter?: TIcons;
iconColor?: TThemeColor;
children?: ITreeItem[];
darknessColor?: TDarkness;
darknessIconColor?: TDarkness;
export interface IMDItemProps {
label: string;
theme?: TThemeColor;

Дмитрий Малюгин
committed
color?: TThemeColor;
darknessTheme?: TDarkness;

Дмитрий Малюгин
committed
darknessColor?: TDarkness;
textStyle?: TTextStyle;
link?: string;
linkBlank?: boolean;
onClick?: () => void;
}

Дмитрий Малюгин
committed
export interface ISelectOption {
value: string;
label?: string;
group?: string;

Дмитрий Малюгин
committed
iconLeft?: TIcons;
iconRight?: TIcons;
iconLeftColor?: TThemeColor;
iconRightColor?: TThemeColor;

Дмитрий Малюгин
committed
color?: TThemeColor;
darknessColor?: TDarkness;
background?: TThemeColor;
darknessBackground?: TDarkness;
}
export interface ISelectGroup {
name: string;
nameColor?: TThemeColor;
background?: TThemeColor;
items?: ISelectOption[];

Дмитрий Малюгин
committed
iconLeft?: TIcons;
iconRight?: TIcons;
iconLeftColor?: TThemeColor;
iconRightColor?: TThemeColor;

Дмитрий Малюгин
committed
}
export interface ISBOption {
label: string;
value?: never;
color?: TThemeColor;
activeColor?: TThemeColor;
backgroundColor?: TThemeColor;
darknessColor?: TDarkness;
darknessActiveColor?: TDarkness;
darknessBackgroundColor?: TDarkness;
isLabelHidden?: boolean;
iconPosition?: TPosition;
textStyle?: TTextStyle;
}
export interface ISliderOptions {
label: string | number | boolean;
color?: TThemeColor;
darknessColor?: TDarkness;