@refinitiv-ui/efx-grid 6.0.3 → 6.0.4
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/lib/column-dragging/es6/ColumnDragging.d.ts +49 -0
- package/lib/column-dragging/es6/ColumnDragging.js +764 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +389 -1070
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.d.ts +2 -2
- package/lib/core/es6/data/DataCache.d.ts +4 -4
- package/lib/core/es6/data/DataTable.d.ts +5 -5
- package/lib/core/es6/data/DataTable.js +1 -1
- package/lib/core/es6/data/DataView.d.ts +12 -12
- package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
- package/lib/core/es6/data/WrappedView.d.ts +13 -13
- package/lib/core/es6/grid/Core.d.ts +29 -27
- package/lib/core/es6/grid/Core.js +26 -4
- package/lib/core/es6/grid/ILayoutGrid.d.ts +15 -15
- package/lib/core/es6/grid/LayoutGrid.js +54 -26
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +66 -0
- package/lib/core/es6/grid/components/Cell.d.ts +4 -4
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +1 -1
- package/lib/core/es6/grid/components/CellSpans.d.ts +8 -8
- package/lib/core/es6/grid/components/Column.d.ts +1 -1
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +6 -6
- package/lib/core/es6/grid/components/Scrollbar.d.ts +1 -1
- package/lib/core/es6/grid/components/StretchedCells.js +2 -2
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +14 -6
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +147 -81
- package/lib/core/es6/grid/util/Conflator.d.ts +2 -2
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +3 -3
- package/lib/core/es6/grid/util/HttpRequest.d.ts +2 -2
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +1 -1
- package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
- package/lib/core/es6/grid/util/SectionSettings.d.ts +5 -5
- package/lib/core/es6/grid/util/SectionSettings.js +5 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
- package/lib/core/es6/grid/util/TrackLayout.d.ts +7 -3
- package/lib/core/es6/grid/util/TrackLayout.js +27 -0
- package/lib/core/es6/grid/util/util.d.ts +2 -2
- package/lib/core/es6/index.d.ts +1 -5
- package/lib/core/es6/index.js +1 -7
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -0
- package/lib/filter-dialog/lib/filter-dialog.js +73 -26
- package/lib/filter-dialog/themes/base-checkbox.less +8 -1
- package/lib/filter-dialog/themes/base.less +69 -1
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/lib/efx-grid.d.ts +8 -5
- package/lib/grid/lib/efx-grid.js +10 -4
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +33 -39
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +7 -2
- package/lib/row-segmenting/es6/RowSegmenting.js +94 -9
- package/lib/rt-grid/dist/rt-grid.js +567 -1171
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +5 -3
- package/lib/rt-grid/es6/ColumnDefinition.js +17 -108
- package/lib/rt-grid/es6/DataConnector.d.ts +3 -3
- package/lib/rt-grid/es6/Grid.d.ts +17 -9
- package/lib/rt-grid/es6/Grid.js +201 -101
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +137 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +9 -7
- package/lib/rt-grid/es6/RowDefinition.js +6 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -1
- package/lib/rt-grid/es6/SnapshotFiller.js +23 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +2 -2
- package/lib/tr-grid-checkbox/es6/Checkbox.js +38 -20
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +46 -9
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +8 -4
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +240 -125
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +1 -1
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +18 -12
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +7 -4
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +93 -2
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +3 -3
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +1 -1
- package/lib/tr-grid-printer/es6/GridPrinter.js +26 -13
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +2 -2
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +3 -3
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +2 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +29 -143
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +7 -2
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +97 -7
- package/lib/tr-grid-row-selection/es6/RowSelection.js +10 -0
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +12 -0
- package/lib/tr-grid-util/es6/DragUI.d.ts +16 -0
- package/lib/tr-grid-util/es6/DragUI.js +214 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +28 -1
- package/lib/tr-grid-util/es6/ElfUtil.js +1 -1
- package/lib/tr-grid-util/es6/FieldFormatter.js +7 -5
- package/lib/tr-grid-util/es6/GridPlugin.js +8 -4
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +2 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
- package/lib/tr-grid-util/es6/RowPainter.js +41 -11
- package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
- package/lib/types/es6/Checkbox.d.ts +2 -2
- package/lib/types/es6/ColumnStack.d.ts +8 -4
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +3 -2
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +20 -18
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +3 -2
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +28 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +5 -4
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -9
- package/lib/types/es6/ConditionalColoring.d.ts +1 -1
- package/lib/types/es6/Core/data/ColumnStats.d.ts +2 -2
- package/lib/types/es6/Core/data/DataCache.d.ts +4 -4
- package/lib/types/es6/Core/data/DataTable.d.ts +5 -5
- package/lib/types/es6/Core/data/DataView.d.ts +12 -12
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +3 -3
- package/lib/types/es6/Core/data/WrappedView.d.ts +13 -13
- package/lib/types/es6/Core/grid/Core.d.ts +29 -27
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +15 -15
- package/lib/types/es6/Core/grid/components/Cell.d.ts +4 -4
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +1 -1
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +8 -8
- package/lib/types/es6/Core/grid/components/Column.d.ts +1 -1
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +6 -6
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +1 -1
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +14 -6
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +5 -5
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +7 -3
- package/lib/types/es6/Core/grid/util/util.d.ts +2 -2
- package/lib/types/es6/Core/index.d.ts +1 -5
- package/lib/types/es6/ExtensionOptions.d.ts +2 -0
- package/lib/types/es6/InCellEditing.d.ts +7 -4
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +5 -3
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +3 -3
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +17 -9
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +9 -7
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -1
- package/lib/types/es6/RowDragging.d.ts +2 -1
- package/lib/types/es6/RowGrouping.d.ts +7 -2
- package/lib/types/es6/RowSegmenting.d.ts +7 -2
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/versions.json +14 -13
- package/package.json +1 -1
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +0 -615
- package/lib/core/es6/grid/plugins/Plugin.d.ts +0 -28
- package/lib/core/es6/grid/plugins/Plugin.js +0 -272
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
- 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
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
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] =
|
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";
|
@@ -71,7 +71,9 @@ declare namespace Grid {
|
|
71
71
|
autoDateConversion?: boolean,
|
72
72
|
textSelect?: boolean,
|
73
73
|
lang?: string,
|
74
|
-
scrollbarParent?: Element
|
74
|
+
scrollbarParent?: Element,
|
75
|
+
formulaEngine?: boolean,
|
76
|
+
adcPollingInterval?: number
|
75
77
|
};
|
76
78
|
|
77
79
|
type RowReference = number|string|RowDefinition;
|
@@ -86,7 +88,7 @@ declare class Grid extends EventDispatcher {
|
|
86
88
|
|
87
89
|
public dispose(): void;
|
88
90
|
|
89
|
-
public getElement(): Element;
|
91
|
+
public getElement(): Element|null;
|
90
92
|
|
91
93
|
public removeEventListeners(): void;
|
92
94
|
|
@@ -108,12 +110,14 @@ declare class Grid extends EventDispatcher {
|
|
108
110
|
|
109
111
|
public getRelativePosition(obj: ElementWrapper|Element|Event|MouseEvent): any;
|
110
112
|
|
111
|
-
public getCoreGrid(): Core;
|
113
|
+
public getCoreGrid(): Core|null;
|
112
114
|
|
113
115
|
public initialize(gridOption?: Grid.GridOptions): void;
|
114
116
|
|
115
117
|
public getConfigObject(gridOptions?: any): any;
|
116
118
|
|
119
|
+
public setLocale(lang: string): void;
|
120
|
+
|
117
121
|
public insertColumn(columnOption: ColumnDefinition.Options|string, idx?: number): void;
|
118
122
|
|
119
123
|
public setColumns(columns: (any)[]): void;
|
@@ -160,9 +164,9 @@ declare class Grid extends EventDispatcher {
|
|
160
164
|
|
161
165
|
public updateDataSet(records: (any)[], rowIdentifier: string): void;
|
162
166
|
|
163
|
-
public removeRow(rowRef: Grid.RowReference): RowDefinition;
|
167
|
+
public removeRow(rowRef: Grid.RowReference): RowDefinition|null;
|
164
168
|
|
165
|
-
public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[];
|
169
|
+
public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[]|null;
|
166
170
|
|
167
171
|
public removeAllRows(): void;
|
168
172
|
|
@@ -194,9 +198,9 @@ declare class Grid extends EventDispatcher {
|
|
194
198
|
|
195
199
|
public getColumnDataType(colIndex: number): string;
|
196
200
|
|
197
|
-
public getColumnDefinition(colIndex: number): ColumnDefinition;
|
201
|
+
public getColumnDefinition(colIndex: number): ColumnDefinition|null;
|
198
202
|
|
199
|
-
public getRowDefinition(rowRef: number|string): RowDefinition;
|
203
|
+
public getRowDefinition(rowRef: number|string): RowDefinition|null;
|
200
204
|
|
201
205
|
public getRowDefinitions(): (RowDefinition)[];
|
202
206
|
|
@@ -234,7 +238,7 @@ declare class Grid extends EventDispatcher {
|
|
234
238
|
|
235
239
|
public clearSort(): void;
|
236
240
|
|
237
|
-
public getDataView(): DataView;
|
241
|
+
public getDataView(): DataView|null;
|
238
242
|
|
239
243
|
public setPage(pageIndex: number): boolean;
|
240
244
|
|
@@ -256,6 +260,10 @@ declare class Grid extends EventDispatcher {
|
|
256
260
|
|
257
261
|
public getExtension(str: string): any;
|
258
262
|
|
263
|
+
public activateADCPolling(activated?: boolean): void;
|
264
|
+
|
265
|
+
public refreshADCData(): boolean;
|
266
|
+
|
259
267
|
public logDT(opt_options?: any): void;
|
260
268
|
|
261
269
|
public logDV(opt_options?: any): void;
|