@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
@@ -4,33 +4,33 @@ declare class MockQuotes {
|
|
4
4
|
|
5
5
|
constructor();
|
6
6
|
|
7
|
-
public create(opt_id?: string): MockSubscription|null;
|
7
|
+
public create(opt_id?: string|null): MockSubscription|null;
|
8
8
|
|
9
9
|
}
|
10
10
|
|
11
11
|
declare class MockSubscription {
|
12
12
|
|
13
|
-
constructor(opt_id?: string);
|
13
|
+
constructor(opt_id?: string|null);
|
14
14
|
|
15
|
-
public create(opt_id?: string): MockSubscription|null;
|
15
|
+
public create(opt_id?: string|null): MockSubscription|null;
|
16
16
|
|
17
|
-
public formattedFields(fields: (string)[]): MockSubscription|null;
|
17
|
+
public formattedFields(fields: (string)[]|null): MockSubscription|null;
|
18
18
|
|
19
|
-
public rawFields(fields: (string)[]): MockSubscription|null;
|
19
|
+
public rawFields(fields: (string)[]|null): MockSubscription|null;
|
20
20
|
|
21
21
|
public chain(ric: string): MockSubscription|null;
|
22
22
|
|
23
|
-
public rics(ric: string|(string)[]): MockSubscription|null;
|
23
|
+
public rics(ric: string|(string)[]|null): MockSubscription|null;
|
24
24
|
|
25
25
|
public start(): MockSubscription|null;
|
26
26
|
|
27
27
|
public stop(): MockSubscription|null;
|
28
28
|
|
29
|
-
public onNewRow(handler: ((...params: any[]) => any)): MockSubscription|null;
|
29
|
+
public onNewRow(handler: ((...params: any[]) => any)|null): MockSubscription|null;
|
30
30
|
|
31
|
-
public onUpdate(handler: ((...params: any[]) => any)): MockSubscription|null;
|
31
|
+
public onUpdate(handler: ((...params: any[]) => any)|null): MockSubscription|null;
|
32
32
|
|
33
|
-
public onRemoveRow(handler: ((...params: any[]) => any)): MockSubscription|null;
|
33
|
+
public onRemoveRow(handler: ((...params: any[]) => any)|null): MockSubscription|null;
|
34
34
|
|
35
35
|
}
|
36
36
|
|
@@ -5,10 +5,16 @@ declare class MockQuotes2 {
|
|
5
5
|
|
6
6
|
constructor();
|
7
7
|
|
8
|
+
public config(options?: any): void;
|
9
|
+
|
8
10
|
public create(options?: any): MockSubscriptions|null;
|
9
11
|
|
10
12
|
public isSkipHeaderSupported(): boolean;
|
11
13
|
|
14
|
+
public setUpdateInterval(min?: number|null, max?: number|null): void;
|
15
|
+
|
16
|
+
public setPercentageDataUpdate(percent?: number|null): void;
|
17
|
+
|
12
18
|
}
|
13
19
|
|
14
20
|
declare class MockSubscriptions {
|
@@ -17,17 +23,19 @@ declare class MockSubscriptions {
|
|
17
23
|
|
18
24
|
public create(options?: any): MockSubscriptions|null;
|
19
25
|
|
20
|
-
public
|
26
|
+
public config(options?: any): void;
|
27
|
+
|
28
|
+
public setUpdateInterval(min?: number|null, max?: number|null): void;
|
21
29
|
|
22
|
-
public setPercentageDataUpdate(percent?: number): void;
|
30
|
+
public setPercentageDataUpdate(percent?: number|null): void;
|
23
31
|
|
24
32
|
public setSeed(seed: number): void;
|
25
33
|
|
26
|
-
public addRic(ric: string, subId?: string): string|null|null;
|
34
|
+
public addRic(ric: string, subId?: string|null): string|null|null;
|
27
35
|
|
28
|
-
public addChain(ric: string, subId?: string): string|null|null;
|
36
|
+
public addChain(ric: string, subId?: string|null): string|null|null;
|
29
37
|
|
30
|
-
public addFields(fields: string|(string)[]): void;
|
38
|
+
public addFields(fields: string|(string)[]|null): void;
|
31
39
|
|
32
40
|
public removeSubscription(subId: string): void;
|
33
41
|
|
@@ -37,7 +45,7 @@ declare class MockSubscriptions {
|
|
37
45
|
|
38
46
|
public removeAllSubscriptions(): void;
|
39
47
|
|
40
|
-
public removeFields(fields: string|(string)[]): void;
|
48
|
+
public removeFields(fields: string|(string)[]|null): void;
|
41
49
|
|
42
50
|
public removeAllFields(): void;
|
43
51
|
|
@@ -47,9 +55,9 @@ declare class MockSubscriptions {
|
|
47
55
|
|
48
56
|
public dispose(): void;
|
49
57
|
|
50
|
-
public addEventListener(type: string, handler: ((...params: any[]) => any)): void;
|
58
|
+
public addEventListener(type: string, handler: ((...params: any[]) => any)|null): void;
|
51
59
|
|
52
|
-
public removeEventListener(type: string, handler: ((...params: any[]) => any)): void;
|
60
|
+
public removeEventListener(type: string, handler: ((...params: any[]) => any)|null): void;
|
53
61
|
|
54
62
|
public removeAllEventListeners(): void;
|
55
63
|
|
@@ -65,7 +73,7 @@ declare class MockSubscriptions {
|
|
65
73
|
|
66
74
|
public static simpleDigest(str: string): number;
|
67
75
|
|
68
|
-
public onFeedStatusChanged(feedNames: (string)[], handler: ((...params: any[]) => any)): MockSubscriptions|null;
|
76
|
+
public onFeedStatusChanged(feedNames: (string)[]|null, handler: ((...params: any[]) => any)|null): MockSubscriptions|null;
|
69
77
|
|
70
78
|
}
|
71
79
|
|
@@ -14,13 +14,33 @@ var _joinSubKeys = function(subA, subB) {
|
|
14
14
|
var MockQuotes2 = function() {
|
15
15
|
|
16
16
|
};
|
17
|
+
/** @private
|
18
|
+
* @type {*}
|
19
|
+
*/
|
20
|
+
MockQuotes2.prototype._lastSub = null;
|
21
|
+
/** @private
|
22
|
+
* @type {Object}
|
23
|
+
*/
|
24
|
+
MockQuotes2.prototype._configObj = null;
|
17
25
|
|
26
|
+
/** @public
|
27
|
+
* @param {Object=} options
|
28
|
+
*/
|
29
|
+
MockQuotes2.prototype.config = function(options) {
|
30
|
+
if(options) {
|
31
|
+
this._configObj = options;
|
32
|
+
}
|
33
|
+
if(this._lastSub && this._configObj) {
|
34
|
+
this._lastSub.config(this._configObj);
|
35
|
+
}
|
36
|
+
};
|
18
37
|
/** @public
|
19
38
|
* @param {Object=} options
|
20
39
|
* @return {MockSubscriptions}
|
21
40
|
*/
|
22
41
|
MockQuotes2.prototype.create = function(options) {
|
23
|
-
|
42
|
+
this._lastSub = new MockSubscriptions(options || this._configObj);
|
43
|
+
return this._lastSub;
|
24
44
|
};
|
25
45
|
|
26
46
|
/** @public
|
@@ -30,30 +50,40 @@ MockQuotes2.prototype.isSkipHeaderSupported = function() {
|
|
30
50
|
return true;
|
31
51
|
};
|
32
52
|
|
53
|
+
/** @public
|
54
|
+
* @param {number=} min
|
55
|
+
* @param {number=} max
|
56
|
+
*/
|
57
|
+
MockQuotes2.prototype.setUpdateInterval = function(min, max) {
|
58
|
+
if(this._lastSub) {
|
59
|
+
this._lastSub.setUpdateInterval(min, max);
|
60
|
+
} else {
|
61
|
+
if(!this._configObj) {
|
62
|
+
this._configObj = {};
|
63
|
+
}
|
64
|
+
this._configObj.minInterval = min;
|
65
|
+
this._configObj.maxInterval = max;
|
66
|
+
}
|
67
|
+
};
|
68
|
+
/** @public
|
69
|
+
* @param {number=} percent
|
70
|
+
*/
|
71
|
+
MockQuotes2.prototype.setPercentageDataUpdate = function(percent) {
|
72
|
+
if(this._lastSub) {
|
73
|
+
this._lastSub.setPercentageDataUpdate(percent);
|
74
|
+
} else {
|
75
|
+
if(!this._configObj) {
|
76
|
+
this._configObj = {};
|
77
|
+
}
|
78
|
+
this._configObj.percentageDataUpdate = percent;
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
33
82
|
|
34
83
|
/** @constructor
|
35
84
|
* @param {Object=} options
|
36
85
|
*/
|
37
86
|
var MockSubscriptions = function(options) {
|
38
|
-
if(options) {
|
39
|
-
if(typeof options.minInterval === "number") {
|
40
|
-
this._minInterval = options.minInterval;
|
41
|
-
if(this._minInterval > this._maxInterval) {
|
42
|
-
this._maxInterval = this._minInterval;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
if(typeof options.maxInterval === "number") {
|
47
|
-
this._maxInterval = options.maxInterval;
|
48
|
-
if(this._minInterval > this._maxInterval) {
|
49
|
-
this._minInterval = this._maxInterval;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
if(typeof options.percentageDataUpdate === "number") {
|
54
|
-
this._percentageDataUpdate = options.percentageDataUpdate / 100;
|
55
|
-
}
|
56
|
-
}
|
57
87
|
this._onSubscriptionResponse = this._onSubscriptionResponse.bind(this);
|
58
88
|
|
59
89
|
this._subMap = {};
|
@@ -61,21 +91,51 @@ var MockSubscriptions = function(options) {
|
|
61
91
|
this._fields = {};
|
62
92
|
this._events = {};
|
63
93
|
this._dataGen = new DataGenerator();
|
94
|
+
|
95
|
+
this.config(options);
|
64
96
|
};
|
65
97
|
|
66
|
-
|
98
|
+
/** @private
|
67
99
|
* @type {number}
|
68
100
|
*/
|
69
101
|
MockSubscriptions.prototype._minInterval = 750;
|
70
|
-
|
102
|
+
/** @private
|
71
103
|
* @type {number}
|
72
104
|
*/
|
73
105
|
MockSubscriptions.prototype._maxInterval = 850;
|
74
|
-
|
75
|
-
* @type {
|
106
|
+
/** @private
|
107
|
+
* @type {number}
|
76
108
|
*/
|
77
109
|
MockSubscriptions.prototype._percentageDataUpdate = 0.1; // 10% by default
|
78
110
|
|
111
|
+
/** @public
|
112
|
+
* @param {Object=} options
|
113
|
+
*/
|
114
|
+
MockSubscriptions.prototype.config = function(options) {
|
115
|
+
if(!options) {
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
var num = options.minInterval;
|
119
|
+
if(typeof num === "number") {
|
120
|
+
this._minInterval = num;
|
121
|
+
if(this._minInterval > this._maxInterval) {
|
122
|
+
this._maxInterval = this._minInterval;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
num = options.maxInterval;
|
127
|
+
if(typeof num === "number") {
|
128
|
+
this._maxInterval = num;
|
129
|
+
if(this._minInterval > this._maxInterval) {
|
130
|
+
this._minInterval = this._maxInterval;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
num = options.percentageDataUpdate;
|
135
|
+
if(typeof num === "number") {
|
136
|
+
this._percentageDataUpdate = num / 100;
|
137
|
+
}
|
138
|
+
};
|
79
139
|
/** @public
|
80
140
|
* @param {number=} min
|
81
141
|
* @param {number=} max
|
@@ -1,8 +1,48 @@
|
|
1
|
-
import { DataGrid, setInvalidFields } from "./mockDataAPI.js";
|
1
|
+
import { DataGrid, Adc, setInvalidFields } from "./mockDataAPI.js";
|
2
2
|
import { MockQuotes2 } from "./MockQuotes2.js";
|
3
3
|
import { cloneObject } from "../Util.js";
|
4
4
|
|
5
|
-
declare
|
5
|
+
declare class MockRTKData {
|
6
|
+
|
7
|
+
constructor();
|
8
|
+
|
9
|
+
public static readonly DataGrid: any;
|
10
|
+
|
11
|
+
public static readonly Adc: any;
|
12
|
+
|
13
|
+
public static readonly Data: any;
|
14
|
+
|
15
|
+
public static request(payload: any): any;
|
16
|
+
|
17
|
+
public static request(payload: any): any;
|
18
|
+
|
19
|
+
public static setInvalidFields(payload: any): any;
|
20
|
+
|
21
|
+
}
|
22
|
+
|
23
|
+
declare class MockRTK {
|
24
|
+
|
25
|
+
constructor();
|
26
|
+
|
27
|
+
public static readonly DataGrid: any;
|
28
|
+
|
29
|
+
public static readonly Adc: any;
|
30
|
+
|
31
|
+
public static readonly Quotes: MockQuotes2|null;
|
32
|
+
|
33
|
+
public static readonly Data: any;
|
34
|
+
|
35
|
+
public static request(payload: any): any;
|
36
|
+
|
37
|
+
public static request(payload: any): any;
|
38
|
+
|
39
|
+
public static setInvalidFields(payload: any): any;
|
40
|
+
|
41
|
+
public static init(options?: any): MockRTK|null;
|
42
|
+
|
43
|
+
public static ready(options?: any): MockRTK|null;
|
44
|
+
|
45
|
+
}
|
6
46
|
|
7
47
|
export default MockRTK;
|
8
48
|
export { MockRTK };
|
@@ -1,43 +1,82 @@
|
|
1
|
-
import { DataGrid, setInvalidFields } from "./mockDataAPI.js";
|
1
|
+
import { DataGrid, Adc, setInvalidFields } from "./mockDataAPI.js";
|
2
2
|
import { MockQuotes2 } from "./MockQuotes2.js";
|
3
3
|
import { cloneObject } from "../Util.js";
|
4
4
|
|
5
|
-
|
5
|
+
/** @constructor */
|
6
|
+
var MockRTKData = {};
|
6
7
|
|
8
|
+
/** @type {Object}
|
9
|
+
* @public
|
10
|
+
*/
|
11
|
+
MockRTKData.DataGrid = cloneObject(DataGrid);
|
7
12
|
/** @public
|
8
13
|
* @param {Object} payload
|
9
14
|
* @return {*}
|
10
15
|
*/
|
11
|
-
|
16
|
+
MockRTKData.DataGrid.request = function (payload) {
|
12
17
|
var p = DataGrid.request(payload);
|
13
18
|
return p.then(function (res) {
|
14
19
|
return JSON.parse(res);
|
15
20
|
});
|
16
21
|
};
|
17
22
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
/** @type {Object}
|
24
|
+
* @public
|
25
|
+
*/
|
26
|
+
MockRTKData.Adc = cloneObject(Adc);
|
27
|
+
/** @public
|
28
|
+
* @param {Object} payload
|
29
|
+
* @return {*}
|
30
|
+
*/
|
31
|
+
MockRTKData.Adc.request = function (payload) {
|
32
|
+
var p = Adc.request(payload);
|
33
|
+
return p.then(function (res) {
|
34
|
+
return JSON.parse(res);
|
35
|
+
});
|
28
36
|
};
|
29
37
|
|
30
38
|
/** @public
|
31
|
-
* @
|
39
|
+
* @function
|
40
|
+
* @param {Object} payload
|
41
|
+
* @return {*}
|
42
|
+
*/
|
43
|
+
MockRTKData.setInvalidFields = setInvalidFields;
|
44
|
+
|
45
|
+
|
46
|
+
/** @constructor */
|
47
|
+
var MockRTK = {};
|
48
|
+
|
49
|
+
/** @type {MockQuotes2}
|
50
|
+
* @public
|
51
|
+
*/
|
52
|
+
MockRTK.Quotes = new MockQuotes2();
|
53
|
+
/** @type {Object}
|
54
|
+
* @public
|
55
|
+
*/
|
56
|
+
MockRTK.Data = MockRTKData;
|
57
|
+
|
58
|
+
/** @public
|
59
|
+
* @param {Object=} options
|
32
60
|
* @return {MockRTK}
|
33
61
|
*/
|
34
|
-
function
|
62
|
+
MockRTK.init = function (options) {
|
63
|
+
if(options) {
|
64
|
+
MockRTK.Quotes.config(options);
|
65
|
+
}
|
66
|
+
|
35
67
|
return new Promise(function (resolve, reject) {
|
36
68
|
setTimeout(function(){
|
37
69
|
resolve(MockRTK);
|
38
70
|
}, 300);
|
39
71
|
});
|
40
|
-
}
|
72
|
+
};
|
73
|
+
/** @public
|
74
|
+
* @param {Object=} options
|
75
|
+
* @return {MockRTK}
|
76
|
+
*/
|
77
|
+
MockRTK.ready = function (options) {
|
78
|
+
return MockRTK.init(options);
|
79
|
+
};
|
41
80
|
|
42
81
|
export default MockRTK;
|
43
82
|
export { MockRTK };
|
@@ -4,8 +4,8 @@ declare namespace DataGrid {
|
|
4
4
|
|
5
5
|
}
|
6
6
|
|
7
|
-
declare function setInvalidFields(fields: (string)[]|string): void;
|
7
|
+
declare function setInvalidFields(fields: (string)[]|string|null): void;
|
8
8
|
|
9
9
|
declare function mockDataAPI(dataType: string): Promise<any>|null;
|
10
10
|
|
11
|
-
export { mockDataAPI, DataGrid, setInvalidFields };
|
11
|
+
export { mockDataAPI, DataGrid, Adc, setInvalidFields };
|
@@ -31,6 +31,11 @@ var dataGen = new DataGenerator();
|
|
31
31
|
*/
|
32
32
|
var DataGrid = {};
|
33
33
|
|
34
|
+
/** @private
|
35
|
+
* @namespace
|
36
|
+
*/
|
37
|
+
var Adc = {};
|
38
|
+
|
34
39
|
/** @private
|
35
40
|
* @function
|
36
41
|
* @param {Object} payload
|
@@ -109,6 +114,97 @@ DataGrid.request = function (payload, mockResponse) {
|
|
109
114
|
}));
|
110
115
|
};
|
111
116
|
|
117
|
+
/** @private
|
118
|
+
* @function
|
119
|
+
* @param {Object} payload
|
120
|
+
* @param {Object=} mockResponse
|
121
|
+
* @return {Promise}
|
122
|
+
*/
|
123
|
+
Adc.request = function (payload, mockResponse) {
|
124
|
+
if (mockResponse) {
|
125
|
+
return Promise.resolve(JSON.stringify(mockResponse));
|
126
|
+
}
|
127
|
+
|
128
|
+
var i, f, len, row;
|
129
|
+
var identifiers = payload.identifiers;
|
130
|
+
var formula = payload.formula.split(",");
|
131
|
+
var fields = [];
|
132
|
+
|
133
|
+
// _invalidFieldDict is a dictionary of non exist field
|
134
|
+
// so we must remove invalid field to make "mocking api" return result more like a "real api".
|
135
|
+
var invalidDict = _invalidFieldDict;
|
136
|
+
for (i = 0; i < formula.length; i++) {
|
137
|
+
f = formula[i];
|
138
|
+
if (!invalidDict[f]) {
|
139
|
+
fields.push(f);
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
// build row header
|
144
|
+
var rows = [];
|
145
|
+
rows[0] = [{
|
146
|
+
"h": true,
|
147
|
+
"i": "instrument",
|
148
|
+
"v": "Instrument"
|
149
|
+
}];
|
150
|
+
for (i = 0; i < fields.length; i++) {
|
151
|
+
f = fields[i];
|
152
|
+
rows[0].push({
|
153
|
+
"h": true,
|
154
|
+
"r": f.toUpperCase()
|
155
|
+
// "v": "Price Close", // Doesn't use
|
156
|
+
// "p": "I_TRP_PH_PriceClose" // Doesn't use this property
|
157
|
+
});
|
158
|
+
}
|
159
|
+
|
160
|
+
// build data
|
161
|
+
var rowMap = {};
|
162
|
+
|
163
|
+
len = identifiers.length;
|
164
|
+
var rowData = dataGen.generate(fields, len);
|
165
|
+
for (i = 0; i < len; ++i) {
|
166
|
+
var inst = identifiers[i];
|
167
|
+
row = rowMap[inst];
|
168
|
+
if (!row) {
|
169
|
+
row = rowMap[inst] = rowData[i];
|
170
|
+
row.unshift(inst); // prepend instrument on each row
|
171
|
+
}
|
172
|
+
rows.push(row);
|
173
|
+
}
|
174
|
+
|
175
|
+
// There is a chance that rtk will return multiple row data per instrument
|
176
|
+
// so we must create mock up for this case
|
177
|
+
if (rows.length > 0) {
|
178
|
+
var chance = dataGen.randInt(1, 10);
|
179
|
+
if (chance <= 3) { // chance 30%
|
180
|
+
var pos = dataGen.randInt(0, rows.length - 1); // random row pos
|
181
|
+
row = rows[pos];
|
182
|
+
len = row.length;
|
183
|
+
var mockupRow = new Array(len);
|
184
|
+
mockupRow[0] = row[0]; // 1st index is for instrument
|
185
|
+
for (i = 1; i < len; i++) {
|
186
|
+
mockupRow[i] = ''; // real case will return null or empty string
|
187
|
+
}
|
188
|
+
rows.splice(pos + 1, 0, mockupRow);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
/*
|
193
|
+
response type is :
|
194
|
+
{
|
195
|
+
cols: number,
|
196
|
+
faults: Array<obj>,
|
197
|
+
rows: Array<obj>,
|
198
|
+
status: string
|
199
|
+
}
|
200
|
+
Currently, we use only the rows property for cache ADC data
|
201
|
+
*/
|
202
|
+
return Promise.resolve(JSON.stringify({
|
203
|
+
rows: rows
|
204
|
+
// TODO : supports faults property
|
205
|
+
}));
|
206
|
+
};
|
207
|
+
|
112
208
|
/** @public
|
113
209
|
* @function
|
114
210
|
* @param {string} dataType
|
@@ -117,6 +213,8 @@ DataGrid.request = function (payload, mockResponse) {
|
|
117
213
|
var mockDataAPI = function (dataType) {
|
118
214
|
if (dataType === "datagrid") {
|
119
215
|
return Promise.resolve(DataGrid);
|
216
|
+
} else if(dataType === "adc") {
|
217
|
+
return Promise.resolve(Adc);
|
120
218
|
} else {
|
121
219
|
return Promise.reject(dataType + " is not supported.");
|
122
220
|
}
|
@@ -128,4 +226,4 @@ var mockDataAPI = function (dataType) {
|
|
128
226
|
*/
|
129
227
|
mockDataAPI.setInvalidFields = setInvalidFields;
|
130
228
|
|
131
|
-
export { mockDataAPI, DataGrid, setInvalidFields };
|
229
|
+
export { mockDataAPI, DataGrid, Adc, setInvalidFields };
|
@@ -7,14 +7,14 @@ import { isIE, cloneObject, prepareTSVContent } from "../../tr-grid-util/es6/Uti
|
|
7
7
|
declare namespace CellSelectionPlugin {
|
8
8
|
|
9
9
|
type Options = {
|
10
|
-
mode?: string,
|
11
|
-
multipleSelection?: boolean,
|
12
|
-
autoDeselecting?: boolean,
|
13
|
-
tabToSelect?: boolean,
|
14
|
-
selectionChanged?: ((...params: any[]) => any),
|
15
|
-
copy?: ((...params: any[]) => any),
|
16
|
-
beforeMouseDown?: ((...params: any[]) => any),
|
17
|
-
selectableSections?: any[]
|
10
|
+
mode?: string|null,
|
11
|
+
multipleSelection?: boolean|null,
|
12
|
+
autoDeselecting?: boolean|null,
|
13
|
+
tabToSelect?: boolean|null,
|
14
|
+
selectionChanged?: ((...params: any[]) => any)|null,
|
15
|
+
copy?: ((...params: any[]) => any)|null,
|
16
|
+
beforeMouseDown?: ((...params: any[]) => any)|null,
|
17
|
+
selectableSections?: any[]|null
|
18
18
|
};
|
19
19
|
|
20
20
|
}
|
@@ -41,7 +41,7 @@ declare class CellSelectionPlugin extends GridPlugin {
|
|
41
41
|
|
42
42
|
public getLastSelectionBounds(opt_ret?: any): any;
|
43
43
|
|
44
|
-
public setSelectableSections(types?: (string|(string)[]|null)): void;
|
44
|
+
public setSelectableSections(types?: (string|(string)[]|null)|null): void;
|
45
45
|
|
46
46
|
public selectSingleCell(anchor: any): void;
|
47
47
|
|
@@ -53,9 +53,9 @@ declare class CellSelectionPlugin extends GridPlugin {
|
|
53
53
|
|
54
54
|
public getAnchorInfo(): any;
|
55
55
|
|
56
|
-
public getSelectedCells(): (any[])[];
|
56
|
+
public getSelectedCells(): (any[])[]|null;
|
57
57
|
|
58
|
-
public disableSelection(opt_disable?: boolean): void;
|
58
|
+
public disableSelection(opt_disable?: boolean|null): void;
|
59
59
|
|
60
60
|
public setAutoDeselectingOnBlur(bool: boolean): void;
|
61
61
|
|
@@ -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
|
|