d2coreui 21.0.33 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/clipboard/clipboardUtils.d.ts +4 -3
- package/components/clipboard/clipboardUtils.js +47 -22
- package/components/clipboard/clipboardUtils.js.map +1 -1
- package/components/codemirror/SyntaxHighlighter.d.ts +21 -21
- package/components/codemirror/SyntaxHighlighter.js +45 -44
- package/components/codemirror/SyntaxHighlighter.js.map +1 -1
- package/components/collapse/expandable.d.ts +13 -12
- package/components/collapse/expandable.js +20 -20
- package/components/collapse/expandable.js.map +1 -1
- package/components/color/colorPicker.d.ts +20 -20
- package/components/color/colorPicker.js +53 -53
- package/components/color/colorPicker.js.map +1 -1
- package/components/color/colorSwatch.d.ts +13 -12
- package/components/color/colorSwatch.js +62 -62
- package/components/color/colorSwatch.js.map +1 -1
- package/components/color/colorUtils.d.ts +7 -7
- package/components/color/colorUtils.js +43 -43
- package/components/color/colorUtils.js.map +1 -1
- package/components/date/dateRangeInput.d.ts +66 -64
- package/components/date/dateRangeInput.js +292 -297
- package/components/date/dateRangeInput.js.map +1 -1
- package/components/date/dateRangeInputAdvancedPanel.d.ts +27 -26
- package/components/date/dateRangeInputAdvancedPanel.js +130 -115
- package/components/date/dateRangeInputAdvancedPanel.js.map +1 -1
- package/components/date/dateRangeInputConfirm.d.ts +31 -29
- package/components/date/dateRangeInputConfirm.js +132 -121
- package/components/date/dateRangeInputConfirm.js.map +1 -1
- package/components/date/dateTimeInput.d.ts +72 -69
- package/components/date/dateTimeInput.js +440 -412
- package/components/date/dateTimeInput.js.map +1 -1
- package/components/date/durationInput.d.ts +59 -56
- package/components/date/durationInput.js +269 -280
- package/components/date/durationInput.js.map +1 -1
- package/components/form/NiceFormItem.d.ts +14 -14
- package/components/form/NiceFormItem.js +28 -31
- package/components/form/NiceFormItem.js.map +1 -1
- package/components/grid/cell/beanAccessor.d.ts +9 -0
- package/components/grid/cell/beanAccessor.js +13 -0
- package/components/grid/cell/beanAccessor.js.map +1 -0
- package/components/grid/cell/cellEditorUtils.d.ts +4 -4
- package/components/grid/cell/cellEditorUtils.js +8 -8
- package/components/grid/cell/customEnumCellEditor.d.ts +4 -26
- package/components/grid/cell/customEnumCellEditor.js +82 -91
- package/components/grid/cell/customEnumCellEditor.js.map +1 -1
- package/components/grid/cell/dataGridCellEditorComponent.d.ts +14 -0
- package/components/grid/cell/dataGridCellEditorComponent.js +49 -0
- package/components/grid/cell/dataGridCellEditorComponent.js.map +1 -0
- package/components/grid/cell/dateCellEditor.d.ts +4 -25
- package/components/grid/cell/dateCellEditor.js +53 -72
- package/components/grid/cell/dateCellEditor.js.map +1 -1
- package/components/grid/cell/durationCellEditor.d.ts +4 -24
- package/components/grid/cell/durationCellEditor.js +74 -97
- package/components/grid/cell/durationCellEditor.js.map +1 -1
- package/components/grid/cell/hexaOctetStringCellEditor.d.ts +4 -24
- package/components/grid/cell/hexaOctetStringCellEditor.js +70 -94
- package/components/grid/cell/hexaOctetStringCellEditor.js.map +1 -1
- package/components/grid/cell/hexaValueCellEditor.d.ts +4 -24
- package/components/grid/cell/hexaValueCellEditor.js +65 -89
- package/components/grid/cell/hexaValueCellEditor.js.map +1 -1
- package/components/grid/cell/numberCellEditor.d.ts +4 -27
- package/components/grid/cell/numberCellEditor.js +73 -95
- package/components/grid/cell/numberCellEditor.js.map +1 -1
- package/components/grid/cell/rangeSelector.d.ts +78 -78
- package/components/grid/cell/rangeSelector.js +526 -518
- package/components/grid/cell/rangeSelector.js.map +1 -1
- package/components/grid/cell/simpleStatusTextCellEditor.d.ts +4 -32
- package/components/grid/cell/simpleStatusTextCellEditor.js +106 -116
- package/components/grid/cell/simpleStatusTextCellEditor.js.map +1 -1
- package/components/grid/cell/statusTextCellEditor.d.ts +4 -32
- package/components/grid/cell/statusTextCellEditor.js +136 -159
- package/components/grid/cell/statusTextCellEditor.js.map +1 -1
- package/components/grid/cell/tableDefaultRowStyleRules.d.ts +20 -20
- package/components/grid/cell/tableDefaultRowStyleRules.js +29 -18
- package/components/grid/cell/tableDefaultRowStyleRules.js.map +1 -1
- package/components/grid/cell/textCellEditor.d.ts +4 -21
- package/components/grid/cell/textCellEditor.js +63 -85
- package/components/grid/cell/textCellEditor.js.map +1 -1
- package/components/grid/cell/withAgGridHooks.d.ts +3 -0
- package/components/grid/cell/withAgGridHooks.js +15 -0
- package/components/grid/cell/withAgGridHooks.js.map +1 -0
- package/components/grid/columnUtils.d.ts +5 -5
- package/components/grid/columnUtils.js +26 -26
- package/components/grid/columnUtils.js.map +1 -1
- package/components/grid/config/columnTransfer.d.ts +21 -22
- package/components/grid/config/columnTransfer.js +205 -201
- package/components/grid/config/columnTransfer.js.map +1 -1
- package/components/grid/config/dataGridEditor.d.ts +41 -41
- package/components/grid/config/dataGridEditor.js +181 -160
- package/components/grid/config/dataGridEditor.js.map +1 -1
- package/components/grid/config/rowHeightCalculator.d.ts +8 -0
- package/components/grid/config/rowHeightCalculator.js +20 -0
- package/components/grid/config/rowHeightCalculator.js.map +1 -0
- package/components/grid/config/rowStylePicker.d.ts +27 -25
- package/components/grid/config/rowStylePicker.js +127 -109
- package/components/grid/config/rowStylePicker.js.map +1 -1
- package/components/grid/dataGrid.d.ts +218 -206
- package/components/grid/dataGrid.js +1629 -1538
- package/components/grid/dataGrid.js.map +1 -1
- package/components/grid/detail/detailHeaderPanel.d.ts +13 -13
- package/components/grid/detail/detailHeaderPanel.js +25 -25
- package/components/grid/detail/detailHeaderPanel.js.map +1 -1
- package/components/grid/export/contextMenu.d.ts +18 -24
- package/components/grid/export/contextMenu.js +116 -113
- package/components/grid/export/contextMenu.js.map +1 -1
- package/components/grid/export/progressPopup.d.ts +29 -29
- package/components/grid/export/progressPopup.js +93 -93
- package/components/grid/export/progressPopup.js.map +1 -1
- package/components/grid/export/worker/clipboardExport.d.ts +1 -1
- package/components/grid/export/worker/clipboardExport.js +8 -8
- package/components/grid/export/worker/csvExport.d.ts +1 -1
- package/components/grid/export/worker/csvExport.js +8 -8
- package/components/grid/export/worker/pdfExport.d.ts +1 -1
- package/components/grid/export/worker/pdfExport.js +81 -81
- package/components/grid/export/worker/pdfExport.js.map +1 -1
- package/components/grid/export/worker/txtExport.d.ts +1 -1
- package/components/grid/export/worker/txtExport.js +19 -19
- package/components/grid/extendedDataGrid.d.ts +140 -140
- package/components/grid/extendedDataGrid.js +704 -695
- package/components/grid/extendedDataGrid.js.map +1 -1
- package/components/grid/filter/customColumnFilter.d.ts +5 -21
- package/components/grid/filter/customColumnFilter.js +11 -82
- package/components/grid/filter/customColumnFilter.js.map +1 -1
- package/components/grid/filter/dataGridColumnFilter.d.ts +17 -0
- package/components/grid/filter/dataGridColumnFilter.js +49 -0
- package/components/grid/filter/dataGridColumnFilter.js.map +1 -0
- package/components/grid/filter/dateColumnFilter.d.ts +7 -11
- package/components/grid/filter/dateColumnFilter.js +22 -56
- package/components/grid/filter/dateColumnFilter.js.map +1 -1
- package/components/grid/filter/textColumnFilter.d.ts +8 -20
- package/components/grid/filter/textColumnFilter.js +24 -76
- package/components/grid/filter/textColumnFilter.js.map +1 -1
- package/components/grid/filter/wildcardQuickFilterEngine.d.ts +7 -0
- package/components/grid/filter/wildcardQuickFilterEngine.js +48 -0
- package/components/grid/filter/wildcardQuickFilterEngine.js.map +1 -0
- package/components/grid/header/simpleHeader.d.ts +17 -16
- package/components/grid/header/simpleHeader.js +230 -186
- package/components/grid/header/simpleHeader.js.map +1 -1
- package/components/grid/panel/dataGridPagination.d.ts +16 -16
- package/components/grid/panel/dataGridPagination.js +58 -58
- package/components/grid/panel/dataGridPagination.js.map +1 -1
- package/components/grid/panel/loadingOverlay.d.ts +6 -6
- package/components/grid/panel/loadingOverlay.js +10 -10
- package/components/grid/panel/loadingOverlay.js.map +1 -1
- package/components/grid/panel/noRecordsOverlay.d.ts +6 -6
- package/components/grid/panel/noRecordsOverlay.js +10 -10
- package/components/grid/panel/noRecordsOverlay.js.map +1 -1
- package/components/grid/panel/tablePagination.d.ts +10 -10
- package/components/grid/panel/tablePagination.js +45 -45
- package/components/grid/panel/tablePagination.js.map +1 -1
- package/components/icons/dropdownArrow.d.ts +8 -0
- package/components/icons/dropdownArrow.js +59 -0
- package/components/icons/dropdownArrow.js.map +1 -0
- package/components/icons/undoIcon.d.ts +8 -8
- package/components/icons/undoIcon.js +6 -6
- package/components/input/autoCompleteInput.d.ts +35 -35
- package/components/input/autoCompleteInput.js +122 -121
- package/components/input/autoCompleteInput.js.map +1 -1
- package/components/input/draftUtils.d.ts +4 -4
- package/components/input/draftUtils.js +48 -48
- package/components/input/draftUtils.js.map +1 -1
- package/components/input/draftail.d.ts +1 -1
- package/components/input/draftail.js +1 -1
- package/components/input/hexaFormattedInput.d.ts +16 -16
- package/components/input/hexaFormattedInput.js +54 -54
- package/components/input/hexaFormattedInput.js.map +1 -1
- package/components/input/mask/helpers.d.ts +28 -28
- package/components/input/mask/helpers.js +112 -112
- package/components/input/mask/helpers.js.map +1 -1
- package/components/input/mask/inputMaskCore.d.ts +46 -46
- package/components/input/mask/inputMaskCore.js +278 -278
- package/components/input/mask/inputMaskCore.js.map +1 -1
- package/components/input/mask/pattern.d.ts +20 -20
- package/components/input/mask/pattern.js +78 -78
- package/components/input/mask/pattern.js.map +1 -1
- package/components/input/maskedInput.d.ts +373 -351
- package/components/input/maskedInput.js +224 -224
- package/components/input/maskedInput.js.map +1 -1
- package/components/input/passwordInput.d.ts +9 -9
- package/components/input/passwordInput.js +55 -55
- package/components/input/passwordInput.js.map +1 -1
- package/components/input/simpleAutoComplete.d.ts +12 -12
- package/components/input/simpleAutoComplete.js +41 -43
- package/components/input/simpleAutoComplete.js.map +1 -1
- package/components/input/textarea/extractSpansOfClasses.d.ts +15 -15
- package/components/input/textarea/extractSpansOfClasses.js +96 -96
- package/components/input/textarea/extractSpansOfClasses.js.map +1 -1
- package/components/input/textarea/getRanges.d.ts +1 -1
- package/components/input/textarea/getRanges.js +73 -73
- package/components/input/textarea/getRanges.js.map +1 -1
- package/components/input/textarea/getType.d.ts +1 -1
- package/components/input/textarea/getType.js +26 -26
- package/components/input/textarea/getType.js.map +1 -1
- package/components/input/textarea/highlighedContents.d.ts +6 -6
- package/components/input/textarea/highlighedContents.js +10 -10
- package/components/input/textarea/mentionsWithHighlighting.d.ts +27 -27
- package/components/input/textarea/mentionsWithHighlighting.js +60 -60
- package/components/input/textarea/mentionsWithHighlighting.js.map +1 -1
- package/components/keyboard/keyboardUtils.d.ts +5 -5
- package/components/keyboard/keyboardUtils.js +32 -32
- package/components/modal/draggableModalProvider.d.ts +4 -4
- package/components/modal/draggableModalProvider.js +21 -21
- package/components/modal/draggableModalProvider.js.map +1 -1
- package/components/modal/impl/clamp.d.ts +1 -1
- package/components/modal/impl/clamp.js +1 -1
- package/components/modal/impl/clamp.js.map +1 -1
- package/components/modal/impl/draggableModal.d.ts +12 -12
- package/components/modal/impl/draggableModal.js +17 -17
- package/components/modal/impl/draggableModal.js.map +1 -1
- package/components/modal/impl/draggableModalContext.d.ts +9 -9
- package/components/modal/impl/draggableModalContext.js +2 -2
- package/components/modal/impl/draggableModalContext.js.map +1 -1
- package/components/modal/impl/draggableModalInner.d.ts +15 -13
- package/components/modal/impl/draggableModalInner.js +57 -55
- package/components/modal/impl/draggableModalInner.js.map +1 -1
- package/components/modal/impl/draggableModalReducer.d.ts +66 -62
- package/components/modal/impl/draggableModalReducer.js +77 -78
- package/components/modal/impl/draggableModalReducer.js.map +1 -1
- package/components/modal/impl/getWindowSize.d.ts +4 -4
- package/components/modal/impl/getWindowSize.js +4 -4
- package/components/modal/impl/getWindowSize.js.map +1 -1
- package/components/modal/impl/index.d.ts +3 -3
- package/components/modal/impl/index.js +3 -3
- package/components/modal/impl/index.js.map +1 -1
- package/components/modal/impl/resizeHandle.d.ts +3 -3
- package/components/modal/impl/resizeHandle.js +4 -4
- package/components/modal/impl/resizeHandle.js.map +1 -1
- package/components/modal/impl/useDrag.d.ts +5 -5
- package/components/modal/impl/useDrag.js +42 -42
- package/components/modal/impl/useDrag.js.map +1 -1
- package/components/modal/impl/usePrevious.d.ts +1 -1
- package/components/modal/impl/usePrevious.js +8 -8
- package/components/modal/impl/usePrevious.js.map +1 -1
- package/components/modal/impl/useResize.d.ts +7 -7
- package/components/modal/impl/useResize.js +46 -46
- package/components/modal/impl/useResize.js.map +1 -1
- package/components/modal/modalDialog.d.ts +49 -49
- package/components/modal/modalDialog.js +152 -152
- package/components/modal/modalDialog.js.map +1 -1
- package/components/picker/enumValuePicker.d.ts +16 -16
- package/components/picker/enumValuePicker.js +34 -34
- package/components/picker/enumValuePicker.js.map +1 -1
- package/components/platformSpecific.d.ts +10 -10
- package/components/platformSpecific.js +27 -27
- package/components/scrollTo/onlyText.d.ts +4 -4
- package/components/scrollTo/onlyText.js +30 -30
- package/components/scrollTo/onlyText.js.map +1 -1
- package/components/scrollTo/scrollTo.d.ts +41 -39
- package/components/scrollTo/scrollTo.js +264 -264
- package/components/scrollTo/scrollTo.js.map +1 -1
- package/components/style/withCss.d.ts +9 -0
- package/components/style/withCss.js +6 -0
- package/components/style/withCss.js.map +1 -0
- package/components/style/withInputNumberCss.d.ts +6 -0
- package/components/style/withInputNumberCss.js +13 -0
- package/components/style/withInputNumberCss.js.map +1 -0
- package/components/table/dragSortingTable.d.ts +13 -14
- package/components/table/dragSortingTable.js +96 -82
- package/components/table/dragSortingTable.js.map +1 -1
- package/components/text/impl/innerSize.d.ts +2 -2
- package/components/text/impl/innerSize.js +12 -12
- package/components/text/impl/series.d.ts +1 -1
- package/components/text/impl/series.js +28 -28
- package/components/text/impl/shallowEqual.d.ts +1 -1
- package/components/text/impl/shallowEqual.js +18 -18
- package/components/text/impl/shallowEqual.js.map +1 -1
- package/components/text/impl/uniqueId.d.ts +1 -1
- package/components/text/impl/uniqueId.js +4 -4
- package/components/text/impl/whilst.d.ts +1 -1
- package/components/text/impl/whilst.js +19 -19
- package/components/text/impl/whilst.js.map +1 -1
- package/components/text/textFit.d.ts +38 -38
- package/components/text/textFit.js +165 -168
- package/components/text/textFit.js.map +1 -1
- package/i18n/components.cs.json +101 -100
- package/i18n/components.sk.json +101 -100
- package/i18n/components.uk.json +101 -100
- package/i18n/componentsLocaleHolder.d.ts +3 -3
- package/i18n/componentsLocaleHolder.js +28 -28
- package/i18n/componentsLocaleHolder.js.map +1 -1
- package/package.json +71 -70
- package/style/index.less +274 -298
- package/style/modal/DraggableModal.css +43 -40
- package/style/modal/ResizeHandle.css +27 -19
- package/tsconfig.build.json +24 -24
- package/tsconfig.json +11 -11
- package/components/grid/cell/wildcardQuickFilter.d.ts +0 -11
- package/components/grid/cell/wildcardQuickFilter.js +0 -61
- package/components/grid/cell/wildcardQuickFilter.js.map +0 -1
- package/components/table/dataTable.d.ts +0 -17
- package/components/table/dataTable.js +0 -79
- package/components/table/dataTable.js.map +0 -1
- package/style/antd/antd-tree-showline.css +0 -25
- package/style/antd/full-height-tabs.scss +0 -63
- package/style/draftail/draftail-editor.css +0 -179
- package/style/table/dragSortingTable.css +0 -7
|
@@ -1,206 +1,218 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import '
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
declare const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[cssProperty: string]: string | number | null;
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
private
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
private
|
|
189
|
-
private
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import { MenuProps } from "antd";
|
|
3
|
+
import { AgGridReact } from "ag-grid-react";
|
|
4
|
+
import 'ag-grid-community/styles/ag-grid.css';
|
|
5
|
+
import 'ag-grid-community/styles/ag-theme-balham.css';
|
|
6
|
+
import 'd2coreui/style/ag-grid/aggrid-adaptations.css';
|
|
7
|
+
import { ContextMenuProps, PageOrientation } from "d2coreui/components/grid/export/contextMenu";
|
|
8
|
+
import { CellClassParams, CellFocusedEvent, CellMouseDownEvent, ColDef, Column, ColumnEvent, ColumnState, FilterChangedEvent, FilterModifiedEvent, GridApi, GridOptions, GridReadyEvent, IRowNode, PaginationChangedEvent, RowClassParams, RowPinnedType, RowStyle, ViewportChangedEvent } from "ag-grid-community";
|
|
9
|
+
import { GridRowStyle, RowStyleRule } from "d2coreui/components/grid/cell/tableDefaultRowStyleRules";
|
|
10
|
+
import ProgressPopup from "d2coreui/components/grid/export/progressPopup";
|
|
11
|
+
import WildcardQuickFilterEngine from "./filter/wildcardQuickFilterEngine";
|
|
12
|
+
export declare const EXPORT_SEPARATOR = "\n";
|
|
13
|
+
export type MenuElement = Exclude<Exclude<MenuProps["items"], undefined>[number], null>;
|
|
14
|
+
declare const enum NavigationEventEnum {
|
|
15
|
+
KEYBOARD = 0,
|
|
16
|
+
MOUSE = 1
|
|
17
|
+
}
|
|
18
|
+
export interface DataGridViewportChangedEvent extends ViewportChangedEvent {
|
|
19
|
+
rowsScrollingDelta: number;
|
|
20
|
+
}
|
|
21
|
+
export type SortMode = "asc" | "desc";
|
|
22
|
+
export interface SortItem {
|
|
23
|
+
colId: string;
|
|
24
|
+
sort: SortMode;
|
|
25
|
+
}
|
|
26
|
+
export type FilterRenderer = (value: string, changeValue: (newValue: string) => void, onSearch: () => void) => React.ReactNode;
|
|
27
|
+
export interface DataGridColDef extends Omit<ColDef, "cellStyle"> {
|
|
28
|
+
group: string;
|
|
29
|
+
context?: any;
|
|
30
|
+
cellStyle?: {
|
|
31
|
+
[cssProperty: string]: string | number | null;
|
|
32
|
+
} | ((cellClassParams: CellClassParams) => {
|
|
33
|
+
[cssProperty: string]: string | number | null;
|
|
34
|
+
} | undefined);
|
|
35
|
+
renderFilter?: FilterRenderer;
|
|
36
|
+
}
|
|
37
|
+
export interface DataGridFilterProps {
|
|
38
|
+
columnSearchVisible?: boolean;
|
|
39
|
+
onColumnSearchVisible?: (visible: boolean) => void;
|
|
40
|
+
getFilterModel?(): any;
|
|
41
|
+
onFilterChanged?(event: FilterChangedEvent): void;
|
|
42
|
+
onFilterModified?(event: FilterModifiedEvent): void;
|
|
43
|
+
onFilterConfirmed?(): void;
|
|
44
|
+
}
|
|
45
|
+
export interface DataGridSearchProps {
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
searchString?: string;
|
|
48
|
+
searchHistory?: string[];
|
|
49
|
+
searchButtonClassName?: string;
|
|
50
|
+
searchButtonDisabled?: boolean;
|
|
51
|
+
hidden?: boolean;
|
|
52
|
+
searchRenderer?(): React.ReactNode;
|
|
53
|
+
inputReadonly?: boolean;
|
|
54
|
+
stringFormatter?(rawString: string): string;
|
|
55
|
+
onChange?(searchString: string): void;
|
|
56
|
+
onSearch?(): void;
|
|
57
|
+
}
|
|
58
|
+
export type OnLoadDataCallback = (totalRecords: number) => void;
|
|
59
|
+
export interface DataGridProps extends Omit<GridOptions, "columnDefs" | "paginationPageSize" | "getRowStyle" | "cellStyle"> {
|
|
60
|
+
gridOptions?: GridOptions;
|
|
61
|
+
columnDefs: DataGridColDef[];
|
|
62
|
+
disableColumnDefsPreprocessing?: boolean;
|
|
63
|
+
onColumnDefsAdapted?(columnDefs: ColDef[]): void;
|
|
64
|
+
tableConfigVisible?: boolean;
|
|
65
|
+
columnsConfigVisible?: boolean;
|
|
66
|
+
panelStyle?: React.CSSProperties;
|
|
67
|
+
tablePanelStyle?: React.CSSProperties;
|
|
68
|
+
filter?: DataGridFilterProps;
|
|
69
|
+
search?: DataGridSearchProps;
|
|
70
|
+
paging: {
|
|
71
|
+
pageSize: number;
|
|
72
|
+
defaultPageSize?: number;
|
|
73
|
+
onPaginationChanged?: (currentPageSize: number | null, definedPageSize: number) => void;
|
|
74
|
+
};
|
|
75
|
+
rowDataManualMode?: boolean;
|
|
76
|
+
onLoadData(callback: OnLoadDataCallback): void;
|
|
77
|
+
autofocus?: boolean;
|
|
78
|
+
onKeyPressed?(event: KeyboardEvent): void;
|
|
79
|
+
onEnter?: () => void;
|
|
80
|
+
selectedIds?: (number | string)[];
|
|
81
|
+
rowStyleRules: RowStyleRule[];
|
|
82
|
+
defaultRowStyleRules?: RowStyleRule[];
|
|
83
|
+
onChangeRowStyleRules?(rowStyleRules: RowStyleRule[]): void;
|
|
84
|
+
toolbar?: {
|
|
85
|
+
renderToolbar?(originalSearchBar: ReactElement): ReactElement;
|
|
86
|
+
toolbarButtons?: ReactElement;
|
|
87
|
+
hideRecordCount?: boolean;
|
|
88
|
+
};
|
|
89
|
+
onRowHeightChanged?(rowHeight: number): void;
|
|
90
|
+
onColumnsChanged?(columnModel: ColumnState[], event: ColumnEvent): void;
|
|
91
|
+
onTableConfigVisible?(visible: boolean): void;
|
|
92
|
+
onColumnsConfigVisible?(visible: boolean): void;
|
|
93
|
+
loadingOverlayRenderer?(): ReactElement | null;
|
|
94
|
+
noRecordsOverlayRenderer?(): ReactElement | null;
|
|
95
|
+
tableOverlayRenderer?(): ReactElement | null;
|
|
96
|
+
showMilliseconds?: boolean;
|
|
97
|
+
defaultShowMilliseconds?: boolean;
|
|
98
|
+
onShowMilliseconds?(show: boolean, callback: () => void): void;
|
|
99
|
+
hideYear?: boolean;
|
|
100
|
+
defaultHideYear?: boolean;
|
|
101
|
+
onShowYear?(show: boolean, callback: () => void): void;
|
|
102
|
+
exportMenu?: {
|
|
103
|
+
renderer?(menuElements: MenuElement[]): MenuElement[];
|
|
104
|
+
onClick?(key: string): void;
|
|
105
|
+
};
|
|
106
|
+
settingsMenu?: {
|
|
107
|
+
renderer?(menuElements: MenuElement[]): MenuElement[];
|
|
108
|
+
onClick?(key: string): void;
|
|
109
|
+
};
|
|
110
|
+
contextMenu?: {
|
|
111
|
+
renderer?(menuElements: MenuElement[]): MenuElement[];
|
|
112
|
+
onClick?(key: string): void;
|
|
113
|
+
};
|
|
114
|
+
getRowStyle?(params: any): GridRowStyle | undefined;
|
|
115
|
+
gridRef?: React.RefObject<AgGridReact>;
|
|
116
|
+
}
|
|
117
|
+
interface DataGridState {
|
|
118
|
+
pageIndex: number;
|
|
119
|
+
pageSize: number | null;
|
|
120
|
+
recordsCount?: number;
|
|
121
|
+
columnModel: ColumnState[];
|
|
122
|
+
sortModel: SortItem[];
|
|
123
|
+
tableConfigVisible: boolean;
|
|
124
|
+
columnsConfigVisible: boolean;
|
|
125
|
+
fontSize: number;
|
|
126
|
+
rowHeight: number;
|
|
127
|
+
viewport: [number, number];
|
|
128
|
+
contextMenuVisible: boolean;
|
|
129
|
+
firstLoadDone: boolean;
|
|
130
|
+
loading: boolean;
|
|
131
|
+
columnTransferHeight: number;
|
|
132
|
+
pageOrientation: PageOrientation;
|
|
133
|
+
exporting: boolean;
|
|
134
|
+
}
|
|
135
|
+
export default class DataGrid extends React.Component<DataGridProps, DataGridState> {
|
|
136
|
+
static defaultProps: {
|
|
137
|
+
paging: {
|
|
138
|
+
pageSize: number;
|
|
139
|
+
defaultPageSize: number;
|
|
140
|
+
};
|
|
141
|
+
rowStyleRules: RowStyleRule[];
|
|
142
|
+
};
|
|
143
|
+
wildcardQuickFilter: WildcardQuickFilterEngine;
|
|
144
|
+
columnTypes: {
|
|
145
|
+
[key: string]: ColDef;
|
|
146
|
+
};
|
|
147
|
+
gridApi?: GridApi;
|
|
148
|
+
columnModelBeforeEdit?: ColumnState[];
|
|
149
|
+
indexToJump: number | null;
|
|
150
|
+
columnToJump: Column | null;
|
|
151
|
+
lastCellFocus?: CellFocusedEvent;
|
|
152
|
+
lastNavigationEvent?: NavigationEventEnum;
|
|
153
|
+
lastPaginationEvent?: PaginationChangedEvent | null;
|
|
154
|
+
table_context: any;
|
|
155
|
+
private wrappingDiv;
|
|
156
|
+
constructor(props: Readonly<DataGridProps>);
|
|
157
|
+
private static getCellValue;
|
|
158
|
+
textCustomComparator(filter: string, value: any, filterText: string): boolean;
|
|
159
|
+
componentDidUpdate(prevProps: DataGridProps): void;
|
|
160
|
+
setColumnState(columnModel: ColumnState[]): void;
|
|
161
|
+
setSortModel(sortModel: SortItem[]): void;
|
|
162
|
+
getSortModel(): SortItem[];
|
|
163
|
+
updateRowHeight(): void;
|
|
164
|
+
calculateRowAndFontHeight(rowStyleRules?: RowStyleRule[]): {
|
|
165
|
+
fontSize: number;
|
|
166
|
+
rowHeight: number;
|
|
167
|
+
};
|
|
168
|
+
static getDerivedStateFromProps(props: DataGridProps, state: DataGridState): Partial<DataGridState>;
|
|
169
|
+
onGridReady(gridReadyEvent: GridReadyEvent): void;
|
|
170
|
+
onPaginationChanged(event: PaginationChangedEvent): void;
|
|
171
|
+
onViewportChanged(event: ViewportChangedEvent): void;
|
|
172
|
+
changePagination(pageSize: number): void;
|
|
173
|
+
showMilliseconds(showMilis: boolean): void;
|
|
174
|
+
showYear(showYear: boolean): void;
|
|
175
|
+
changeRowHeight(fontSize: number, rowHeight: number): void;
|
|
176
|
+
onGoToPage(pageIndex: number): void;
|
|
177
|
+
loadData(callback?: () => void): void;
|
|
178
|
+
focus(): void;
|
|
179
|
+
isActive(): boolean;
|
|
180
|
+
onColumnsChanged(event: ColumnEvent): void;
|
|
181
|
+
setColumnSearchVisible(visible: boolean): void;
|
|
182
|
+
private onFilterModified;
|
|
183
|
+
private onFilterChanged;
|
|
184
|
+
private onFilterConfirmed;
|
|
185
|
+
private onSortChanged;
|
|
186
|
+
showTableConfiguration(show: boolean): void;
|
|
187
|
+
showColumnsConfig(show: boolean): void;
|
|
188
|
+
private navigateToNextCell;
|
|
189
|
+
private suppressKeyboardEvent;
|
|
190
|
+
getValue(column: Column, row: IRowNode, doNotReplaceNewline?: boolean): string;
|
|
191
|
+
getExportContent(progressPopup: ProgressPopup | null, props: ContextMenuProps): Promise<string[][]>;
|
|
192
|
+
onCellFocused(event: CellFocusedEvent): void;
|
|
193
|
+
onCellMouseDown(e: CellMouseDownEvent): void;
|
|
194
|
+
setFocusedCellDebounced(rowIndex: number, column: string | Column, rowPinned: RowPinnedType): void;
|
|
195
|
+
private onCellContextMenu;
|
|
196
|
+
private loadingOverlayRenderer;
|
|
197
|
+
private noRecordsOverlayRenderer;
|
|
198
|
+
setRowData(dataArray: any[]): void;
|
|
199
|
+
private onRowDataUpdated;
|
|
200
|
+
private static EMPTY_STYLE;
|
|
201
|
+
_getRowStyle(params: RowClassParams): RowStyle;
|
|
202
|
+
_getRowHeight(): number;
|
|
203
|
+
_getCellStyle(params: {
|
|
204
|
+
colDef: ColDef;
|
|
205
|
+
}): {
|
|
206
|
+
[key: string]: any;
|
|
207
|
+
};
|
|
208
|
+
getDefaultColDefinition(colDef: ColDef | undefined): ColDef;
|
|
209
|
+
private getCustomComponents;
|
|
210
|
+
private onPageOrientationChange;
|
|
211
|
+
private onExport;
|
|
212
|
+
renderNavigationPanel(): ReactElement;
|
|
213
|
+
renderToolBarWithSearch(): ReactElement;
|
|
214
|
+
getSettingsMenu(): MenuProps;
|
|
215
|
+
private getAdaptedColumnDefs;
|
|
216
|
+
render(): React.JSX.Element;
|
|
217
|
+
}
|
|
218
|
+
export {};
|