@refinitiv-ui/efx-grid 6.0.5 → 6.0.6
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 +372 -229
- 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 +33 -10
- 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 +4 -4
- package/lib/core/es6/data/SegmentCollection.d.ts +7 -7
- 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/CellFloatingPanel.d.ts +2 -2
- 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 +12 -2
- 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/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/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 +20 -35
- 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/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 +4 -4
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +7 -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/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 +26 -26
- package/package.json +2 -2
@@ -3,7 +3,7 @@ import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
|
3
3
|
|
4
4
|
declare class HttpRequest extends EventDispatcher {
|
5
5
|
|
6
|
-
constructor(url: string, payload?: any|string, opt_serviceName?: string);
|
6
|
+
constructor(url: string, payload?: any|string|null, opt_serviceName?: string|null);
|
7
7
|
|
8
8
|
public static readonly defaultTimeout: number;
|
9
9
|
|
@@ -33,11 +33,11 @@ declare class HttpRequest extends EventDispatcher {
|
|
33
33
|
|
34
34
|
public log(): void;
|
35
35
|
|
36
|
-
public send(opt_requestedHeaders?: { [key: string]: string }): HttpRequest;
|
36
|
+
public send(opt_requestedHeaders?: { [key: string]: string }|null): HttpRequest;
|
37
37
|
|
38
38
|
public abort(): void;
|
39
39
|
|
40
|
-
public then(onFulfilled: ((...params: any[]) => any), onRejected?: ((...params: any[]) => any)): HttpRequest;
|
40
|
+
public then(onFulfilled: ((...params: any[]) => any)|null, onRejected?: ((...params: any[]) => any)|null): HttpRequest;
|
41
41
|
|
42
42
|
public catch(onRejected: ((...params: any[]) => any)|null): HttpRequest;
|
43
43
|
|
@@ -3,25 +3,25 @@ import ElementWrapper from "../components/ElementWrapper.js";
|
|
3
3
|
|
4
4
|
declare class PercentBar extends ElementWrapper {
|
5
5
|
|
6
|
-
constructor(opt_element?: Element);
|
6
|
+
constructor(opt_element?: Element|null);
|
7
7
|
|
8
8
|
public getValue(): number;
|
9
9
|
|
10
10
|
public getPercent(): number;
|
11
11
|
|
12
|
-
public setValue(value: number|string, opt_max?: number, opt_displayText?: string): void;
|
12
|
+
public setValue(value: number|string|null, opt_max?: number|null, opt_displayText?: string|null): void;
|
13
13
|
|
14
14
|
public setMax(absVal: number): void;
|
15
15
|
|
16
16
|
public setText(txt: string): void;
|
17
17
|
|
18
|
-
public hideText(opt_hiden?: boolean): void;
|
18
|
+
public hideText(opt_hiden?: boolean|null): void;
|
19
19
|
|
20
20
|
public isTextHidden(): boolean;
|
21
21
|
|
22
|
-
public setTextWidth(width: number|string): void;
|
22
|
+
public setTextWidth(width: number|string|null): void;
|
23
23
|
|
24
|
-
public setMaxTextLength(width: number|string): void;
|
24
|
+
public setMaxTextLength(width: number|string|null): void;
|
25
25
|
|
26
26
|
public getTextScrollWidth(): number;
|
27
27
|
|
@@ -31,11 +31,11 @@ declare class PercentBar extends ElementWrapper {
|
|
31
31
|
|
32
32
|
public setMovementColor(colorObject?: any): void;
|
33
33
|
|
34
|
-
public useMovementColor(opt_enabled?: boolean): void;
|
34
|
+
public useMovementColor(opt_enabled?: boolean|null): void;
|
35
35
|
|
36
|
-
public setTrackColor(color?: string): void;
|
36
|
+
public setTrackColor(color?: string|null): void;
|
37
37
|
|
38
|
-
public enableTooltip(opt_enabled?: boolean): void;
|
38
|
+
public enableTooltip(opt_enabled?: boolean|null): void;
|
39
39
|
|
40
40
|
}
|
41
41
|
|
@@ -7,23 +7,23 @@ declare class PercentBarRenderer {
|
|
7
7
|
|
8
8
|
public dispose(): void;
|
9
9
|
|
10
|
-
public render(cell: ElementWrapper, value: number, opt_max?: number, opt_displayText?: string, opt_textWidth?: number): void;
|
10
|
+
public render(cell: ElementWrapper|null, value: number, opt_max?: number|null, opt_displayText?: string|null, opt_textWidth?: number|null): void;
|
11
11
|
|
12
|
-
public renderForPrinting(cell: ElementWrapper, value: number, opt_max?: number): PercentBar|null;
|
12
|
+
public renderForPrinting(cell: ElementWrapper|null, value: number, opt_max?: number|null): PercentBar|null;
|
13
13
|
|
14
14
|
public setAlignment(alignment: string): void;
|
15
15
|
|
16
16
|
public setMovementColor(colorObj?: any): void;
|
17
17
|
|
18
|
-
public useMovementColor(opt_enabled?: boolean): void;
|
18
|
+
public useMovementColor(opt_enabled?: boolean|null): void;
|
19
19
|
|
20
|
-
public setTrackColor(color?: string): void;
|
20
|
+
public setTrackColor(color?: string|null): void;
|
21
21
|
|
22
|
-
public hideText(opt_enabled?: boolean): void;
|
22
|
+
public hideText(opt_enabled?: boolean|null): void;
|
23
23
|
|
24
|
-
public setTextWidth(width: number|string, opt_pbs?: (PercentBar)[]): void;
|
24
|
+
public setTextWidth(width: number|string|null, opt_pbs?: (PercentBar)[]|null): void;
|
25
25
|
|
26
|
-
public enableTooltip(opt_enabled?: boolean): void;
|
26
|
+
public enableTooltip(opt_enabled?: boolean|null): void;
|
27
27
|
|
28
28
|
public getAlignment(): string;
|
29
29
|
|
@@ -33,7 +33,7 @@ declare class PercentBarRenderer {
|
|
33
33
|
|
34
34
|
public startTextAutoResizing(): boolean;
|
35
35
|
|
36
|
-
public endTextAutoResizing(widthLimit?: number, opt_resetToDefaultWidth?: boolean, opt_pbs?: (PercentBar)[]): void;
|
36
|
+
public endTextAutoResizing(widthLimit?: number|null, opt_resetToDefaultWidth?: boolean|null, opt_pbs?: (PercentBar)[]|null): void;
|
37
37
|
|
38
38
|
}
|
39
39
|
|
@@ -191,7 +191,7 @@ RangeBar.prototype._getRenderValue = function (val, ff) {
|
|
191
191
|
* @return {string}
|
192
192
|
*/
|
193
193
|
RangeBar.prototype._calculateTooltip = function () {
|
194
|
-
var tooltipLinebreakChar = Util.getTooltipLinebreakChar();
|
194
|
+
var tooltipLinebreakChar = " "; // Util.getTooltipLinebreakChar();
|
195
195
|
var renderLowVal = this._getRenderValue(this._lowVal, this._opt_ffLowVal);
|
196
196
|
var renderLastVal = this._getRenderValue(this._lastVal, this._opt_ffLastVal);
|
197
197
|
var renderHighVal = this._getRenderValue(this._highVal, this._opt_ffHighVal);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
declare class Reverter {
|
4
4
|
|
5
|
-
constructor(opt_func?: ((...params: any[]) => any)|number, opt_ms?: number|((...params: any[]) => any));
|
5
|
+
constructor(opt_func?: ((...params: any[]) => any)|number|null, opt_ms?: number|((...params: any[]) => any)|null);
|
6
6
|
|
7
7
|
public start(): void;
|
8
8
|
|
@@ -13,7 +13,7 @@ declare class SectionSettings extends EventDispatcher {
|
|
13
13
|
|
14
14
|
public getId(): string;
|
15
15
|
|
16
|
-
public setId(str?: string): string;
|
16
|
+
public setId(str?: string|null): string;
|
17
17
|
|
18
18
|
public getSection(): ILayoutGrid|null;
|
19
19
|
|
@@ -27,19 +27,19 @@ declare class SectionSettings extends EventDispatcher {
|
|
27
27
|
|
28
28
|
public getDataSource(): DataView|null;
|
29
29
|
|
30
|
-
public setDataSource(dataView: DataView): void;
|
30
|
+
public setDataSource(dataView: DataView|null): void;
|
31
31
|
|
32
32
|
public getRootDataSource(): DataTable|DataView|null;
|
33
33
|
|
34
|
-
public getData(colName: string, rowRef: number|string): any;
|
34
|
+
public getData(colName: string, rowRef: number|string|null): any;
|
35
35
|
|
36
|
-
public setData(colName: string, rowRef: number|string, data: any): boolean;
|
36
|
+
public setData(colName: string, rowRef: number|string|null, data: any): boolean;
|
37
37
|
|
38
|
-
public getRowData(rowRef: number|string): { [key: string]: any };
|
38
|
+
public getRowData(rowRef: number|string|null): { [key: string]: any };
|
39
39
|
|
40
|
-
public removeRowData(rowRef: number|string): boolean;
|
40
|
+
public removeRowData(rowRef: number|string|null): boolean;
|
41
41
|
|
42
|
-
public activateColumns(activations: (boolean|undefined)[], firstIndex: number, lastIndex: number): void;
|
42
|
+
public activateColumns(activations: (boolean|undefined)[]|null, firstIndex: number, lastIndex: number): void;
|
43
43
|
|
44
44
|
public getChildren(): (SectionSettings)[]|null;
|
45
45
|
|
@@ -49,7 +49,7 @@ declare class SectionSettings extends EventDispatcher {
|
|
49
49
|
|
50
50
|
public disableConflation(opt_disabled: boolean): void;
|
51
51
|
|
52
|
-
public disableDataBinding(opt_disabled?: boolean): void;
|
52
|
+
public disableDataBinding(opt_disabled?: boolean|null): void;
|
53
53
|
|
54
54
|
public getAutoSyncRowCount(): boolean;
|
55
55
|
|
@@ -59,21 +59,21 @@ declare class SectionSettings extends EventDispatcher {
|
|
59
59
|
|
60
60
|
public extendRenderEventArg(e: any, fromR: number, toR: number): any;
|
61
61
|
|
62
|
-
public extendDataEventArg(e?: any, begin?: number, end?: number): any;
|
62
|
+
public extendDataEventArg(e?: any, begin?: number|null, end?: number|null): any;
|
63
63
|
|
64
|
-
public enableColumnVirtualization(opt_enabled?: boolean): void;
|
64
|
+
public enableColumnVirtualization(opt_enabled?: boolean|null): void;
|
65
65
|
|
66
66
|
public isBinding(): boolean;
|
67
67
|
|
68
|
-
public updateRowData(fromRowIndex?: number, lastRowIndex?: number, e?: any): void;
|
68
|
+
public updateRowData(fromRowIndex?: number|null, lastRowIndex?: number|null, e?: any): void;
|
69
69
|
|
70
70
|
public rerender(): void;
|
71
71
|
|
72
|
-
public snapshot(clone: ILayoutGrid): void;
|
72
|
+
public snapshot(clone: ILayoutGrid|null): void;
|
73
73
|
|
74
74
|
}
|
75
75
|
|
76
|
-
declare function rowIndex(activations: (boolean|undefined)[], firstIndex: number, lastIndex: number): void;
|
76
|
+
declare function rowIndex(activations: (boolean|undefined)[]|null, firstIndex: number, lastIndex: number): void;
|
77
77
|
|
78
78
|
export default SectionSettings;
|
79
79
|
export { SectionSettings };
|
@@ -24,7 +24,7 @@ declare class SelectionList {
|
|
24
24
|
|
25
25
|
public getSelection(at: number): boolean;
|
26
26
|
|
27
|
-
public setSelection(at: number, opt_selected?: boolean): boolean;
|
27
|
+
public setSelection(at: number, opt_selected?: boolean|null): boolean;
|
28
28
|
|
29
29
|
public getSelectionAnchor(): number;
|
30
30
|
|
@@ -42,7 +42,7 @@ declare class SelectionList {
|
|
42
42
|
|
43
43
|
public clearAllSelections(): number;
|
44
44
|
|
45
|
-
public copyFrom(srcSelections: SelectionList, fromSrcIndex: number, offsetIndex: number, forLength: number): void;
|
45
|
+
public copyFrom(srcSelections: SelectionList|null, fromSrcIndex: number, offsetIndex: number, forLength: number): void;
|
46
46
|
|
47
47
|
}
|
48
48
|
|
@@ -6,11 +6,11 @@ declare class TrackLayout {
|
|
6
6
|
|
7
7
|
public hitTest(val: number): number;
|
8
8
|
|
9
|
-
public isAtDefaultSize(opt_index?: number): boolean;
|
9
|
+
public isAtDefaultSize(opt_index?: number|null): boolean;
|
10
10
|
|
11
11
|
public isHomogeneous(): boolean;
|
12
12
|
|
13
|
-
public isAtMinimumSize(opt_index?: number): boolean;
|
13
|
+
public isAtMinimumSize(opt_index?: number|null): boolean;
|
14
14
|
|
15
15
|
public isFixedSize(): boolean;
|
16
16
|
|
@@ -54,23 +54,23 @@ declare class TrackLayout {
|
|
54
54
|
|
55
55
|
public getMinimumLaneSize(index: number): number;
|
56
56
|
|
57
|
-
public setMinimumLaneSize(index: number, val: number, proportion?: boolean): boolean;
|
57
|
+
public setMinimumLaneSize(index: number, val: number, proportion?: boolean|null): boolean;
|
58
58
|
|
59
59
|
public isLaneVisible(index: number): boolean;
|
60
60
|
|
61
|
-
public showLane(index: number, opt_val?: boolean): boolean;
|
61
|
+
public showLane(index: number, opt_val?: boolean|null): boolean;
|
62
62
|
|
63
|
-
public hideLane(index: number, opt_hidden?: boolean, opt_bitIndex?: number): boolean;
|
63
|
+
public hideLane(index: number, opt_hidden?: boolean|null, opt_bitIndex?: number|null): boolean;
|
64
64
|
|
65
|
-
public show(opt_shown?: boolean): void;
|
65
|
+
public show(opt_shown?: boolean|null): void;
|
66
66
|
|
67
67
|
public getLaneScalability(index: number): boolean;
|
68
68
|
|
69
69
|
public setLaneScalability(index: number, val: boolean): boolean;
|
70
70
|
|
71
|
-
public removeLaneAt(index: number, opt_count?: number): any|null|null;
|
71
|
+
public removeLaneAt(index: number, opt_count?: number|null): any|null|null;
|
72
72
|
|
73
|
-
public insertLane(index: number, opt_json?: number|any): void;
|
73
|
+
public insertLane(index: number, opt_json?: number|any|null): void;
|
74
74
|
|
75
75
|
public moveLane(from: number, to: number): void;
|
76
76
|
|
@@ -78,7 +78,7 @@ declare class TrackLayout {
|
|
78
78
|
|
79
79
|
public deserializeLane(index: number, opt_json?: any): void;
|
80
80
|
|
81
|
-
public copyFrom(src: TrackLayout, offset?: number): void;
|
81
|
+
public copyFrom(src: TrackLayout|null, offset?: number|null): void;
|
82
82
|
|
83
83
|
}
|
84
84
|
|
@@ -26,13 +26,13 @@ declare class Virtualizer extends EventDispatcher {
|
|
26
26
|
|
27
27
|
public getPrevLastIndexInView(): number;
|
28
28
|
|
29
|
-
public update(opt_force?: boolean): boolean;
|
29
|
+
public update(opt_force?: boolean|null): boolean;
|
30
30
|
|
31
31
|
public isEnabled(): boolean;
|
32
32
|
|
33
|
-
public enable(opt_enabled?: boolean): void;
|
33
|
+
public enable(opt_enabled?: boolean|null): void;
|
34
34
|
|
35
|
-
public disable(opt_disabled?: boolean): void;
|
35
|
+
public disable(opt_disabled?: boolean|null): void;
|
36
36
|
|
37
37
|
}
|
38
38
|
|
@@ -4,15 +4,17 @@ declare namespace Util {
|
|
4
4
|
|
5
5
|
const isMobile: boolean;
|
6
6
|
|
7
|
-
function pushArrayItems(ary: any[], items: any[]): any[]|null;
|
7
|
+
function pushArrayItems(ary: any[]|null, items: any[]|null): any[]|null;
|
8
8
|
|
9
|
-
function insertEmptyItems(ary: any[], at: number, chunkSize: number): void;
|
9
|
+
function insertEmptyItems(ary: any[]|null, at: number, chunkSize: number): void;
|
10
10
|
|
11
|
-
function cycleArray(ary: any[], numItems: number): any[]|null;
|
11
|
+
function cycleArray(ary: any[]|null, numItems: number): any[]|null;
|
12
|
+
|
13
|
+
function closestElement(elem: Element|Node|undefined|null, classStr: string): Element|null;
|
12
14
|
|
13
15
|
}
|
14
16
|
|
15
|
-
declare function item(ary: any[]|
|
17
|
+
declare function item(ary: any[]|null, items: any[]|null): any[]|null;
|
16
18
|
|
17
19
|
export default Util;
|
18
20
|
export { Util };
|
@@ -159,40 +159,6 @@ Util.moveArrayItem = function (ary, from, to) {
|
|
159
159
|
}
|
160
160
|
return ary;
|
161
161
|
};
|
162
|
-
/** Insert an item in the given array at the specified position. If the position exceeds the array length, the array will be expanded
|
163
|
-
* @public
|
164
|
-
* @ignore
|
165
|
-
* @param {Array|*} ary
|
166
|
-
* @param {number} at INCLUSIVE
|
167
|
-
* @param {*} item
|
168
|
-
*/
|
169
|
-
Util.insertArrayItem = function (ary, at, item) {
|
170
|
-
if (!ary) { return; }
|
171
|
-
|
172
|
-
if (at < 0) {
|
173
|
-
return; // Negative index cannot be added
|
174
|
-
}
|
175
|
-
if (at < ary.length) {
|
176
|
-
ary.splice(at, 0, item); // any subsequence item is shifted to the right
|
177
|
-
} else {
|
178
|
-
ary[at] = item;
|
179
|
-
}
|
180
|
-
};
|
181
|
-
/** Remove the specified item from the given array
|
182
|
-
* @public
|
183
|
-
* @ignore
|
184
|
-
* @param {Array|*} ary
|
185
|
-
* @param {number} at INCLUSIVE
|
186
|
-
* @return {*} removed item. If not existed, null is returned
|
187
|
-
*/
|
188
|
-
Util.removeArrayItem = function (ary, at) {
|
189
|
-
if (!ary) { return null; }
|
190
|
-
|
191
|
-
if (at >= 0 && at < ary.length) {
|
192
|
-
return ary.splice(at, 1)[0];
|
193
|
-
}
|
194
|
-
return null;
|
195
|
-
};
|
196
162
|
/** @public
|
197
163
|
* @function
|
198
164
|
* @param {Array} ary
|
@@ -260,35 +226,6 @@ Util.cycleArray = function (ary, numItems) {
|
|
260
226
|
return ary || null;
|
261
227
|
};
|
262
228
|
|
263
|
-
/** Correct the index when associated item is moved by the specified indices
|
264
|
-
* @public
|
265
|
-
* @ignore
|
266
|
-
* @param {number|null} num
|
267
|
-
* @param {number|null} from INCLUSIVE removed index
|
268
|
-
* @param {number|null=} opt_to INCLUSIVE added index
|
269
|
-
* @return {number} Negative if the index is removed
|
270
|
-
*/
|
271
|
-
Util.moveIndex = function (num, from, opt_to) {
|
272
|
-
if (!Util.isNumber(num)) { return -1; }
|
273
|
-
if (num === from) {
|
274
|
-
if (Util.isNumber(opt_to)) {
|
275
|
-
return /** @type{number} */(opt_to);
|
276
|
-
}
|
277
|
-
return -1;
|
278
|
-
}
|
279
|
-
if (from !== null) {
|
280
|
-
if (num > from) {
|
281
|
-
--num;
|
282
|
-
}
|
283
|
-
}
|
284
|
-
if (opt_to !== null) {
|
285
|
-
if (num >= opt_to) {
|
286
|
-
++num;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
return /** @type{number} */(num);
|
290
|
-
};
|
291
|
-
|
292
229
|
/** STL implementation of lowerBound() of the C++ vector class with no recursion
|
293
230
|
* @public
|
294
231
|
* @ignore
|
@@ -361,28 +298,6 @@ Util.stringFormat = function (format) {
|
|
361
298
|
Util._defaultLessComparator = function (left, right) {
|
362
299
|
return left < right;
|
363
300
|
};
|
364
|
-
/** @public
|
365
|
-
* @function
|
366
|
-
* @ignore
|
367
|
-
* @param {number} left
|
368
|
-
* @param {number} right
|
369
|
-
* @return {number}
|
370
|
-
* @example [4, 1, 2].sort(Util._numericSorter) === [1, 2, 4];
|
371
|
-
*/
|
372
|
-
Util._numericSorter = function (left, right) {
|
373
|
-
return left - right;
|
374
|
-
};
|
375
|
-
|
376
|
-
/** @public
|
377
|
-
* @function
|
378
|
-
* @ignore
|
379
|
-
* @param {Event} e
|
380
|
-
*/
|
381
|
-
Util._preventDefault = function (e) {
|
382
|
-
e.preventDefault();
|
383
|
-
e.stopPropagation();
|
384
|
-
};
|
385
|
-
|
386
301
|
/**
|
387
302
|
* @public
|
388
303
|
* @function
|
@@ -420,24 +335,34 @@ Util.calculatePercent = function (lowVal, lastVal, highVal) {
|
|
420
335
|
return percent * 100;
|
421
336
|
};
|
422
337
|
|
423
|
-
/** @description
|
338
|
+
/** @description The method returns closest ancestor element or the element itself with specified class string. Otherwise, it returns null
|
424
339
|
* @public
|
425
340
|
* @function
|
426
|
-
* @ignore
|
427
341
|
* @param {Element|Node|undefined} elem
|
428
342
|
* @param {string} classStr The class string can only be one single class without spaces
|
429
343
|
* @return {Element}
|
430
344
|
*/
|
431
345
|
Util.closestElement = function (elem, classStr) {
|
432
346
|
var n = elem;
|
433
|
-
while (n
|
434
|
-
if
|
435
|
-
|
347
|
+
while (n) {
|
348
|
+
if(n.classList) { // DocumentFragment does not have classList property
|
349
|
+
if (n.classList.contains(classStr)) {
|
350
|
+
return /** @type{Element} */(n);
|
351
|
+
}
|
436
352
|
}
|
437
|
-
n = n.parentNode;
|
353
|
+
n = n.parentNode || n.host; // ShadowRoot has host, but not parentNode
|
438
354
|
}
|
439
355
|
return null;
|
440
356
|
};
|
357
|
+
/** @public
|
358
|
+
* @function
|
359
|
+
* @ignore
|
360
|
+
* @param {Event} e
|
361
|
+
*/
|
362
|
+
Util._preventDefault = function (e) {
|
363
|
+
e.preventDefault();
|
364
|
+
e.stopPropagation();
|
365
|
+
};
|
441
366
|
|
442
367
|
/** @public
|
443
368
|
* @type {boolean}
|