-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathconfig.ts
More file actions
64 lines (62 loc) · 2.28 KB
/
config.ts
File metadata and controls
64 lines (62 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { InjectionToken } from '@angular/core';
export interface IGlobalConfig {
showAnimation?: boolean;
showGlowStyle?: boolean;
styleType?: 'default' | 'gray';
size?: 'xs' | 'sm' | 'md' | 'lg';
}
export type GlobalConfig = IGlobalConfig;
export interface TooltipConfig extends IGlobalConfig {
mouseEnterDelay?: number;
mouseLeaveDelay?: number;
}
export type PanelConfig = IGlobalConfig;
export type ModalConfig = IGlobalConfig;
export type DropdownConfig = IGlobalConfig;
export type AccordionConfig = IGlobalConfig;
export type TwodatepickerConfig = IGlobalConfig;
export type PopoverConfig = IGlobalConfig;
export type SelectConfig = IGlobalConfig;
export type TreeselectConfig = IGlobalConfig;
export type PopperConfig = IGlobalConfig;
export type TreeConfig = IGlobalConfig;
export type EditableselectConfig = IGlobalConfig;
export type AutocompleteConfig = IGlobalConfig;
export type MultiautocompleteConfig = IGlobalConfig;
export type DatepickerConfig = IGlobalConfig;
export type CascaderConfig = IGlobalConfig;
export type TagsinputConfig = IGlobalConfig;
export type TimepickerConfig = IGlobalConfig;
export type CheckboxConfig = IGlobalConfig;
export type TypographyConfig = IGlobalConfig;
export type SafeNullConfig = { placeholder: string };
export interface DevUIGlobalConfig {
tooltip?: TooltipConfig;
dropdown?: DropdownConfig;
accordion?: AccordionConfig;
popover?: PopoverConfig;
select?: SelectConfig;
modal?: ModalConfig;
treeselect?: TreeselectConfig;
popper?: PopperConfig;
tree?: TreeConfig;
editableselect?: EditableselectConfig;
autocomplete?: AutocompleteConfig;
multiautocomplete?: MultiautocompleteConfig;
datepicker?: DatepickerConfig;
daterangepicker?: DatepickerConfig;
datepickerappendtobody?: DatepickerConfig;
twodatepicker?: DatepickerConfig;
cascader?: CascaderConfig;
tagsinput?: TagsinputConfig;
timepicker?: TimepickerConfig;
checkbox?: CheckboxConfig;
checkboxgroup?: CheckboxConfig;
panel?: PanelConfig;
typography?: TypographyConfig;
safenull?: SafeNullConfig;
global?: GlobalConfig;
}
export type DevUIGlobalConfigKey = keyof DevUIGlobalConfig;
export type DevUIGlobalInsideConfigKey = keyof DevUIGlobalConfig['global'];
export const DevUIGlobalConfigToken = new InjectionToken<DevUIGlobalConfig>('DevUI_global_config');