@refinitiv-ui/efx-grid 6.0.2 → 6.0.5

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.
Files changed (203) hide show
  1. package/lib/column-dragging/es6/ColumnDragging.d.ts +49 -0
  2. package/lib/column-dragging/es6/ColumnDragging.js +764 -0
  3. package/lib/column-dragging/es6/index.d.ts +1 -0
  4. package/lib/column-dragging/es6/index.js +1 -0
  5. package/lib/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
  6. package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
  7. package/lib/column-selection-dialog/lib/column-selection-dialog.js +146 -5
  8. package/lib/core/dist/core.css +1 -1
  9. package/lib/core/dist/core.js +468 -1092
  10. package/lib/core/dist/core.min.js +1 -1
  11. package/lib/core/es6/data/ColumnStats.d.ts +2 -2
  12. package/lib/core/es6/data/DataCache.d.ts +4 -4
  13. package/lib/core/es6/data/DataTable.d.ts +5 -5
  14. package/lib/core/es6/data/DataTable.js +33 -11
  15. package/lib/core/es6/data/DataView.d.ts +12 -18
  16. package/lib/core/es6/data/DataView.js +0 -4
  17. package/lib/core/es6/data/Segment.d.ts +2 -0
  18. package/lib/core/es6/data/Segment.js +7 -0
  19. package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
  20. package/lib/core/es6/data/WrappedView.d.ts +13 -13
  21. package/lib/core/es6/data/WrappedView.js +6 -6
  22. package/lib/core/es6/grid/Core.d.ts +31 -27
  23. package/lib/core/es6/grid/Core.js +47 -11
  24. package/lib/core/es6/grid/ILayoutGrid.d.ts +15 -15
  25. package/lib/core/es6/grid/LayoutGrid.js +54 -26
  26. package/lib/core/es6/grid/VirtualizedLayoutGrid.js +71 -0
  27. package/lib/core/es6/grid/components/Cell.d.ts +4 -4
  28. package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +1 -1
  29. package/lib/core/es6/grid/components/CellSpans.d.ts +8 -8
  30. package/lib/core/es6/grid/components/Column.d.ts +1 -1
  31. package/lib/core/es6/grid/components/ElementWrapper.d.ts +6 -6
  32. package/lib/core/es6/grid/components/Scrollbar.d.ts +3 -1
  33. package/lib/core/es6/grid/components/Scrollbar.js +13 -0
  34. package/lib/core/es6/grid/components/StretchedCells.js +2 -2
  35. package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  36. package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +147 -81
  37. package/lib/core/es6/grid/util/Conflator.d.ts +2 -2
  38. package/lib/core/es6/grid/util/ElementFrameWork.d.ts +3 -3
  39. package/lib/core/es6/grid/util/HttpRequest.d.ts +2 -2
  40. package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +1 -1
  41. package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
  42. package/lib/core/es6/grid/util/SectionSettings.d.ts +5 -5
  43. package/lib/core/es6/grid/util/SectionSettings.js +5 -0
  44. package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
  45. package/lib/core/es6/grid/util/TrackLayout.d.ts +7 -3
  46. package/lib/core/es6/grid/util/TrackLayout.js +27 -0
  47. package/lib/core/es6/grid/util/util.d.ts +2 -2
  48. package/lib/core/es6/index.d.ts +1 -5
  49. package/lib/core/es6/index.js +1 -7
  50. package/lib/core/es6/tr-grid-theme.js +1 -1
  51. package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
  52. package/lib/filter-dialog/lib/filter-dialog.d.ts +14 -1
  53. package/lib/filter-dialog/lib/filter-dialog.js +86 -26
  54. package/lib/filter-dialog/themes/base-checkbox.less +8 -1
  55. package/lib/filter-dialog/themes/base.less +69 -1
  56. package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
  57. package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
  58. package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
  59. package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
  60. package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
  61. package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
  62. package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
  63. package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
  64. package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
  65. package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
  66. package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
  67. package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
  68. package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
  69. package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
  70. package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
  71. package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
  72. package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
  73. package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
  74. package/lib/grid/lib/efx-grid.d.ts +25 -10
  75. package/lib/grid/lib/efx-grid.js +22 -56
  76. package/lib/grid/themes/base.less +1 -1
  77. package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
  78. package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
  79. package/lib/grid/themes/halo/efx-grid.less +33 -39
  80. package/lib/grid/themes/halo/light/efx-grid.js +1 -1
  81. package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
  82. package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
  83. package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
  84. package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
  85. package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
  86. package/lib/index.d.ts +2 -0
  87. package/lib/index.js +2 -0
  88. package/lib/row-segmenting/es6/RowSegmenting.d.ts +7 -2
  89. package/lib/row-segmenting/es6/RowSegmenting.js +98 -11
  90. package/lib/rt-grid/dist/rt-grid.js +1244 -1249
  91. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  92. package/lib/rt-grid/es6/ColumnDefinition.d.ts +5 -3
  93. package/lib/rt-grid/es6/ColumnDefinition.js +17 -108
  94. package/lib/rt-grid/es6/DataConnector.d.ts +3 -3
  95. package/lib/rt-grid/es6/Grid.d.ts +24 -9
  96. package/lib/rt-grid/es6/Grid.js +285 -103
  97. package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
  98. package/lib/rt-grid/es6/RowDefSorter.js +137 -0
  99. package/lib/rt-grid/es6/RowDefinition.d.ts +9 -7
  100. package/lib/rt-grid/es6/RowDefinition.js +6 -0
  101. package/lib/rt-grid/es6/SnapshotFiller.d.ts +6 -1
  102. package/lib/rt-grid/es6/SnapshotFiller.js +144 -15
  103. package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -3
  104. package/lib/tr-grid-checkbox/es6/Checkbox.js +51 -21
  105. package/lib/tr-grid-column-selection/es6/ColumnSelection.js +46 -9
  106. package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +8 -4
  107. package/lib/tr-grid-column-stack/es6/ColumnStack.js +240 -125
  108. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +4 -3
  109. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +28 -13
  110. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +8 -5
  111. package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +106 -3
  112. package/lib/tr-grid-percent-bar/es6/PercentBar.js +1 -1
  113. package/lib/tr-grid-printer/es6/CellWriter.d.ts +3 -3
  114. package/lib/tr-grid-printer/es6/GridPrinter.d.ts +1 -1
  115. package/lib/tr-grid-printer/es6/GridPrinter.js +26 -13
  116. package/lib/tr-grid-printer/es6/PrintTrait.d.ts +2 -2
  117. package/lib/tr-grid-printer/es6/SectionWriter.d.ts +3 -3
  118. package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +3 -4
  119. package/lib/tr-grid-row-dragging/es6/RowDragging.js +86 -195
  120. package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +7 -2
  121. package/lib/tr-grid-row-grouping/es6/RowGrouping.js +97 -7
  122. package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +8 -8
  123. package/lib/tr-grid-row-selection/es6/RowSelection.js +55 -31
  124. package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
  125. package/lib/tr-grid-textformatting/es6/TextFormatting.js +12 -0
  126. package/lib/tr-grid-util/es6/CellPainter.js +1 -1
  127. package/lib/tr-grid-util/es6/DragUI.d.ts +16 -0
  128. package/lib/tr-grid-util/es6/DragUI.js +214 -0
  129. package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -0
  130. package/lib/tr-grid-util/es6/ElementObserver.js +32 -2
  131. package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -1
  132. package/lib/tr-grid-util/es6/ElfUtil.js +131 -28
  133. package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
  134. package/lib/tr-grid-util/es6/FieldFormatter.js +7 -5
  135. package/lib/tr-grid-util/es6/GridPlugin.js +8 -4
  136. package/lib/tr-grid-util/es6/MultiTableManager.d.ts +8 -0
  137. package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
  138. package/lib/tr-grid-util/es6/NumberFormatter.d.ts +2 -0
  139. package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
  140. package/lib/tr-grid-util/es6/RowPainter.js +57 -19
  141. package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
  142. package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
  143. package/lib/types/es6/Checkbox.d.ts +4 -3
  144. package/lib/types/es6/ColumnStack.d.ts +8 -4
  145. package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +3 -2
  146. package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +2 -1
  147. package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +20 -18
  148. package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +2 -1
  149. package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +3 -2
  150. package/lib/types/es6/CompositeGrid/Plugin.d.ts +28 -0
  151. package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
  152. package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +5 -4
  153. package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +2 -1
  154. package/lib/types/es6/CompositeGrid/index.d.ts +9 -9
  155. package/lib/types/es6/ConditionalColoring.d.ts +4 -3
  156. package/lib/types/es6/Core/data/ColumnStats.d.ts +2 -2
  157. package/lib/types/es6/Core/data/DataCache.d.ts +4 -4
  158. package/lib/types/es6/Core/data/DataTable.d.ts +5 -5
  159. package/lib/types/es6/Core/data/DataView.d.ts +12 -18
  160. package/lib/types/es6/Core/data/Segment.d.ts +2 -0
  161. package/lib/types/es6/Core/data/SegmentCollection.d.ts +3 -3
  162. package/lib/types/es6/Core/data/WrappedView.d.ts +13 -13
  163. package/lib/types/es6/Core/grid/Core.d.ts +31 -27
  164. package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +15 -15
  165. package/lib/types/es6/Core/grid/components/Cell.d.ts +4 -4
  166. package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +1 -1
  167. package/lib/types/es6/Core/grid/components/CellSpans.d.ts +8 -8
  168. package/lib/types/es6/Core/grid/components/Column.d.ts +1 -1
  169. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +6 -6
  170. package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +3 -1
  171. package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +14 -6
  172. package/lib/types/es6/Core/grid/util/Conflator.d.ts +2 -2
  173. package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +3 -3
  174. package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +2 -2
  175. package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +1 -1
  176. package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
  177. package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +5 -5
  178. package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
  179. package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +7 -3
  180. package/lib/types/es6/Core/grid/util/util.d.ts +2 -2
  181. package/lib/types/es6/Core/index.d.ts +1 -5
  182. package/lib/types/es6/ExtensionOptions.d.ts +2 -0
  183. package/lib/types/es6/InCellEditing.d.ts +8 -5
  184. package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +5 -3
  185. package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +3 -3
  186. package/lib/types/es6/RealtimeGrid/Grid.d.ts +24 -9
  187. package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
  188. package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +9 -7
  189. package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +6 -1
  190. package/lib/types/es6/RowDragging.d.ts +3 -4
  191. package/lib/types/es6/RowGrouping.d.ts +7 -2
  192. package/lib/types/es6/RowSegmenting.d.ts +7 -2
  193. package/lib/types/es6/RowSelection.d.ts +8 -8
  194. package/lib/types/es6/TextFormatting.d.ts +1 -1
  195. package/lib/types/es6/index.d.ts +1 -0
  196. package/lib/versions.json +17 -16
  197. package/package.json +1 -1
  198. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  199. package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +0 -615
  200. package/lib/core/es6/grid/plugins/Plugin.d.ts +0 -28
  201. package/lib/core/es6/grid/plugins/Plugin.js +0 -272
  202. package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
  203. package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +0 -28
@@ -62,9 +62,7 @@ declare class ColumnDefinition {
62
62
 
63
63
  public getRenderer(): ((...params: any[]) => any);
64
64
 
65
- public getHeaderRenderer(): ((...params: any[]) => any);
66
-
67
- public getSorter(): ((...params: any[]) => any);
65
+ public getHeaderRenderer(): ((...params: any[]) => any)|null;
68
66
 
69
67
  public getName(): string;
70
68
 
@@ -128,8 +126,12 @@ declare class ColumnDefinition {
128
126
 
129
127
  public activateRenderer(id?: string, func?: ((...params: any[]) => any)): boolean;
130
128
 
129
+ public getSorter(): ((...params: any[]) => any)|null;
130
+
131
131
  public setSorter(func?: ColumnDefinition.SortLogic): void;
132
132
 
133
+ public isRowSorting(): boolean;
134
+
133
135
  public setName(str: string): void;
134
136
 
135
137
  public getUserModel(): any;
@@ -105,16 +105,12 @@ var _toAlignment = function(str) {
105
105
  var ColumnDefinition = function(columnOption, hostGrid) {
106
106
  this._defaultRenderer = this._defaultRenderer.bind(this);
107
107
  this._customRenderer = this._customRenderer.bind(this);
108
- this._defaultSorter = this._defaultSorter.bind(this);
109
- this._dataSorter = this._dataSorter.bind(this);
110
- this._rowDefSorter = this._rowDefSorter.bind(this);
111
108
 
112
109
  this._id = "" + ColumnDefinition._runningId++;
113
110
  this._internalRenderer = this._defaultRenderer;
114
111
  this._internalSorter = this._defaultSorter;
115
112
 
116
113
  this._eventArg = {"colDef": this}; // WARNING: Circular reference
117
- this._sortContext = {"colDef": this};
118
114
  if(hostGrid) {
119
115
  this._updateContext("grid", hostGrid);
120
116
  this._updateContext("core", hostGrid["getCoreGrid"]()); // TODO: Handle multiple core grids
@@ -183,15 +179,6 @@ ColumnDefinition.prototype._activatedRenderer = null;
183
179
  * @private
184
180
  */
185
181
  ColumnDefinition.prototype._rendererMap = null;
186
- /** @type {!Function}
187
- * @private
188
- */
189
- ColumnDefinition.prototype._internalSorter;
190
- /** Workaround to provide user a context during the sorting process
191
- * @type {Object}
192
- * @private
193
- */
194
- ColumnDefinition.prototype._sortContext = null;
195
182
  /** @type {Function}
196
183
  * @private
197
184
  */
@@ -437,25 +424,6 @@ ColumnDefinition.prototype.getRenderer = function() {
437
424
  ColumnDefinition.prototype.getHeaderRenderer = function() {
438
425
  return this._headerRenderer;
439
426
  };
440
- /** @public
441
- * @return {!Function}
442
- */
443
- ColumnDefinition.prototype.getSorter = function() {
444
- return this._internalSorter;
445
- };
446
- /** Internal method for preparing sort context
447
- * @public
448
- * @ignore
449
- * @param {number} colIndex
450
- * @return {!Function}
451
- */
452
- ColumnDefinition.prototype._prepareSortContext = function(colIndex) {
453
- // TODO: Context does not get updated when column is moved or removed
454
- this._sortContext["colIndex"] = colIndex;
455
- this._sortContext["field"] = this._field;
456
-
457
- return this._internalSorter;
458
- };
459
427
 
460
428
  /** @public
461
429
  * @return {string}
@@ -853,21 +821,27 @@ ColumnDefinition.prototype.activateRenderer = function(id, func) {
853
821
  this.setRenderer(renderer);
854
822
  return this._activatedRenderer ? true : false;
855
823
  };
824
+
825
+ /** @public
826
+ * @return {Function}
827
+ */
828
+ ColumnDefinition.prototype.getSorter = function() {
829
+ return this._userSorter;
830
+ };
856
831
  /** @public
857
832
  * @param {ColumnDefinition~SortLogic=} func
858
833
  */
859
834
  ColumnDefinition.prototype.setSorter = function(func) {
860
- if(typeof func === "function") {
861
- this._userSorter = func;
862
- if(this._rowSorting == null) {
863
- this._internalSorter = this._realTimeField ? this._dataSorter : this._rowDefSorter;
864
- } else {
865
- this._internalSorter = !this._rowSorting ? this._dataSorter : this._rowDefSorter;
866
- }
867
- } else {
868
- this._userSorter = null;
869
- this._internalSorter = this._defaultSorter;
835
+ this._userSorter = (typeof func === "function") ? func : null;
836
+ };
837
+ /** @public
838
+ * @return {boolean}
839
+ */
840
+ ColumnDefinition.prototype.isRowSorting = function() {
841
+ if(this._rowSorting == null) {
842
+ return !this._realTimeField;
870
843
  }
844
+ return this._rowSorting ? true : false;
871
845
  };
872
846
 
873
847
  /** To allow user change column name in run-time (language change or localization)
@@ -986,78 +960,13 @@ ColumnDefinition.prototype._customRenderer = function(e) {
986
960
  }
987
961
  }
988
962
  };
989
- /** @private
990
- * @param {RowDefinition} rowDefA
991
- * @param {RowDefinition} rowDefB
992
- * @param {number} order
993
- * @return {number}
994
- */
995
- ColumnDefinition.prototype._defaultSorter = function(rowDefA, rowDefB, order) {
996
- var orderA = rowDefA.getGroupOrder();
997
- var orderB = rowDefB.getGroupOrder();
998
- if(orderA !== orderB) {
999
- return orderA - orderB; // Regardless of sort order
1000
- }
1001
-
1002
- var a = rowDefA.getData(this._field);
1003
- var b = rowDefB.getData(this._field);
1004
-
1005
- if(a == null || a !== a) {
1006
- if(b == null || b !== b) {
1007
- return 0;
1008
- }
1009
- return 1;
1010
- }
1011
- if(b == null || b !== b) {
1012
- return -1;
1013
- }
1014
-
1015
- if(a < b) {
1016
- return -order;
1017
- }
1018
- if(b < a) {
1019
- return order;
1020
- }
1021
- return 0;
1022
- };
1023
- /** @private
1024
- * @param {RowDefinition} rowDefA
1025
- * @param {RowDefinition} rowDefB
1026
- * @param {number} order
1027
- * @return {number}
1028
- */
1029
- ColumnDefinition.prototype._dataSorter = function(rowDefA, rowDefB, order) {
1030
- var orderA = rowDefA.getGroupOrder();
1031
- var orderB = rowDefB.getGroupOrder();
1032
- if(orderA !== orderB) {
1033
- return orderA - orderB; // Regardless of sort order
1034
- }
1035
963
 
1036
- var a = rowDefA.getData(this._field);
1037
- var b = rowDefB.getData(this._field);
1038
- return this._userSorter(a, b, order, this._sortContext);
1039
- };
1040
- /** @private
1041
- * @param {RowDefinition} rowDefA
1042
- * @param {RowDefinition} rowDefB
1043
- * @param {number} order
1044
- * @return {number}
1045
- */
1046
- ColumnDefinition.prototype._rowDefSorter = function(rowDefA, rowDefB, order) {
1047
- var orderA = rowDefA.getGroupOrder();
1048
- var orderB = rowDefB.getGroupOrder();
1049
- if(orderA !== orderB) {
1050
- return orderA - orderB; // Regardless of sort order
1051
- }
1052
-
1053
- return this._userSorter(rowDefA, rowDefB, order, this._sortContext);
1054
- };
1055
964
  /** @private
1056
965
  * @param {string} propName
1057
966
  * @param {*} val
1058
967
  */
1059
968
  ColumnDefinition.prototype._updateContext = function(propName, val) {
1060
- this._eventArg[propName] = this._sortContext[propName] = val;
969
+ this._eventArg[propName] = val;
1061
970
  };
1062
971
 
1063
972
  /** @public
@@ -9,13 +9,13 @@ declare class DataConnector extends EventDispatcher {
9
9
 
10
10
  constructor();
11
11
 
12
- public getAllRics(): (string)[];
12
+ public getAllRics(): (string)[]|null;
13
13
 
14
- public getAllRowDefs(): (RowDefinition)[];
14
+ public getAllRowDefs(): (RowDefinition)[]|null;
15
15
 
16
16
  public getAllFields(): (string)[];
17
17
 
18
- public getRowDefByRic(ric: string): (RowDefinition)[];
18
+ public getRowDefByRic(ric: string): (RowDefinition)[]|null;
19
19
 
20
20
  public addRic(rowDef: RowDefinition): boolean;
21
21
 
@@ -12,10 +12,10 @@ import SnapshotFiller from "./SnapshotFiller.js";
12
12
  import StyleLoader from "./StyleLoader.js";
13
13
  import FieldDefinition from "./FieldDefinition.js";
14
14
  import DataConnector from "./DataConnector.js";
15
+ import RowDefSorter from "./RowDefSorter.js";
15
16
 
16
17
  import { Core } from "../../core/es6/grid/Core.js";
17
18
  import { SortableTitlePlugin } from "../../core/es6/grid/plugins/SortableTitlePlugin.js";
18
- import { DragAndDropTitlePlugin } from "../../core/es6/grid/plugins/DragAndDropTitlePlugin.js";
19
19
  import { DataCache } from "../../core/es6/data/DataCache.js";
20
20
  import { DataTable } from "../../core/es6/data/DataTable.js";
21
21
  import { DataView } from "../../core/es6/data/DataView.js";
@@ -30,6 +30,10 @@ declare namespace Grid {
30
30
  debug?: boolean
31
31
  };
32
32
 
33
+ type ADCOptions = {
34
+ productId?: string
35
+ };
36
+
33
37
  type GridOptions = {
34
38
  columns?: (ColumnDefinition.Options|string)[],
35
39
  defaultColumnOptions?: ColumnDefinition.Options,
@@ -63,6 +67,7 @@ declare namespace Grid {
63
67
  verticalLines?: boolean,
64
68
  horizontalLines?: boolean,
65
69
  RTK?: any,
70
+ ADC?: Grid.ADCOptions,
66
71
  synapse?: Grid.SynapseConfig,
67
72
  contentRightPadding?: number,
68
73
  contentBottomPadding?: number,
@@ -71,7 +76,9 @@ declare namespace Grid {
71
76
  autoDateConversion?: boolean,
72
77
  textSelect?: boolean,
73
78
  lang?: string,
74
- scrollbarParent?: Element
79
+ scrollbarParent?: Element,
80
+ formulaEngine?: boolean,
81
+ adcPollingInterval?: number
75
82
  };
76
83
 
77
84
  type RowReference = number|string|RowDefinition;
@@ -86,7 +93,7 @@ declare class Grid extends EventDispatcher {
86
93
 
87
94
  public dispose(): void;
88
95
 
89
- public getElement(): Element;
96
+ public getElement(): Element|null;
90
97
 
91
98
  public removeEventListeners(): void;
92
99
 
@@ -108,14 +115,18 @@ declare class Grid extends EventDispatcher {
108
115
 
109
116
  public getRelativePosition(obj: ElementWrapper|Element|Event|MouseEvent): any;
110
117
 
111
- public getCoreGrid(): Core;
118
+ public getCoreGrid(): Core|null;
112
119
 
113
120
  public initialize(gridOption?: Grid.GridOptions): void;
114
121
 
115
122
  public getConfigObject(gridOptions?: any): any;
116
123
 
124
+ public setLocale(lang: string): void;
125
+
117
126
  public insertColumn(columnOption: ColumnDefinition.Options|string, idx?: number): void;
118
127
 
128
+ public replaceColumn(columnOption: ColumnDefinition.Options|string, colRef: Grid.ColumnReference): void;
129
+
119
130
  public setColumns(columns: (any)[]): void;
120
131
 
121
132
  public setFields(ary: (string)[]): void;
@@ -160,9 +171,9 @@ declare class Grid extends EventDispatcher {
160
171
 
161
172
  public updateDataSet(records: (any)[], rowIdentifier: string): void;
162
173
 
163
- public removeRow(rowRef: Grid.RowReference): RowDefinition;
174
+ public removeRow(rowRef: Grid.RowReference): RowDefinition|null;
164
175
 
165
- public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[];
176
+ public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[]|null;
166
177
 
167
178
  public removeAllRows(): void;
168
179
 
@@ -194,9 +205,9 @@ declare class Grid extends EventDispatcher {
194
205
 
195
206
  public getColumnDataType(colIndex: number): string;
196
207
 
197
- public getColumnDefinition(colIndex: number): ColumnDefinition;
208
+ public getColumnDefinition(colIndex: number): ColumnDefinition|null;
198
209
 
199
- public getRowDefinition(rowRef: number|string): RowDefinition;
210
+ public getRowDefinition(rowRef: number|string): RowDefinition|null;
200
211
 
201
212
  public getRowDefinitions(): (RowDefinition)[];
202
213
 
@@ -234,7 +245,7 @@ declare class Grid extends EventDispatcher {
234
245
 
235
246
  public clearSort(): void;
236
247
 
237
- public getDataView(): DataView;
248
+ public getDataView(): DataView|null;
238
249
 
239
250
  public setPage(pageIndex: number): boolean;
240
251
 
@@ -256,6 +267,10 @@ declare class Grid extends EventDispatcher {
256
267
 
257
268
  public getExtension(str: string): any;
258
269
 
270
+ public activateADCPolling(activated?: boolean): void;
271
+
272
+ public refreshADCData(): boolean;
273
+
259
274
  public logDT(opt_options?: any): void;
260
275
 
261
276
  public logDV(opt_options?: any): void;