1 | export class ColDefUtil {
|
2 | public static STRING_PROPERTIES = [
|
3 | 'headerName',
|
4 | 'columnGroupShow',
|
5 | 'headerClass',
|
6 | 'toolPanelClass',
|
7 | 'headerValueGetter',
|
8 | 'pivotKeys',
|
9 | 'groupId',
|
10 | 'colId',
|
11 | 'sort',
|
12 | 'field',
|
13 | 'type',
|
14 | 'tooltipField',
|
15 | 'headerTooltip',
|
16 | 'cellClass',
|
17 | 'showRowGroup',
|
18 | 'template',
|
19 | 'templateUrl',
|
20 | 'filter',
|
21 | 'aggFunc',
|
22 | 'cellRenderer',
|
23 | 'cellEditor',
|
24 | 'pinned'
|
25 | ];
|
26 |
|
27 | public static OBJECT_PROPERTIES = [
|
28 | 'headerGroupComponent',
|
29 | 'headerGroupComponentFramework',
|
30 | 'headerGroupComponentParams',
|
31 | 'cellStyle',
|
32 | 'cellRendererParams',
|
33 | 'cellEditorFramework',
|
34 | 'cellEditorParams',
|
35 | 'pinnedRowCellRendererFramework',
|
36 | 'pinnedRowCellRendererParams',
|
37 | 'filterFramework',
|
38 | 'filterParams',
|
39 | 'pivotValueColumn',
|
40 | 'headerComponent',
|
41 | 'headerComponentFramework',
|
42 | 'headerComponentParams',
|
43 | 'floatingFilterComponent',
|
44 | 'floatingFilterComponentParams',
|
45 | 'floatingFilterComponentFramework',
|
46 | 'refData'];
|
47 |
|
48 | public static ARRAY_PROPERTIES = [
|
49 | 'children',
|
50 | 'sortingOrder',
|
51 | 'allowedAggFuncs',
|
52 | 'menuTabs',
|
53 | 'pivotTotalColumnIds',
|
54 | 'cellClassRules',
|
55 | 'icons'];
|
56 |
|
57 | public static NUMBER_PROPERTIES = [
|
58 | 'sortedAt',
|
59 | 'width',
|
60 | 'minWidth',
|
61 | 'maxWidth',
|
62 | 'rowGroupIndex',
|
63 | 'pivotIndex'];
|
64 |
|
65 | public static BOOLEAN_PROPERTIES = [
|
66 | 'suppressCellFlash',
|
67 | 'suppressToolPanel',
|
68 | 'openByDefault',
|
69 | 'marryChildren',
|
70 | 'hide',
|
71 | 'rowGroup',
|
72 | 'pivot',
|
73 | 'checkboxSelection',
|
74 | 'headerCheckboxSelection',
|
75 | 'headerCheckboxSelectionFilteredOnly',
|
76 | 'suppressMenu',
|
77 | 'suppressSorting',
|
78 | 'suppressMovable',
|
79 | 'suppressFilter',
|
80 | 'lockPosition',
|
81 | 'lockVisible',
|
82 | 'lockPinned',
|
83 | 'unSortIcon',
|
84 | 'suppressSizeToFit',
|
85 | 'suppressResize',
|
86 | 'suppressAutoSize',
|
87 | 'enableRowGroup',
|
88 | 'enablePivot',
|
89 | 'enableValue',
|
90 | 'editable',
|
91 | 'suppressPaste',
|
92 | 'suppressNavigable',
|
93 | 'enableCellChangeFlash',
|
94 | 'rowDrag',
|
95 | 'autoHeight'
|
96 | ];
|
97 |
|
98 | public static FUNCTION_PROPERTIES = [
|
99 | 'valueGetter',
|
100 | 'valueSetter',
|
101 | 'filterValueGetter',
|
102 | 'keyCreator',
|
103 | 'cellRenderer',
|
104 | 'cellRendererFramework',
|
105 | 'pinnedRowCellRenderer',
|
106 | 'valueFormatter',
|
107 | 'pinnedRowValueFormatter',
|
108 | 'valueParser',
|
109 | 'comparator',
|
110 | 'equals',
|
111 | 'pivotComparator',
|
112 | 'suppressKeyboardEvent',
|
113 | 'colSpan',
|
114 | 'rowSpan',
|
115 | 'getQuickFilterText',
|
116 | 'newValueHandler',
|
117 | 'onCellValueChanged',
|
118 | 'onCellClicked',
|
119 | 'onCellDoubleClicked',
|
120 | 'onCellContextMenu',
|
121 | 'tooltip',
|
122 | 'cellRendererSelector',
|
123 | 'cellEditorSelector'];
|
124 |
|
125 | public static ALL_PROPERTIES = ColDefUtil.ARRAY_PROPERTIES
|
126 | .concat(ColDefUtil.OBJECT_PROPERTIES)
|
127 | .concat(ColDefUtil.STRING_PROPERTIES)
|
128 | .concat(ColDefUtil.NUMBER_PROPERTIES)
|
129 | .concat(ColDefUtil.FUNCTION_PROPERTIES)
|
130 | .concat(ColDefUtil.BOOLEAN_PROPERTIES);
|
131 |
|
132 |
|
133 |
|
134 | public static FRAMEWORK_PROPERTIES = ['__ob__', '__metadata__', 'mappedColumnProperties', 'hasChildColumns',
|
135 | 'toColDef', 'createColDefFromGridColumn'];
|
136 | }
|