-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
columnDropdownButtonItemConf.ts
60 lines (59 loc) · 2.11 KB
/
columnDropdownButtonItemConf.ts
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
import {INSERT_LEFT_ICON_SVG_STRING, INSERT_RIGHT_ICON_SVG_STRING} from '../../../consts/icons/insertIconSVGStrings';
import {MOVE_LEFT_ICON_SVG_STRING, MOVE_RIGHT_ICON_SVG_STRING} from '../../../consts/icons/moveIconSVGStrings';
import {SORT_ASC_ICON_SVG_STRING, SORT_DESC_ICON_SVG_STRING} from '../../../consts/icons/sortIconSVGString';
import {TRASH_ICON_SVG_STRING} from '../../../consts/icons/trashIconSVGString';
import {DropdownButtonItemSettings} from '../../../types/dropdownButtonItem';
// TO-DO - potential opportunity to use code sharding and download strings later
export class ColumnDropdownButtonItemConf {
public static readonly ITEMS: DropdownButtonItemSettings[] = [
{
text: 'Sort Ascending',
iconSettings: {
svgString: SORT_ASC_ICON_SVG_STRING,
containerStyles: {dropdown: {marginRight: '9px', marginTop: '2px'}},
},
},
{
text: 'Sort Descending',
iconSettings: {
svgString: SORT_DESC_ICON_SVG_STRING,
containerStyles: {dropdown: {marginRight: '9px', marginTop: '1px'}},
},
},
{
text: 'Insert Left',
iconSettings: {
svgString: INSERT_LEFT_ICON_SVG_STRING,
containerStyles: {dropdown: {marginLeft: '-2px', marginRight: '3px', marginTop: '1px'}},
},
},
{
text: 'Insert Right',
iconSettings: {
svgString: INSERT_RIGHT_ICON_SVG_STRING,
containerStyles: {dropdown: {marginLeft: '-3px', marginRight: '4px', marginTop: '1px'}},
},
},
{
text: 'Move Left',
iconSettings: {
svgString: MOVE_LEFT_ICON_SVG_STRING,
containerStyles: {dropdown: {marginLeft: '1px', marginRight: '7px', marginTop: '3.5px'}},
},
},
{
text: 'Move Right',
iconSettings: {
svgString: MOVE_RIGHT_ICON_SVG_STRING,
containerStyles: {dropdown: {marginLeft: '1px', marginRight: '7px', marginTop: '1.5px'}},
},
},
{
text: 'Delete',
iconSettings: {
svgString: TRASH_ICON_SVG_STRING,
containerStyles: {dropdown: {marginLeft: '-4px', marginRight: '5px', marginTop: '-1px'}},
},
},
];
}