@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.
- 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/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +146 -5
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +468 -1092
- 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 +33 -11
- package/lib/core/es6/data/DataView.d.ts +12 -18
- package/lib/core/es6/data/DataView.js +0 -4
- package/lib/core/es6/data/Segment.d.ts +2 -0
- package/lib/core/es6/data/Segment.js +7 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
- package/lib/core/es6/data/WrappedView.d.ts +13 -13
- package/lib/core/es6/data/WrappedView.js +6 -6
- package/lib/core/es6/grid/Core.d.ts +31 -27
- package/lib/core/es6/grid/Core.js +47 -11
- 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 +71 -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 +3 -1
- package/lib/core/es6/grid/components/Scrollbar.js +13 -0
- 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/checkbox-list.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +14 -1
- package/lib/filter-dialog/lib/filter-dialog.js +86 -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 +25 -10
- package/lib/grid/lib/efx-grid.js +22 -56
- package/lib/grid/themes/base.less +1 -1
- 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/grid/themes/solar/charcoal/efx-grid.js +1 -1
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
- package/lib/grid/themes/solar/pearl/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 +98 -11
- package/lib/rt-grid/dist/rt-grid.js +1244 -1249
- 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 +24 -9
- package/lib/rt-grid/es6/Grid.js +285 -103
- 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 +6 -1
- package/lib/rt-grid/es6/SnapshotFiller.js +144 -15
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -3
- package/lib/tr-grid-checkbox/es6/Checkbox.js +51 -21
- 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 +4 -3
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +28 -13
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +8 -5
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +106 -3
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +1 -1
- 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 +3 -4
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +86 -195
- 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.d.ts +8 -8
- package/lib/tr-grid-row-selection/es6/RowSelection.js +55 -31
- 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/CellPainter.js +1 -1
- 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 +32 -2
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -1
- package/lib/tr-grid-util/es6/ElfUtil.js +131 -28
- package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
- 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/MultiTableManager.d.ts +8 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
- 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 +57 -19
- package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/types/es6/Checkbox.d.ts +4 -3
- 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 +4 -3
- 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 -18
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- 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 +31 -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 +3 -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 +8 -5
- 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 +24 -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 +6 -1
- package/lib/types/es6/RowDragging.d.ts +3 -4
- package/lib/types/es6/RowGrouping.d.ts +7 -2
- package/lib/types/es6/RowSegmenting.d.ts +7 -2
- package/lib/types/es6/RowSelection.d.ts +8 -8
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/types/es6/index.d.ts +1 -0
- package/lib/versions.json +17 -16
- 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";
|
@@ -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;
|