@refinitiv-ui/efx-grid 6.0.5 → 6.0.7
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 +13 -11
- package/lib/column-dragging/es6/ColumnDragging.js +21 -15
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +1 -1
- package/lib/column-format-dialog/lib/column-format-dialog.js +3 -4
- package/lib/column-format-dialog/lib/preview-table.js +3 -4
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +2 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +23 -7
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +456 -269
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.d.ts +3 -3
- package/lib/core/es6/data/DataCache.d.ts +9 -9
- package/lib/core/es6/data/DataTable.d.ts +28 -28
- package/lib/core/es6/data/DataTable.js +44 -11
- package/lib/core/es6/data/DataView.d.ts +62 -62
- package/lib/core/es6/data/DataView.js +42 -22
- package/lib/core/es6/data/Segment.d.ts +8 -4
- package/lib/core/es6/data/Segment.js +16 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +9 -7
- package/lib/core/es6/data/SegmentCollection.js +38 -36
- package/lib/core/es6/data/WrappedView.d.ts +62 -62
- package/lib/core/es6/grid/Core.d.ts +95 -95
- package/lib/core/es6/grid/Core.js +173 -25
- package/lib/core/es6/grid/ILayoutGrid.d.ts +20 -20
- package/lib/core/es6/grid/ILayoutGrid.js +2 -1
- package/lib/core/es6/grid/LayoutGrid.d.ts +2 -2
- package/lib/core/es6/grid/LayoutGrid.js +18 -10
- package/lib/core/es6/grid/VirtualizedLayoutGrid.d.ts +2 -2
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +14 -3
- package/lib/core/es6/grid/components/Cell.d.ts +6 -6
- package/lib/core/es6/grid/components/Cell.js +3 -0
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +4 -2
- package/lib/core/es6/grid/components/CellFloatingPanel.js +7 -0
- package/lib/core/es6/grid/components/CellSpans.d.ts +2 -2
- package/lib/core/es6/grid/components/Column.d.ts +2 -2
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +19 -19
- package/lib/core/es6/grid/components/Scrollbar.d.ts +9 -9
- package/lib/core/es6/grid/components/StretchedCells.js +19 -5
- package/lib/core/es6/grid/event/EventDispatcher.d.ts +3 -3
- package/lib/core/es6/grid/event/EventListeners.d.ts +5 -5
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +45 -44
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +62 -65
- package/lib/core/es6/grid/util/Conflator.d.ts +4 -4
- package/lib/core/es6/grid/util/HttpRequest.d.ts +3 -3
- package/lib/core/es6/grid/util/PercentBar.d.ts +8 -8
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +8 -8
- package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
- package/lib/core/es6/grid/util/RangeBar.js +1 -1
- package/lib/core/es6/grid/util/Reverter.d.ts +1 -1
- package/lib/core/es6/grid/util/SectionSettings.d.ts +13 -13
- package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
- package/lib/core/es6/grid/util/TrackLayout.d.ts +9 -9
- package/lib/core/es6/grid/util/Virtualizer.d.ts +3 -3
- package/lib/core/es6/grid/util/util.d.ts +6 -4
- package/lib/core/es6/grid/util/util.js +16 -91
- package/lib/core/es6/index.d.ts +1 -0
- package/lib/core/es6/index.js +2 -0
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/checkbox-list.d.ts +1 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +1 -1
- package/lib/filter-dialog/lib/filter-dialog.js +27 -9
- package/lib/filter-dialog/themes/base-checkbox.less +0 -1
- package/lib/filter-dialog/themes/base.less +1 -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/formatters/es6/index.d.ts +1 -1
- package/lib/formatters/es6/index.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/grid/lib/efx-grid.js +3 -0
- 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 +5 -5
- 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/row-segmenting/es6/RowSegmenting.d.ts +30 -24
- package/lib/row-segmenting/es6/RowSegmenting.js +122 -21
- package/lib/rt-grid/dist/rt-grid.js +689 -367
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +46 -42
- package/lib/rt-grid/es6/ColumnDefinition.js +31 -1
- package/lib/rt-grid/es6/DataConnector.d.ts +6 -4
- package/lib/rt-grid/es6/DataConnector.js +8 -0
- package/lib/rt-grid/es6/FieldDefinition.d.ts +2 -2
- package/lib/rt-grid/es6/FieldDefinition.js +12 -5
- package/lib/rt-grid/es6/Grid.d.ts +102 -94
- package/lib/rt-grid/es6/Grid.js +70 -105
- package/lib/rt-grid/es6/ReferenceCounter.d.ts +5 -5
- package/lib/rt-grid/es6/RowDefSorter.d.ts +2 -2
- package/lib/rt-grid/es6/RowDefinition.d.ts +22 -22
- package/lib/rt-grid/es6/RowDefinition.js +12 -5
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +3 -3
- package/lib/rt-grid/es6/StyleLoader.d.ts +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.d.ts +11 -11
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +50 -54
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +18 -16
- package/lib/tr-grid-checkbox/es6/Checkbox.js +1 -0
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.d.ts +29 -27
- package/lib/tr-grid-column-formatting/es6/ColumnFormatting.js +1 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +28 -14
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +556 -11
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.d.ts +2 -2
- package/lib/tr-grid-column-resizing/es6/ColumnResizing.js +1 -0
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +2 -3
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +15 -13
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +96 -72
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +11 -2
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +309 -114
- package/lib/tr-grid-content-wrap/es6/ContentWrap.js +1 -6
- package/lib/tr-grid-contextmenu/es6/ContextMenu.js +3 -3
- package/lib/tr-grid-contextmenu/es6/MenuEventAPI.d.ts +2 -2
- package/lib/tr-grid-contextmenu/es6/MenuItem.d.ts +2 -2
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +2 -1
- package/lib/tr-grid-heat-map/es6/HeatMap.js +6 -9
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +5 -2
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +311 -71
- package/lib/tr-grid-percent-bar/es6/PercentBar.d.ts +1 -1
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +8 -11
- package/lib/tr-grid-printer/es6/SectionWriter.js +8 -0
- package/lib/tr-grid-range-bar/es6/RangeBar.js +3 -10
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +6 -0
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +56 -23
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +4 -3
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +57 -13
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +1 -1
- package/lib/tr-grid-row-selection/es6/RowSelection.js +2 -3
- package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +0 -2
- package/lib/tr-grid-rowcoloring/es6/RowColoring.js +1 -40
- package/lib/tr-grid-util/es6/CellPainter.d.ts +30 -30
- package/lib/tr-grid-util/es6/CellPainter.js +9 -8
- package/lib/tr-grid-util/es6/Conflator.d.ts +4 -4
- package/lib/tr-grid-util/es6/CoralItems.d.ts +1 -1
- package/lib/tr-grid-util/es6/DateTime.d.ts +10 -10
- package/lib/tr-grid-util/es6/Deferred.d.ts +3 -1
- package/lib/tr-grid-util/es6/Deferred.js +11 -1
- package/lib/tr-grid-util/es6/Delay.d.ts +2 -2
- package/lib/tr-grid-util/es6/Dom.d.ts +10 -10
- package/lib/tr-grid-util/es6/Dom.js +14 -10
- package/lib/tr-grid-util/es6/DragUI.js +5 -2
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -2
- package/lib/tr-grid-util/es6/ElementWrapper.d.ts +4 -4
- package/lib/tr-grid-util/es6/ElfDate.d.ts +5 -5
- package/lib/tr-grid-util/es6/ElfDate.js +1 -0
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +10 -4
- package/lib/tr-grid-util/es6/ElfUtil.js +53 -4
- package/lib/tr-grid-util/es6/EventDispatcher.d.ts +5 -5
- package/lib/tr-grid-util/es6/ExpanderIcon.d.ts +2 -2
- package/lib/tr-grid-util/es6/ExpanderIcon.js +1 -1
- package/lib/tr-grid-util/es6/Ext.d.ts +1 -1
- package/lib/tr-grid-util/es6/FieldFormatter.d.ts +12 -12
- package/lib/tr-grid-util/es6/FieldFormatter.js +1 -1
- package/lib/tr-grid-util/es6/FilterBuilder.d.ts +13 -13
- package/lib/tr-grid-util/es6/FilterBuilder.js +15 -8
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +22 -22
- package/lib/tr-grid-util/es6/FilterOperators.js +3 -3
- package/lib/tr-grid-util/es6/GridPlugin.d.ts +10 -10
- package/lib/tr-grid-util/es6/GridPlugin.js +20 -0
- package/lib/tr-grid-util/es6/Icon.d.ts +3 -3
- package/lib/tr-grid-util/es6/MouseDownTrait.d.ts +8 -8
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +6 -6
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +19 -19
- package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
- package/lib/tr-grid-util/es6/PercentBar.d.ts +19 -19
- package/lib/tr-grid-util/es6/Perf.d.ts +4 -4
- package/lib/tr-grid-util/es6/Popup.d.ts +36 -33
- package/lib/tr-grid-util/es6/Popup.js +19 -1
- package/lib/tr-grid-util/es6/RangeBar.d.ts +5 -5
- package/lib/tr-grid-util/es6/RequestQueue.d.ts +4 -4
- package/lib/tr-grid-util/es6/RowPainter.d.ts +37 -4
- package/lib/tr-grid-util/es6/RowPainter.js +199 -76
- package/lib/tr-grid-util/es6/SubTable.d.ts +14 -14
- package/lib/tr-grid-util/es6/Table.d.ts +25 -25
- package/lib/tr-grid-util/es6/TextHighlighter.d.ts +1 -1
- package/lib/tr-grid-util/es6/Timer.d.ts +1 -1
- package/lib/tr-grid-util/es6/TouchProxy.d.ts +9 -9
- package/lib/tr-grid-util/es6/Util.d.ts +12 -12
- package/lib/tr-grid-util/es6/formula/ADCService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/ADCSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/AdFinService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/Engine.d.ts +9 -9
- package/lib/tr-grid-util/es6/formula/Formula.d.ts +4 -4
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/Realtime.d.ts +3 -3
- package/lib/tr-grid-util/es6/formula/RealtimeService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/TSIService.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/TSISubscription.d.ts +1 -1
- package/lib/tr-grid-util/es6/formula/VariableToken.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/DataGenerator.d.ts +34 -34
- package/lib/tr-grid-util/es6/jet/MockArchive.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/MockJET.d.ts +4 -4
- package/lib/tr-grid-util/es6/jet/MockJET.js +12 -4
- package/lib/tr-grid-util/es6/jet/MockQuotes.d.ts +9 -9
- package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +17 -9
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +84 -24
- package/lib/tr-grid-util/es6/jet/MockRTK.d.ts +42 -2
- package/lib/tr-grid-util/es6/jet/MockRTK.js +55 -16
- package/lib/tr-grid-util/es6/jet/mockDataAPI.d.ts +2 -2
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +99 -1
- package/lib/types/es6/CellSelection.d.ts +11 -11
- package/lib/types/es6/Checkbox.d.ts +18 -16
- package/lib/types/es6/ColumnFormatting.d.ts +29 -27
- package/lib/types/es6/ColumnGrouping.d.ts +28 -14
- package/lib/types/es6/ColumnResizing.d.ts +2 -2
- package/lib/types/es6/ColumnStack.d.ts +15 -13
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +4 -2
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +0 -1
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +1 -5
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +3 -1
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/TextWidthCalculator.d.ts +1 -1
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +0 -1
- package/lib/types/es6/ConditionalColoring.d.ts +11 -2
- package/lib/types/es6/Core/data/ColumnStats.d.ts +3 -3
- package/lib/types/es6/Core/data/DataCache.d.ts +9 -9
- package/lib/types/es6/Core/data/DataTable.d.ts +28 -28
- package/lib/types/es6/Core/data/DataView.d.ts +62 -62
- package/lib/types/es6/Core/data/Segment.d.ts +8 -4
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +9 -7
- package/lib/types/es6/Core/data/WrappedView.d.ts +62 -62
- package/lib/types/es6/Core/grid/Core.d.ts +95 -95
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +20 -20
- package/lib/types/es6/Core/grid/LayoutGrid.d.ts +2 -2
- package/lib/types/es6/Core/grid/VirtualizedLayoutGrid.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/Cell.d.ts +6 -6
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/Column.d.ts +2 -2
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +19 -19
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +9 -9
- package/lib/types/es6/Core/grid/event/EventDispatcher.d.ts +3 -3
- package/lib/types/es6/Core/grid/event/EventListeners.d.ts +5 -5
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +45 -44
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +4 -4
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +8 -8
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +8 -8
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/Reverter.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +13 -13
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +9 -9
- package/lib/types/es6/Core/grid/util/Virtualizer.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/util.d.ts +6 -4
- package/lib/types/es6/Core/index.d.ts +1 -0
- package/lib/types/es6/HeatMap.d.ts +2 -1
- package/lib/types/es6/InCellEditing.d.ts +5 -2
- package/lib/types/es6/MenuEventAPI.d.ts +2 -2
- package/lib/types/es6/MenuItem.d.ts +2 -2
- package/lib/types/es6/PercentBar.d.ts +1 -1
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +46 -42
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +6 -4
- package/lib/types/es6/RealtimeGrid/FieldDefinition.d.ts +2 -2
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +100 -92
- package/lib/types/es6/RealtimeGrid/ReferenceCounter.d.ts +5 -5
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +2 -2
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +22 -22
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +3 -3
- package/lib/types/es6/RealtimeGrid/StyleLoader.d.ts +1 -1
- package/lib/types/es6/RowColoring.d.ts +0 -2
- package/lib/types/es6/RowDragging.d.ts +6 -0
- package/lib/types/es6/RowFiltering.d.ts +4 -3
- package/lib/types/es6/RowSegmenting.d.ts +30 -24
- package/lib/versions.json +27 -27
- package/package.json +2 -2
@@ -623,39 +623,44 @@ CellSelectionPlugin.prototype._setScrollInterval = function (dirVectors) {
|
|
623
623
|
|
624
624
|
var scrollToTop = isYPositive ? currentScrollTop + cellWidth : currentScrollTop - cellWidth;
|
625
625
|
var scrollToLeft = isXPositive ? currentScrollLeft + cellHeight : currentScrollLeft - cellHeight;
|
626
|
-
var addCount = 1;
|
627
626
|
|
628
627
|
if (dirVectors.y !== 0) {
|
629
628
|
// updates scroll position
|
630
629
|
this._hosts[0].setScrollTop(scrollToTop);
|
631
630
|
|
632
|
-
var
|
631
|
+
var vScrollbar = this._hosts[0].getVScrollbar();
|
632
|
+
|
633
|
+
var rowVirtualizer = this._hosts[0].getRowVirtualizer();
|
633
634
|
|
634
635
|
var isEndOfVerticalScroll = this._isEndOfVerticalScroll();
|
635
636
|
|
637
|
+
var vTrackHeight = vScrollbar.getHeight();
|
638
|
+
var scrollViewOffset = rowVirtualizer.getViewOffset(); // scrolling down
|
639
|
+
|
636
640
|
if (isYPositive) {
|
637
|
-
var
|
638
|
-
|
639
|
-
if (
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
tgtRect.bottom
|
644
|
-
} else {
|
645
|
-
tgtRect.bottom = nextBottomVal;
|
641
|
+
var nextBottomRowEndPos = rowVirtualizer.getContentStart(tgtRect.bottom + 1) - scrollViewOffset; //end position of next bottom row
|
642
|
+
|
643
|
+
if (nextBottomRowEndPos <= vTrackHeight) {
|
644
|
+
// while next row is in scroll view, extend to next bottom row
|
645
|
+
while (nextBottomRowEndPos <= vTrackHeight) {
|
646
|
+
tgtRect.bottom += 1;
|
647
|
+
nextBottomRowEndPos = rowVirtualizer.getContentStart(tgtRect.bottom + 1) - scrollViewOffset;
|
646
648
|
}
|
649
|
+
} else if (isEndOfVerticalScroll) {
|
650
|
+
tgtRect.bottom = this._hosts[0].getRowCount();
|
647
651
|
}
|
648
|
-
}
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
tgtRect.top
|
656
|
-
|
657
|
-
tgtRect.top = nextTopVal;
|
652
|
+
} // scrolling up
|
653
|
+
else {
|
654
|
+
var nextTopRowStartPos = rowVirtualizer.getContentStart(tgtRect.top - 1) - scrollViewOffset; //start position of next top row
|
655
|
+
|
656
|
+
if (nextTopRowStartPos >= 0) {
|
657
|
+
// while next row is in scroll view, extend to next top row
|
658
|
+
while (nextTopRowStartPos >= 0) {
|
659
|
+
tgtRect.top -= 1;
|
660
|
+
nextTopRowStartPos = rowVirtualizer.getContentStart(tgtRect.top - 1) - scrollViewOffset;
|
658
661
|
}
|
662
|
+
} else if (isEndOfVerticalScroll) {
|
663
|
+
tgtRect.top = 1;
|
659
664
|
}
|
660
665
|
}
|
661
666
|
}
|
@@ -666,47 +671,38 @@ CellSelectionPlugin.prototype._setScrollInterval = function (dirVectors) {
|
|
666
671
|
|
667
672
|
var isEndOfHorizontalScroll = this._isEndOfHorizontalScroll();
|
668
673
|
|
669
|
-
var
|
674
|
+
var hScrollbar = this._hosts[0].getHScrollbar();
|
670
675
|
|
671
|
-
var
|
676
|
+
var hTrackWidth = hScrollbar.getTrackSize(); // scrolling right
|
672
677
|
|
673
678
|
if (isXPositive) {
|
674
|
-
var
|
675
|
-
|
676
|
-
var rightColPos = this._hosts[0].getColumnLeft(tgtRect.right);
|
679
|
+
var leftPinnedWidth = 0;
|
677
680
|
|
678
|
-
var
|
681
|
+
var leftPinnedCount = this._hosts[0].getPinnedLeftColumnCount(); // getting width of left pinned columns
|
679
682
|
|
680
|
-
var rightPosition = gridWidth - curColumnWidth;
|
681
683
|
|
682
|
-
if (
|
683
|
-
|
684
|
-
tgtRect.right += addCount;
|
685
|
-
} while (this._hosts[0].getColumnLeft(tgtRect.right + addCount) < rightPosition);
|
686
|
-
} else {
|
687
|
-
if (rightColPos - cellWidth - gridWidth > 0 && leftColumnPosition > rightColPos && rightSps < gridWidth) {
|
688
|
-
do {
|
689
|
-
tgtRect.left += addCount;
|
690
|
-
} while (this._hosts[0].getColumnLeft(tgtRect.right + addCount) > rightColPos);
|
691
|
-
} else if (isEndOfHorizontalScroll) {
|
692
|
-
tgtRect.right = this._hosts[0].getColumnCount();
|
693
|
-
}
|
684
|
+
if (leftPinnedCount) {
|
685
|
+
leftPinnedWidth = this._hosts[0].getContentWidth() - hScrollbar.getContentWidth();
|
694
686
|
}
|
695
|
-
} else {
|
696
|
-
var rightColumnPosition = this._hosts[0].getColumnRight(tgtRect.left - addCount);
|
697
687
|
|
698
|
-
var
|
688
|
+
var nextRightColEndPos = this._hosts[0].getColumnRight(tgtRect.right) - leftPinnedWidth; //end position of next right column
|
689
|
+
// if next column is in scroll view, extend to next right column
|
699
690
|
|
700
|
-
|
691
|
+
if (nextRightColEndPos <= hTrackWidth) {
|
692
|
+
tgtRect.right += 1;
|
693
|
+
} else if (isEndOfHorizontalScroll) {
|
694
|
+
tgtRect.right = this._hosts[0].getColumnCount();
|
695
|
+
}
|
696
|
+
} // scrolling left
|
697
|
+
else {
|
698
|
+
var nextLeftColStartPos = this._hosts[0].getColumnLeft(tgtRect.left - 1); //start position of next left column
|
699
|
+
// if next column is in scroll view, extend to next left column
|
701
700
|
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
} else if (isEndOfHorizontalScroll) {
|
708
|
-
tgtRect.left = 0;
|
709
|
-
}
|
701
|
+
|
702
|
+
if (nextLeftColStartPos >= 0) {
|
703
|
+
tgtRect.left -= 1;
|
704
|
+
} else if (isEndOfHorizontalScroll) {
|
705
|
+
tgtRect.left = 0;
|
710
706
|
}
|
711
707
|
}
|
712
708
|
}
|
@@ -732,9 +728,9 @@ CellSelectionPlugin.prototype._isEndOfVerticalScroll = function () {
|
|
732
728
|
|
733
729
|
|
734
730
|
CellSelectionPlugin.prototype._isEndOfHorizontalScroll = function () {
|
735
|
-
var
|
731
|
+
var hScrollbar = this._hosts[0].getHScrollbar();
|
736
732
|
|
737
|
-
return
|
733
|
+
return hScrollbar.isEndOfHorizontalScroll() || this._hosts[0].getScrollLeft() == 0;
|
738
734
|
};
|
739
735
|
/** Fire when draging was end.
|
740
736
|
* @private
|
@@ -6,25 +6,25 @@ import {injectCss, prettifyCss} from "../../tr-grid-util/es6/Util.js";
|
|
6
6
|
declare namespace CheckboxPlugin {
|
7
7
|
|
8
8
|
type Options = {
|
9
|
-
rowSelection?: boolean,
|
10
|
-
field?: string,
|
11
|
-
disablingField?: string,
|
12
|
-
checkboxCreated?: ((...params: any[]) => any),
|
13
|
-
checkboxBinding?: ((...params: any[]) => any),
|
14
|
-
clicked?: ((...params: any[]) => any),
|
15
|
-
width?: number,
|
16
|
-
topCheckboxHandler?: boolean
|
9
|
+
rowSelection?: boolean|null,
|
10
|
+
field?: string|null,
|
11
|
+
disablingField?: string|null,
|
12
|
+
checkboxCreated?: ((...params: any[]) => any)|null,
|
13
|
+
checkboxBinding?: ((...params: any[]) => any)|null,
|
14
|
+
clicked?: ((...params: any[]) => any)|null,
|
15
|
+
width?: number|null,
|
16
|
+
topCheckboxHandler?: boolean|null
|
17
17
|
};
|
18
18
|
|
19
19
|
type ColumnOptions = {
|
20
|
-
checkboxColumn?: boolean
|
20
|
+
checkboxColumn?: boolean|null
|
21
21
|
};
|
22
22
|
|
23
23
|
}
|
24
24
|
|
25
25
|
declare class CheckboxPlugin extends GridPlugin {
|
26
26
|
|
27
|
-
constructor(options?: CheckboxPlugin.Options);
|
27
|
+
constructor(options?: CheckboxPlugin.Options|null);
|
28
28
|
|
29
29
|
public getName(): string;
|
30
30
|
|
@@ -52,17 +52,19 @@ declare class CheckboxPlugin extends GridPlugin {
|
|
52
52
|
|
53
53
|
public setAllCheckStates(checked: boolean): void;
|
54
54
|
|
55
|
-
public selectAllPages(checked?: boolean): void;
|
55
|
+
public selectAllPages(checked?: boolean|null): void;
|
56
56
|
|
57
|
-
public disableCheckbox(rowRef: number|string, disabled: boolean): void;
|
57
|
+
public disableCheckbox(rowRef: number|string|null, disabled: boolean): void;
|
58
58
|
|
59
|
-
public enableCheckbox(rowRef: number|string): void;
|
59
|
+
public enableCheckbox(rowRef: number|string|null): void;
|
60
60
|
|
61
|
-
public getAllCheckedIndices(sectionRef: any, state?: string): (number)[];
|
61
|
+
public getAllCheckedIndices(sectionRef: any, state?: string|null): (number)[];
|
62
62
|
|
63
|
-
public getFilteredSelectedData(field?: string): any[];
|
63
|
+
public getFilteredSelectedData(field?: string|null): any[];
|
64
64
|
|
65
|
-
public getAllSelectedData(field?: string): any[];
|
65
|
+
public getAllSelectedData(field?: string|null): any[];
|
66
|
+
|
67
|
+
public getSelectedRowData(field?: string|null): any[];
|
66
68
|
|
67
69
|
}
|
68
70
|
|
@@ -846,6 +846,7 @@ CheckboxPlugin.prototype.getAllSelectedData = function (field) {
|
|
846
846
|
|
847
847
|
/** Alias of {@link CheckboxPlugin#getAllSelectedData}
|
848
848
|
* @public
|
849
|
+
* @function
|
849
850
|
* @param {string=} field="" When field is not provided, entire rowData is returned. If field is specified, field values will be returned. Use "ROW_ID" as the field for retrieving internal row ids.
|
850
851
|
* @return {!Array} Returns selected rows
|
851
852
|
*/
|
@@ -5,48 +5,48 @@ import {ElfUtil} from '../../tr-grid-util/es6/ElfUtil.js';
|
|
5
5
|
declare namespace ColumnFormattingPlugin {
|
6
6
|
|
7
7
|
type HeatmapOption = {
|
8
|
-
midPoint?: string,
|
9
|
-
mode?: string
|
8
|
+
midPoint?: string|null,
|
9
|
+
mode?: string|null
|
10
10
|
};
|
11
11
|
|
12
12
|
type ConditionalColorOption = {
|
13
|
-
conditions?: (any)[],
|
14
|
-
field?: string
|
13
|
+
conditions?: (any)[]|null,
|
14
|
+
field?: string|null
|
15
15
|
};
|
16
16
|
|
17
17
|
type BarOption = {
|
18
|
-
useMovementColor?: boolean,
|
19
|
-
showValues?: boolean,
|
20
|
-
alignment?: string,
|
21
|
-
field?: string,
|
22
|
-
textHidden?: boolean,
|
23
|
-
textWidth?: (number|string),
|
24
|
-
barColor?: string,
|
25
|
-
padding?: number,
|
26
|
-
percentageLabel?: boolean,
|
27
|
-
autoTextSizing?: boolean,
|
28
|
-
autoFitting?: boolean,
|
29
|
-
zeroValueHidden?: boolean
|
18
|
+
useMovementColor?: boolean|null,
|
19
|
+
showValues?: boolean|null,
|
20
|
+
alignment?: string|null,
|
21
|
+
field?: string|null,
|
22
|
+
textHidden?: boolean|null,
|
23
|
+
textWidth?: (number|string)|null,
|
24
|
+
barColor?: string|null,
|
25
|
+
padding?: number|null,
|
26
|
+
percentageLabel?: boolean|null,
|
27
|
+
autoTextSizing?: boolean|null,
|
28
|
+
autoFitting?: boolean|null,
|
29
|
+
zeroValueHidden?: boolean|null
|
30
30
|
};
|
31
31
|
|
32
32
|
type DisplayStyleOption = {
|
33
|
-
alignment?: string,
|
34
|
-
mode?: string,
|
35
|
-
bar?: ColumnFormattingPlugin.BarOption,
|
36
|
-
conditionalColor?: ColumnFormattingPlugin.ConditionalColorOption,
|
37
|
-
heatmap?: ColumnFormattingPlugin.HeatmapOption,
|
33
|
+
alignment?: string|null,
|
34
|
+
mode?: string|null,
|
35
|
+
bar?: ColumnFormattingPlugin.BarOption|null,
|
36
|
+
conditionalColor?: ColumnFormattingPlugin.ConditionalColorOption|null,
|
37
|
+
heatmap?: ColumnFormattingPlugin.HeatmapOption|null,
|
38
38
|
general?: any
|
39
39
|
};
|
40
40
|
|
41
41
|
type ColumnFormatOptions = {
|
42
42
|
valueFormatTab?: any,
|
43
|
-
displayStyleTab?: ColumnFormattingPlugin.DisplayStyleOption,
|
43
|
+
displayStyleTab?: ColumnFormattingPlugin.DisplayStyleOption|null,
|
44
44
|
colorTextTab?: any,
|
45
|
-
fieldDataType?: string
|
45
|
+
fieldDataType?: string|null
|
46
46
|
};
|
47
47
|
|
48
48
|
type ColumnOptions = {
|
49
|
-
fieldDataType?: string
|
49
|
+
fieldDataType?: string|null
|
50
50
|
};
|
51
51
|
|
52
52
|
}
|
@@ -59,7 +59,9 @@ declare class ColumnFormattingPlugin extends GridPlugin {
|
|
59
59
|
|
60
60
|
public getConfigObject(gridOptions?: any): any;
|
61
61
|
|
62
|
-
public
|
62
|
+
public getField(colIndex: number): string;
|
63
|
+
|
64
|
+
public getFieldList(): (string)[]|null;
|
63
65
|
|
64
66
|
public getColumnCount(): number;
|
65
67
|
|
@@ -67,7 +69,7 @@ declare class ColumnFormattingPlugin extends GridPlugin {
|
|
67
69
|
|
68
70
|
public getColumnFormatOptions(colIndex: number): ColumnFormattingPlugin.ColumnFormatOptions;
|
69
71
|
|
70
|
-
public setColumnFormatOptions(colIndex: number, options?: ColumnFormattingPlugin.ColumnFormatOptions): void;
|
72
|
+
public setColumnFormatOptions(colIndex: number, options?: ColumnFormattingPlugin.ColumnFormatOptions|null): void;
|
71
73
|
|
72
74
|
public setColumnAlignment(colIndex: number, align: string): void;
|
73
75
|
|
@@ -77,7 +79,7 @@ declare class ColumnFormattingPlugin extends GridPlugin {
|
|
77
79
|
|
78
80
|
public isColumnHidden(colIndex: number): boolean;
|
79
81
|
|
80
|
-
public hideColumn(colIndex: number, opt_bool?: boolean): void;
|
82
|
+
public hideColumn(colIndex: number, opt_bool?: boolean|null): void;
|
81
83
|
|
82
84
|
public showAllColumns(): void;
|
83
85
|
|
@@ -4,24 +4,24 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
4
4
|
|
5
5
|
declare namespace ColumnGroupingPlugin {
|
6
6
|
|
7
|
-
type Options = (ColumnGroupingPlugin.GroupDefinition)[];
|
7
|
+
type Options = (ColumnGroupingPlugin.GroupDefinition)[]|null;
|
8
8
|
|
9
|
-
type GroupDefinitions = (ColumnGroupingPlugin.GroupDefinition)[];
|
9
|
+
type GroupDefinitions = (ColumnGroupingPlugin.GroupDefinition)[]|null;
|
10
10
|
|
11
11
|
type GroupDefinition = {
|
12
12
|
id: string,
|
13
13
|
name: string,
|
14
|
-
tooltip?: (boolean|string),
|
15
|
-
children: (string)[],
|
16
|
-
alignment?: string,
|
17
|
-
render?: ((...params: any[]) => any)
|
14
|
+
tooltip?: (boolean|string)|null,
|
15
|
+
children: (string)[]|null,
|
16
|
+
alignment?: string|null,
|
17
|
+
render?: ((...params: any[]) => any)|null
|
18
18
|
};
|
19
19
|
|
20
20
|
}
|
21
21
|
|
22
22
|
declare class ColumnGroupingPlugin extends GridPlugin {
|
23
23
|
|
24
|
-
constructor(options?: ColumnGroupingPlugin.Options);
|
24
|
+
constructor(options?: ColumnGroupingPlugin.Options|null);
|
25
25
|
|
26
26
|
public beforeProcessOption(optionName: string, optionValue: any): any;
|
27
27
|
|
@@ -37,23 +37,37 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
37
37
|
|
38
38
|
public addColumnToGroup(column: any, groupId: string, colIndex: number): void;
|
39
39
|
|
40
|
-
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition): boolean;
|
40
|
+
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition|null): boolean;
|
41
41
|
|
42
|
-
public addColumnGrouping(groupDef: ColumnGroupingPlugin.GroupDefinition): void;
|
42
|
+
public addColumnGrouping(groupDef: ColumnGroupingPlugin.GroupDefinition|null): void;
|
43
43
|
|
44
44
|
public removeGroup(groupId: string): any;
|
45
45
|
|
46
|
-
public setGroupDefinitions(groupDefs: ColumnGroupingPlugin.GroupDefinitions): void;
|
46
|
+
public setGroupDefinitions(groupDefs: ColumnGroupingPlugin.GroupDefinitions|null): void;
|
47
47
|
|
48
48
|
public getGroupDefinitions(): ColumnGroupingPlugin.GroupDefinitions;
|
49
49
|
|
50
|
-
public setGroupDefinition(groupId: string, newDef: ColumnGroupingPlugin.GroupDefinition): void;
|
50
|
+
public setGroupDefinition(groupId: string, newDef: ColumnGroupingPlugin.GroupDefinition|null): void;
|
51
51
|
|
52
|
-
public getGroupDefinition(groupId:
|
52
|
+
public getGroupDefinition(groupId: string): ColumnGroupingPlugin.GroupDefinition|null;
|
53
53
|
|
54
|
-
public setGroupChildren(groupId: string, newChildList: (string)[]): void;
|
54
|
+
public setGroupChildren(groupId: string, newChildList: (string)[]|null): void;
|
55
55
|
|
56
|
-
public getGroupChildren(groupId:
|
56
|
+
public getGroupChildren(groupId: string): (string)[]|null;
|
57
|
+
|
58
|
+
public getChildColumnIndices(groupId: string): (number)[]|null;
|
59
|
+
|
60
|
+
public getGroupIds(colRef: string|number|null): (string)[]|null;
|
61
|
+
|
62
|
+
public getMaxGroupLevel(): number;
|
63
|
+
|
64
|
+
public getGroupLevel(groupId: string): number;
|
65
|
+
|
66
|
+
public getCellInfo(e: Element|Event|MouseEvent|null): any;
|
67
|
+
|
68
|
+
public moveColumnIntoGroup(from: number|string|null, to: number, groupId: string): void;
|
69
|
+
|
70
|
+
public setColumnParent(columnIndex: number|string|null, groupId: string): void;
|
57
71
|
|
58
72
|
}
|
59
73
|
|