@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
@@ -792,45 +792,65 @@ DataView.prototype.isSorting = function() {
|
|
792
792
|
|
793
793
|
/** Hide rows in the data view
|
794
794
|
* @param {string|number} rId Row id to hide. If the rId is a number, it will be treated as a row index
|
795
|
-
* @param {boolean=}
|
795
|
+
* @param {boolean=} hidden=true If the value is false, the specified row will be shown.
|
796
796
|
* @public
|
797
797
|
*/
|
798
|
-
DataView.prototype.hideRow = function(rId,
|
799
|
-
this.
|
798
|
+
DataView.prototype.hideRow = function(rId, hidden) {
|
799
|
+
this.hideRows([rId], hidden);
|
800
800
|
};
|
801
801
|
/** Hide rows in the data view
|
802
802
|
* @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
|
803
|
-
* @param {boolean=}
|
803
|
+
* @param {boolean=} hidden=true If the value is false, the specified rows will be shown.
|
804
804
|
* @public
|
805
805
|
*/
|
806
|
-
DataView.prototype.hideRows = function(rowRefs,
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
* @param {boolean=} opt_show hide instead show if false
|
813
|
-
* @public
|
814
|
-
*/
|
815
|
-
DataView.prototype.showRows = function(rowRefs, opt_show) {
|
816
|
-
var hidden = opt_show === false;
|
806
|
+
DataView.prototype.hideRows = function(rowRefs, hidden) {
|
807
|
+
hidden = hidden !== false;
|
808
|
+
var dirty = false;
|
809
|
+
var rids = this._toRowIds(rowRefs);
|
810
|
+
var hiddenRids = this._hiddenRids;
|
811
|
+
|
817
812
|
if(hidden){
|
818
|
-
if(!
|
819
|
-
this._hiddenRids = {};
|
813
|
+
if(!hiddenRids) {
|
814
|
+
hiddenRids = this._hiddenRids = {};
|
820
815
|
}
|
821
|
-
} else if(!
|
816
|
+
} else if(!hiddenRids) {
|
822
817
|
return; // All rows are visible
|
823
818
|
}
|
824
819
|
|
825
|
-
var rids = this._toRowIds(rowRefs);
|
826
820
|
for(var i = rids.length; --i >= 0;) {
|
827
821
|
var rid = rids[i];
|
828
822
|
if(rid) { // undefined, null, and an empty string value are not a valid row id
|
829
|
-
|
823
|
+
if(!!hiddenRids[rid] !== hidden) {
|
824
|
+
hiddenRids[rid] = hidden;
|
825
|
+
dirty = true;
|
826
|
+
}
|
830
827
|
}
|
831
828
|
}
|
832
829
|
|
833
|
-
|
830
|
+
if(dirty) {
|
831
|
+
if(!hidden) {
|
832
|
+
var hasHiddenRow = false;
|
833
|
+
for(var key in hiddenRids) {
|
834
|
+
if(hiddenRids[key]) {
|
835
|
+
hasHiddenRow = true;
|
836
|
+
break;
|
837
|
+
}
|
838
|
+
}
|
839
|
+
if(!hasHiddenRow) {
|
840
|
+
hiddenRids = this._hiddenRids = null;
|
841
|
+
}
|
842
|
+
}
|
843
|
+
this._refreshAndNotify(); // Very slow
|
844
|
+
}
|
845
|
+
};
|
846
|
+
/**
|
847
|
+
* Show/hide rows in the data view
|
848
|
+
* @param {Array.<string|number>} rowRefs Array of row ids or indices to hide
|
849
|
+
* @param {boolean=} shown=true If the value is false, the specified rows will be hidden.
|
850
|
+
* @public
|
851
|
+
*/
|
852
|
+
DataView.prototype.showRows = function(rowRefs, shown) {
|
853
|
+
this.hideRows(rowRefs, shown === false);
|
834
854
|
};
|
835
855
|
/** Unhide all rows
|
836
856
|
* @public
|
@@ -846,7 +866,7 @@ DataView.prototype.unhideAllRows = function(){
|
|
846
866
|
* @return {boolean}
|
847
867
|
*/
|
848
868
|
DataView.prototype.hasHiddenRow = function(){
|
849
|
-
return
|
869
|
+
return this._hiddenRids ? true : false;
|
850
870
|
};
|
851
871
|
|
852
872
|
/** @public
|
@@ -8,13 +8,13 @@ declare class Segment {
|
|
8
8
|
|
9
9
|
public addChild(rid: string, objMap?: any): boolean;
|
10
10
|
|
11
|
-
public addChildren(rids: (string)[], objMap?: any): boolean;
|
11
|
+
public addChildren(rids: (string)[]|null, objMap?: any): boolean;
|
12
12
|
|
13
13
|
public containsChild(rid: string): boolean;
|
14
14
|
|
15
15
|
public removeChild(rid: string, objMap?: any): boolean;
|
16
16
|
|
17
|
-
public removeChildren(rids: (string)[], objMap?: any): boolean;
|
17
|
+
public removeChildren(rids: (string)[]|null, objMap?: any): boolean;
|
18
18
|
|
19
19
|
public removeAllChildren(objMap?: any): boolean;
|
20
20
|
|
@@ -22,9 +22,9 @@ declare class Segment {
|
|
22
22
|
|
23
23
|
public getChildCount(): number;
|
24
24
|
|
25
|
-
public collapse(bool?: boolean): boolean;
|
25
|
+
public collapse(bool?: boolean|null): boolean;
|
26
26
|
|
27
|
-
public expand(bool?: boolean): boolean;
|
27
|
+
public expand(bool?: boolean|null): boolean;
|
28
28
|
|
29
29
|
public isCollapsed(): boolean;
|
30
30
|
|
@@ -34,6 +34,10 @@ declare class Segment {
|
|
34
34
|
|
35
35
|
public setValue(val: number): void;
|
36
36
|
|
37
|
+
public getOrder(): number;
|
38
|
+
|
39
|
+
public setOrder(val: number): void;
|
40
|
+
|
37
41
|
}
|
38
42
|
|
39
43
|
export default Segment;
|
@@ -27,6 +27,10 @@ Segment.prototype._collapsed = false;
|
|
27
27
|
* @private
|
28
28
|
*/
|
29
29
|
Segment.prototype._value = 0;
|
30
|
+
/** @type {number}
|
31
|
+
* @private
|
32
|
+
*/
|
33
|
+
Segment.prototype._order = 0;
|
30
34
|
|
31
35
|
|
32
36
|
/** @public
|
@@ -194,6 +198,18 @@ Segment.prototype.getValue = function() {
|
|
194
198
|
Segment.prototype.setValue = function(val) {
|
195
199
|
this._value = val;
|
196
200
|
};
|
201
|
+
/** @public
|
202
|
+
* @return {number}
|
203
|
+
*/
|
204
|
+
Segment.prototype.getOrder = function() {
|
205
|
+
return this._order;
|
206
|
+
};
|
207
|
+
/** @public
|
208
|
+
* @param {number} val
|
209
|
+
*/
|
210
|
+
Segment.prototype.setOrder = function(val) {
|
211
|
+
this._order = val;
|
212
|
+
};
|
197
213
|
|
198
214
|
|
199
215
|
export default Segment;
|
@@ -6,7 +6,7 @@ declare class SegmentCollection {
|
|
6
6
|
|
7
7
|
public addSegment(rid: string): boolean;
|
8
8
|
|
9
|
-
public addSegments(rids: (string)[]): boolean;
|
9
|
+
public addSegments(rids: (string)[]|null): boolean;
|
10
10
|
|
11
11
|
public containsSegment(rid: string): boolean;
|
12
12
|
|
@@ -24,9 +24,9 @@ declare class SegmentCollection {
|
|
24
24
|
|
25
25
|
public getSegmentIds(): (string)[];
|
26
26
|
|
27
|
-
public collapseSegment(segmentId: string, bool?: boolean): boolean;
|
27
|
+
public collapseSegment(segmentId: string, bool?: boolean|null): boolean;
|
28
28
|
|
29
|
-
public expandSegment(segmentId: string, bool?: boolean): boolean;
|
29
|
+
public expandSegment(segmentId: string, bool?: boolean|null): boolean;
|
30
30
|
|
31
31
|
public expandAllSegments(): boolean;
|
32
32
|
|
@@ -36,19 +36,21 @@ declare class SegmentCollection {
|
|
36
36
|
|
37
37
|
public addSegmentChild(segmentId: string, rid: string): boolean;
|
38
38
|
|
39
|
-
public addSegmentChildren(segmentId: string, rids: (string)[]): boolean;
|
39
|
+
public addSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
|
40
40
|
|
41
41
|
public containsSegmentChild(segmentId: string, rid: string): boolean;
|
42
42
|
|
43
43
|
public removeSegmentChild(segmentId: string, rid: string): boolean;
|
44
44
|
|
45
|
-
public removeSegmentChildren(segmentId: string, rids: (string)[]): boolean;
|
45
|
+
public removeSegmentChildren(segmentId: string, rids: (string)[]|null): boolean;
|
46
46
|
|
47
47
|
public removeAllSegmentChildren(): boolean;
|
48
48
|
|
49
|
-
public fillSegment(segmentId: string, rids: (string)[]): void;
|
49
|
+
public fillSegment(segmentId: string, rids: (string)[]|null): void;
|
50
50
|
|
51
|
-
public fillSegments(rids: (string)[]): boolean;
|
51
|
+
public fillSegments(rids: (string)[]|null): boolean;
|
52
|
+
|
53
|
+
public calcSegmentOrder(rids: (string)[]|null): void;
|
52
54
|
|
53
55
|
public getSegmentValues(rids: (string)[]): (number)[]|null;
|
54
56
|
|
@@ -38,6 +38,7 @@ SegmentCollection.prototype.addSegment = function(rid) {
|
|
38
38
|
if(rid && !this._segments[rid]) {
|
39
39
|
if(this._childToSegmentId[rid]) {
|
40
40
|
console.log("child of a segment cannot be set as a segment separator");
|
41
|
+
return false;
|
41
42
|
}
|
42
43
|
this._segments[rid] = new Segment(rid);
|
43
44
|
++this._segmentCount;
|
@@ -368,8 +369,27 @@ SegmentCollection.prototype.fillSegments = function(rids) {
|
|
368
369
|
return change;
|
369
370
|
};
|
370
371
|
/** @public
|
372
|
+
* @param {Array.<string>} rids
|
373
|
+
*/
|
374
|
+
SegmentCollection.prototype.calcSegmentOrder = function(rids) {
|
375
|
+
var ridCount = rids ? rids.length : 0;
|
376
|
+
var segmentSeparators = this._segments;
|
377
|
+
var segmentCount = this._segmentCount;
|
378
|
+
var order = 0;
|
379
|
+
for(var i = 0; i < ridCount; ++i) {
|
380
|
+
var rid = rids[i];
|
381
|
+
var segment = segmentSeparators[rid];
|
382
|
+
if(segment) {
|
383
|
+
segment.setOrder(++order);
|
384
|
+
if(order >= segmentCount) {
|
385
|
+
break;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
};
|
390
|
+
/** @public
|
371
391
|
* @param {!Array.<string>} rids Array of row ids
|
372
|
-
* @return {Array.<number>} Returns Array of segment values, if there are at least
|
392
|
+
* @return {Array.<number>} Returns Array of segment values, if there are at least one segment, otherwise returns null
|
373
393
|
*/
|
374
394
|
SegmentCollection.prototype.getSegmentValues = function(rids) {
|
375
395
|
var rowCount = rids ? rids.length : 0;
|
@@ -379,51 +399,33 @@ SegmentCollection.prototype.getSegmentValues = function(rids) {
|
|
379
399
|
var segmentSeparators = this._segments;
|
380
400
|
var childToSegmentId = this._childToSegmentId;
|
381
401
|
var curSegment = null;
|
402
|
+
var prevSegment = null;
|
382
403
|
var segmentValues = new Array(rowCount);
|
383
|
-
var curSegmentCount = 0;
|
384
404
|
var segmentVal = 0;
|
385
|
-
var
|
386
|
-
var
|
387
|
-
while(r < rowCount) {
|
405
|
+
var offset = 0;
|
406
|
+
for(var r = 0; r < rowCount; ++r) {
|
388
407
|
var rid = rids[r];
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
segmentVal += 100;
|
393
|
-
segmentValues[r] = segmentVal;
|
394
|
-
curSegment.setValue(segmentVal);
|
395
|
-
if(curSegmentCount >= this._segmentCount) {
|
396
|
-
++r;
|
397
|
-
break;
|
398
|
-
}
|
408
|
+
curSegment = segmentSeparators[rid];
|
409
|
+
if(curSegment) {
|
410
|
+
offset = 0;
|
399
411
|
} else {
|
400
|
-
|
401
|
-
|
412
|
+
var parentId = childToSegmentId[rid];
|
413
|
+
if(parentId) {
|
414
|
+
curSegment = segmentSeparators[parentId];
|
415
|
+
offset = 1;
|
402
416
|
} else {
|
403
|
-
|
404
|
-
}
|
405
|
-
if(childToSegmentId[rid]) {
|
406
|
-
childToIndex[rid] = r;
|
417
|
+
offset = prevSegment ? 10 : 0;
|
407
418
|
}
|
408
419
|
}
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
rid = rids[r];
|
414
|
-
segmentValues[r] = segmentVal + 10;
|
415
|
-
if(childToSegmentId[rid]) {
|
416
|
-
childToIndex[rid] = r;
|
417
|
-
}
|
418
|
-
++r;
|
419
|
-
}
|
420
|
-
for(var childId in childToIndex) {
|
421
|
-
curSegment = segmentSeparators[childToSegmentId[childId]];
|
422
|
-
segmentValues[childToIndex[childId]] = curSegment.getValue() + 1;
|
420
|
+
|
421
|
+
if(curSegment && prevSegment !== curSegment) {
|
422
|
+
prevSegment = curSegment;
|
423
|
+
segmentVal = curSegment.getOrder() * 100;
|
423
424
|
}
|
425
|
+
segmentValues[r] = segmentVal + offset;
|
424
426
|
}
|
425
427
|
|
426
|
-
return
|
428
|
+
return prevSegment ? segmentValues : null;
|
427
429
|
};
|
428
430
|
|
429
431
|
|
@@ -7,7 +7,7 @@ import ColumnStats from "./ColumnStats.js"; // eslint-disable-line
|
|
7
7
|
declare namespace WrappedView {
|
8
8
|
|
9
9
|
type Options = {
|
10
|
-
dataView: DataView,
|
10
|
+
dataView: DataView|null,
|
11
11
|
wrapIndex: number
|
12
12
|
};
|
13
13
|
|
@@ -15,7 +15,7 @@ declare namespace WrappedView {
|
|
15
15
|
|
16
16
|
declare class WrappedView extends EventDispatcher {
|
17
17
|
|
18
|
-
constructor(options: WrappedView.Options);
|
18
|
+
constructor(options: WrappedView.Options|null);
|
19
19
|
|
20
20
|
public dispose(): void;
|
21
21
|
|
@@ -23,15 +23,15 @@ declare class WrappedView extends EventDispatcher {
|
|
23
23
|
|
24
24
|
public getRowData(rid: string): { [key: string]: any };
|
25
25
|
|
26
|
-
public getColumnData(cid: string, inclNonDataRow?: boolean): any[];
|
26
|
+
public getColumnData(cid: string, inclNonDataRow?: boolean|null): any[];
|
27
27
|
|
28
28
|
public getRowId(rowIndex: number): string;
|
29
29
|
|
30
|
-
public getAllRowIds(shallowCopy?: boolean, inclNonDataRow?: boolean): (string)[];
|
30
|
+
public getAllRowIds(shallowCopy?: boolean|null, inclNonDataRow?: boolean|null): (string)[];
|
31
31
|
|
32
|
-
public getVisibleRowIds(shallowCopy?: boolean): (string)[];
|
32
|
+
public getVisibleRowIds(shallowCopy?: boolean|null): (string)[];
|
33
33
|
|
34
|
-
public getSortedRowIds(shallowCopy?: boolean): (string)[];
|
34
|
+
public getSortedRowIds(shallowCopy?: boolean|null): (string)[];
|
35
35
|
|
36
36
|
public getRowIndex(rid: string): number;
|
37
37
|
|
@@ -43,69 +43,69 @@ declare class WrappedView extends EventDispatcher {
|
|
43
43
|
|
44
44
|
public getPreviousData(rid: string, cid: string): { [key: string]: any };
|
45
45
|
|
46
|
-
public getMultipleRowData(rids: (string)[], opt_from?: number, opt_to?: number): (any)[];
|
46
|
+
public getMultipleRowData(rids: (string)[]|null, opt_from?: number|null, opt_to?: number|null): (any)[];
|
47
47
|
|
48
48
|
public getAllRowData(): (any)[];
|
49
49
|
|
50
50
|
public setData(rid: string, cid: string, value: any): boolean;
|
51
51
|
|
52
|
-
public setRowData(rid: string, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
|
52
|
+
public setRowData(rid: string, values?: { [key: string]: any }|null, opt_eventArg?: any): boolean;
|
53
53
|
|
54
|
-
public setColumnData(cid: string, valueList: any[], opt_ridList?: (string)[]): void;
|
54
|
+
public setColumnData(cid: string, valueList: any[]|null, opt_ridList?: (string)[]|null): void;
|
55
55
|
|
56
56
|
public setDataAt(rowIndex: number, cid: string, value: any): boolean;
|
57
57
|
|
58
|
-
public setRowDataAt(rowIndex: number, values?: { [key: string]: any }, opt_eventArg?: any): boolean;
|
58
|
+
public setRowDataAt(rowIndex: number, values?: { [key: string]: any }|null, opt_eventArg?: any): boolean;
|
59
59
|
|
60
|
-
public insertRow(rowRef: string|number, opt_values?: { [key: string]: any }, opt_rid?: string|null): string;
|
60
|
+
public insertRow(rowRef: string|number|null, opt_values?: { [key: string]: any }|null, opt_rid?: string|null|null): string;
|
61
61
|
|
62
|
-
public removeRow(rowRef: number|string): void;
|
62
|
+
public removeRow(rowRef: number|string|null): void;
|
63
63
|
|
64
|
-
public removeRows(rowRefs: (number|string)[]): void;
|
64
|
+
public removeRows(rowRefs: (number|string)[]|null): void;
|
65
65
|
|
66
|
-
public moveRow(fromRef: (number|string)[]|number|string, toRef: number|string): (string)[]|string|null;
|
66
|
+
public moveRow(fromRef: (number|string)[]|number|string|null, toRef: number|string|null): (string)[]|string|null;
|
67
67
|
|
68
68
|
public getDataTable(): DataTable|null;
|
69
69
|
|
70
70
|
public getDataSource(): DataView|null;
|
71
71
|
|
72
|
-
public setDataSource(source?: DataView): void;
|
72
|
+
public setDataSource(source?: DataView|null): void;
|
73
73
|
|
74
74
|
public setConflationRate(milliSecond: number): void;
|
75
75
|
|
76
76
|
public getConflationRate(): number;
|
77
77
|
|
78
|
-
public sort(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[], sortLogics?: ((...params: any[]) => any)|(((...params: any[]) => any))[], noOptimization?: boolean): void;
|
78
|
+
public sort(cid: string|(string)[]|null, opt_sortOrder?: string|number|(string|number)[]|null, sortLogics?: ((...params: any[]) => any)|(((...params: any[]) => any))[]|null, noOptimization?: boolean|null): void;
|
79
79
|
|
80
|
-
public sortOnce(cid: string|(string)[], opt_sortOrder?: string|number|(string|number)[]): void;
|
80
|
+
public sortOnce(cid: string|(string)[]|null, opt_sortOrder?: string|number|(string|number)[]|null): void;
|
81
81
|
|
82
|
-
public setSortingLogic(func: DataTable.SortLogic): void;
|
82
|
+
public setSortingLogic(func: DataTable.SortLogic|null): void;
|
83
83
|
|
84
|
-
public setColumnSortingLogic(cid: string, func: DataTable.SortLogic): void;
|
84
|
+
public setColumnSortingLogic(cid: string, func: DataTable.SortLogic|null): void;
|
85
85
|
|
86
86
|
public isSorting(): boolean;
|
87
87
|
|
88
|
-
public hideRow(rId: string|number, opt_show?: boolean): void;
|
88
|
+
public hideRow(rId: string|number|null, opt_show?: boolean|null): void;
|
89
89
|
|
90
|
-
public hideRows(rowRefs: (string|number)[], opt_show?: boolean): void;
|
90
|
+
public hideRows(rowRefs: (string|number)[]|null, opt_show?: boolean|null): void;
|
91
91
|
|
92
|
-
public showRows(rowRefs: (string|number)[], opt_show?: boolean): void;
|
92
|
+
public showRows(rowRefs: (string|number)[]|null, opt_show?: boolean|null): void;
|
93
93
|
|
94
94
|
public unhideAllRows(): void;
|
95
95
|
|
96
96
|
public hasHiddenRow(): boolean;
|
97
97
|
|
98
|
-
public filterIn(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): boolean;
|
98
|
+
public filterIn(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean|null): boolean;
|
99
99
|
|
100
100
|
public filterOut(cid: string|((...params: any[]) => any), value?: any): boolean;
|
101
101
|
|
102
|
-
public filterInOnce(cid: string|((...params: any[]) => any), value?: any, opt_filteringOut?: boolean): void;
|
102
|
+
public filterInOnce(cid: string|((...params: any[]) => any)|null, value?: any, opt_filteringOut?: boolean|null): void;
|
103
103
|
|
104
104
|
public filterOutOnce(cid: string|((...params: any[]) => any), value?: any): void;
|
105
105
|
|
106
106
|
public clearFilter(): void;
|
107
107
|
|
108
|
-
public disablePageCorrection(opt_disable?: boolean): void;
|
108
|
+
public disablePageCorrection(opt_disable?: boolean|null): void;
|
109
109
|
|
110
110
|
public setPage(pageIndex: number): boolean;
|
111
111
|
|
@@ -137,25 +137,25 @@ declare class WrappedView extends EventDispatcher {
|
|
137
137
|
|
138
138
|
public setPageSize(pageSize: number): void;
|
139
139
|
|
140
|
-
public groupBy(cid: string|((...params: any[]) => any)|(string|((...params: any[]) => any))[], opt_predefinedGroups?: any[]): void;
|
140
|
+
public groupBy(cid: string|((...params: any[]) => any)|(string|((...params: any[]) => any))[]|null, opt_predefinedGroups?: any[]|null): void;
|
141
141
|
|
142
142
|
public addGroup(value: any|any[]): void;
|
143
143
|
|
144
|
-
public sortGroups(compare?: ((...params: any[]) => any)): void;
|
144
|
+
public sortGroups(compare?: ((...params: any[]) => any)|null): void;
|
145
145
|
|
146
|
-
public moveGroup(groupRef: number|string, destIndex: number): void;
|
146
|
+
public moveGroup(groupRef: number|string|null, destIndex: number): void;
|
147
147
|
|
148
|
-
public setPredefinedGroups(predefinedGroups: any[]): void;
|
148
|
+
public setPredefinedGroups(predefinedGroups: any[]|null): void;
|
149
149
|
|
150
|
-
public addFooter(opt_num?: number): void;
|
150
|
+
public addFooter(opt_num?: number|null): void;
|
151
151
|
|
152
152
|
public removeFooter(): void;
|
153
153
|
|
154
154
|
public getGroupByRowId(rowId: string): DataView|null;
|
155
155
|
|
156
|
-
public getGroup(groupRef: number|string): DataView|null;
|
156
|
+
public getGroup(groupRef: number|string|null): DataView|null;
|
157
157
|
|
158
|
-
public getAllGroups(out_ary?: any[]): (DataView)[];
|
158
|
+
public getAllGroups(out_ary?: any[]|null): (DataView)[];
|
159
159
|
|
160
160
|
public getGroupList(): (string)[]|null;
|
161
161
|
|
@@ -169,67 +169,67 @@ declare class WrappedView extends EventDispatcher {
|
|
169
169
|
|
170
170
|
public getGroupRows(): null;
|
171
171
|
|
172
|
-
public getGroupLevel(rowRef?: (number|string)): number;
|
172
|
+
public getGroupLevel(rowRef?: (number|string)|null): number;
|
173
173
|
|
174
|
-
public enableColumnStats(cid: string, opt_enabled?: boolean, opt_refId?: string): ColumnStats|null;
|
174
|
+
public enableColumnStats(cid: string, opt_enabled?: boolean|null, opt_refId?: string|null): ColumnStats|null;
|
175
175
|
|
176
176
|
public getColumnStats(cid: string): ColumnStats|null;
|
177
177
|
|
178
|
-
public hide(opt_hidden?: boolean): boolean;
|
178
|
+
public hide(opt_hidden?: boolean|null): boolean;
|
179
179
|
|
180
180
|
public isHidden(): boolean;
|
181
181
|
|
182
182
|
public isHiddenRow(rowId: string): boolean;
|
183
183
|
|
184
|
-
public collapse(opt_collapsed?: boolean): void;
|
184
|
+
public collapse(opt_collapsed?: boolean|null): void;
|
185
185
|
|
186
|
-
public collapseAllGroups(opt_collapsed?: boolean): void;
|
186
|
+
public collapseAllGroups(opt_collapsed?: boolean|null): void;
|
187
187
|
|
188
188
|
public toggleCollapsedState(): void;
|
189
189
|
|
190
190
|
public isCollapsed(): boolean;
|
191
191
|
|
192
|
-
public enableContentAsHeader(bool?: boolean): void;
|
192
|
+
public enableContentAsHeader(bool?: boolean|null): void;
|
193
193
|
|
194
194
|
public getVisibleRowCount(): number;
|
195
195
|
|
196
|
-
public isRowDataInGroup(rowData: any, groupID?: string): boolean;
|
196
|
+
public isRowDataInGroup(rowData: any, groupID?: string|null): boolean;
|
197
197
|
|
198
|
-
public isRowIdInGroup(rowId: string, groupID?: string): boolean;
|
198
|
+
public isRowIdInGroup(rowId: string, groupID?: string|null): boolean;
|
199
199
|
|
200
|
-
public addRowExpansion(rid: string, count?: number): void;
|
200
|
+
public addRowExpansion(rid: string, count?: number|null): void;
|
201
201
|
|
202
202
|
public removeRowExpansion(rid: string): void;
|
203
203
|
|
204
|
-
public toggleRowExpansion(rowRef: string|number, force?: boolean, count?: number): void;
|
204
|
+
public toggleRowExpansion(rowRef: string|number|null, force?: boolean|null, count?: number|null): void;
|
205
205
|
|
206
206
|
public removeAllRowExpansions(): void;
|
207
207
|
|
208
|
-
public getExpansionParents(from?: number, to?: number): (string)[]|null;
|
208
|
+
public getExpansionParents(from?: number|null, to?: number|null): (string)[]|null;
|
209
209
|
|
210
210
|
public isRowExpansion(rid: string): boolean;
|
211
211
|
|
212
212
|
public hasRowExpansion(rid: string): boolean;
|
213
213
|
|
214
|
-
public getRowExpansionId(rid: string, idx?: number): string;
|
214
|
+
public getRowExpansionId(rid: string, idx?: number|null): string;
|
215
215
|
|
216
216
|
public getRowExpansionIndex(rid: string): number;
|
217
217
|
|
218
|
-
public searchAll(searchLogic: ((...params: any[]) => any), opt_out?: (string)[]): (string)[];
|
218
|
+
public searchAll(searchLogic: ((...params: any[]) => any)|null, opt_out?: (string)[]|null): (string)[];
|
219
219
|
|
220
|
-
public searchPrev(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
|
220
|
+
public searchPrev(rowRef: number|string|null, searchLogic: ((...params: any[]) => any)|null): number;
|
221
221
|
|
222
|
-
public searchNext(rowRef: number|string, searchLogic: ((...params: any[]) => any)): number;
|
222
|
+
public searchNext(rowRef: number|string|null, searchLogic: ((...params: any[]) => any)|null): number;
|
223
223
|
|
224
|
-
public stall(opt_bool?: boolean): boolean;
|
224
|
+
public stall(opt_bool?: boolean|null): boolean;
|
225
225
|
|
226
|
-
public enableAutoGroupRemoval(opt_bool?: boolean): boolean;
|
226
|
+
public enableAutoGroupRemoval(opt_bool?: boolean|null): boolean;
|
227
227
|
|
228
|
-
public enableAutoGroupHiding(opt_bool?: boolean): boolean;
|
228
|
+
public enableAutoGroupHiding(opt_bool?: boolean|null): boolean;
|
229
229
|
|
230
230
|
public synchronizeRowOrder(): void;
|
231
231
|
|
232
|
-
public setSegmentSeparator(rowRef: string|number, enabled?: boolean): boolean;
|
232
|
+
public setSegmentSeparator(rowRef: string|number|null, enabled?: boolean|null): boolean;
|
233
233
|
|
234
234
|
public unsetAllSegmentSeparators(): boolean;
|
235
235
|
|
@@ -239,39 +239,39 @@ declare class WrappedView extends EventDispatcher {
|
|
239
239
|
|
240
240
|
public getSegmentParentRowId(rid: string): string;
|
241
241
|
|
242
|
-
public collapseSegment(rowRef: string|number, collapsed?: boolean): boolean;
|
242
|
+
public collapseSegment(rowRef: string|number|null, collapsed?: boolean|null): boolean;
|
243
243
|
|
244
|
-
public expandSegment(rowRef: string|number, expanded?: boolean): boolean;
|
244
|
+
public expandSegment(rowRef: string|number|null, expanded?: boolean|null): boolean;
|
245
245
|
|
246
246
|
public expandAllSegments(): boolean;
|
247
247
|
|
248
|
-
public isSegmentCollapsed(rowRef: string|number): boolean;
|
248
|
+
public isSegmentCollapsed(rowRef: string|number|null): boolean;
|
249
249
|
|
250
|
-
public fillSegment(segmentRef: string|number): void;
|
250
|
+
public fillSegment(segmentRef: string|number|null): void;
|
251
251
|
|
252
252
|
public fillSegments(): void;
|
253
253
|
|
254
|
-
public addSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
|
254
|
+
public addSegmentChild(segmentRef: string|number|null, rowRef: string|number|null): boolean;
|
255
255
|
|
256
|
-
public addSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
|
256
|
+
public addSegmentChildren(segmentRef: string|number|null, rowRefs: (string|number)[]|null): boolean;
|
257
257
|
|
258
|
-
public removeSegmentChild(segmentRef: string|number, rowRef: string|number): boolean;
|
258
|
+
public removeSegmentChild(segmentRef: string|number|null, rowRef: string|number|null): boolean;
|
259
259
|
|
260
|
-
public removeSegmentChildren(segmentRef: string|number, rowRefs: (string|number)[]): boolean;
|
260
|
+
public removeSegmentChildren(segmentRef: string|number|null, rowRefs: (string|number)[]|null): boolean;
|
261
261
|
|
262
262
|
public removeAllSegmentChildren(): boolean;
|
263
263
|
|
264
264
|
public getSegmentIds(): (string)[]|null;
|
265
265
|
|
266
|
-
public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
|
266
|
+
public getSegmentChildIds(segmentRef: string|number|null): (string)[]|null;
|
267
267
|
|
268
|
-
public sortSegments(compare: ((...params: any[]) => any)): void;
|
268
|
+
public sortSegments(compare: ((...params: any[]) => any)|null): void;
|
269
269
|
|
270
270
|
public getWrapSize(): number;
|
271
271
|
|
272
272
|
public getWrappedViews(): (WrappedView)[]|null;
|
273
273
|
|
274
|
-
public wrapView(wrapSize?: number): void;
|
274
|
+
public wrapView(wrapSize?: number|null): void;
|
275
275
|
|
276
276
|
public dump(opt_options?: any): (any)[];
|
277
277
|
|