@refinitiv-ui/efx-grid 6.0.2 → 6.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/column-dragging/es6/ColumnDragging.d.ts +49 -0
- package/lib/column-dragging/es6/ColumnDragging.js +764 -0
- package/lib/column-dragging/es6/index.d.ts +1 -0
- package/lib/column-dragging/es6/index.js +1 -0
- package/lib/column-format-dialog/lib/column-format-dialog.d.ts +13 -1
- package/lib/column-selection-dialog/lib/column-selection-dialog.d.ts +15 -2
- package/lib/column-selection-dialog/lib/column-selection-dialog.js +146 -5
- package/lib/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +468 -1092
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.d.ts +2 -2
- package/lib/core/es6/data/DataCache.d.ts +4 -4
- package/lib/core/es6/data/DataTable.d.ts +5 -5
- package/lib/core/es6/data/DataTable.js +33 -11
- package/lib/core/es6/data/DataView.d.ts +12 -18
- package/lib/core/es6/data/DataView.js +0 -4
- package/lib/core/es6/data/Segment.d.ts +2 -0
- package/lib/core/es6/data/Segment.js +7 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
- package/lib/core/es6/data/WrappedView.d.ts +13 -13
- package/lib/core/es6/data/WrappedView.js +6 -6
- package/lib/core/es6/grid/Core.d.ts +31 -27
- package/lib/core/es6/grid/Core.js +47 -11
- package/lib/core/es6/grid/ILayoutGrid.d.ts +15 -15
- package/lib/core/es6/grid/LayoutGrid.js +54 -26
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +71 -0
- package/lib/core/es6/grid/components/Cell.d.ts +4 -4
- package/lib/core/es6/grid/components/CellFloatingPanel.d.ts +1 -1
- package/lib/core/es6/grid/components/CellSpans.d.ts +8 -8
- package/lib/core/es6/grid/components/Column.d.ts +1 -1
- package/lib/core/es6/grid/components/ElementWrapper.d.ts +6 -6
- package/lib/core/es6/grid/components/Scrollbar.d.ts +3 -1
- package/lib/core/es6/grid/components/Scrollbar.js +13 -0
- package/lib/core/es6/grid/components/StretchedCells.js +2 -2
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +14 -6
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +147 -81
- package/lib/core/es6/grid/util/Conflator.d.ts +2 -2
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +3 -3
- package/lib/core/es6/grid/util/HttpRequest.d.ts +2 -2
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +1 -1
- package/lib/core/es6/grid/util/RangeBar.d.ts +1 -1
- package/lib/core/es6/grid/util/SectionSettings.d.ts +5 -5
- package/lib/core/es6/grid/util/SectionSettings.js +5 -0
- package/lib/core/es6/grid/util/SelectionList.d.ts +2 -2
- package/lib/core/es6/grid/util/TrackLayout.d.ts +7 -3
- package/lib/core/es6/grid/util/TrackLayout.js +27 -0
- package/lib/core/es6/grid/util/util.d.ts +2 -2
- package/lib/core/es6/index.d.ts +1 -5
- package/lib/core/es6/index.js +1 -7
- package/lib/core/es6/tr-grid-theme.js +1 -1
- package/lib/filter-dialog/lib/checkbox-list.d.ts +13 -1
- package/lib/filter-dialog/lib/filter-dialog.d.ts +14 -1
- package/lib/filter-dialog/lib/filter-dialog.js +86 -26
- package/lib/filter-dialog/themes/base-checkbox.less +8 -1
- package/lib/filter-dialog/themes/base.less +69 -1
- package/lib/filter-dialog/themes/elemental/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/light/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/checkbox-list.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +2 -2
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/lib/efx-grid.d.ts +25 -10
- package/lib/grid/lib/efx-grid.js +22 -56
- package/lib/grid/themes/base.less +1 -1
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +33 -39
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/charcoal/efx-grid.js +1 -1
- package/lib/grid/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/grid/themes/solar/pearl/efx-grid.js +1 -1
- package/lib/grid/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/row-segmenting/es6/RowSegmenting.d.ts +7 -2
- package/lib/row-segmenting/es6/RowSegmenting.js +98 -11
- package/lib/rt-grid/dist/rt-grid.js +1244 -1249
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.d.ts +5 -3
- package/lib/rt-grid/es6/ColumnDefinition.js +17 -108
- package/lib/rt-grid/es6/DataConnector.d.ts +3 -3
- package/lib/rt-grid/es6/Grid.d.ts +24 -9
- package/lib/rt-grid/es6/Grid.js +285 -103
- package/lib/rt-grid/es6/RowDefSorter.d.ts +19 -0
- package/lib/rt-grid/es6/RowDefSorter.js +137 -0
- package/lib/rt-grid/es6/RowDefinition.d.ts +9 -7
- package/lib/rt-grid/es6/RowDefinition.js +6 -0
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +6 -1
- package/lib/rt-grid/es6/SnapshotFiller.js +144 -15
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +4 -3
- package/lib/tr-grid-checkbox/es6/Checkbox.js +51 -21
- package/lib/tr-grid-column-selection/es6/ColumnSelection.js +46 -9
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +8 -4
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +240 -125
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +4 -3
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +28 -13
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +8 -5
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +106 -3
- package/lib/tr-grid-percent-bar/es6/PercentBar.js +1 -1
- package/lib/tr-grid-printer/es6/CellWriter.d.ts +3 -3
- package/lib/tr-grid-printer/es6/GridPrinter.d.ts +1 -1
- package/lib/tr-grid-printer/es6/GridPrinter.js +26 -13
- package/lib/tr-grid-printer/es6/PrintTrait.d.ts +2 -2
- package/lib/tr-grid-printer/es6/SectionWriter.d.ts +3 -3
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +3 -4
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +86 -195
- package/lib/tr-grid-row-grouping/es6/RowGrouping.d.ts +7 -2
- package/lib/tr-grid-row-grouping/es6/RowGrouping.js +97 -7
- package/lib/tr-grid-row-selection/es6/RowSelection.d.ts +8 -8
- package/lib/tr-grid-row-selection/es6/RowSelection.js +55 -31
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +1 -1
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +12 -0
- package/lib/tr-grid-util/es6/CellPainter.js +1 -1
- package/lib/tr-grid-util/es6/DragUI.d.ts +16 -0
- package/lib/tr-grid-util/es6/DragUI.js +214 -0
- package/lib/tr-grid-util/es6/ElementObserver.d.ts +2 -0
- package/lib/tr-grid-util/es6/ElementObserver.js +32 -2
- package/lib/tr-grid-util/es6/ElfUtil.d.ts +4 -1
- package/lib/tr-grid-util/es6/ElfUtil.js +131 -28
- package/lib/tr-grid-util/es6/ExpanderIcon.js +2 -2
- package/lib/tr-grid-util/es6/FieldFormatter.js +7 -5
- package/lib/tr-grid-util/es6/GridPlugin.js +8 -4
- package/lib/tr-grid-util/es6/MultiTableManager.d.ts +8 -0
- package/lib/tr-grid-util/es6/MultiTableManager.js +164 -57
- package/lib/tr-grid-util/es6/NumberFormatter.d.ts +2 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
- package/lib/tr-grid-util/es6/RowPainter.js +57 -19
- package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
- package/lib/tr-grid-util/es6/jsx.d.ts +223 -0
- package/lib/types/es6/Checkbox.d.ts +4 -3
- package/lib/types/es6/ColumnStack.d.ts +8 -4
- package/lib/types/es6/CompositeGrid/ColumnSelectionPlugin.d.ts +3 -2
- package/lib/types/es6/CompositeGrid/ColumnWidthAdjustingPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/CompositeGrid.d.ts +20 -18
- package/lib/types/es6/CompositeGrid/DragAndDropTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/DraggableContentPlugin.d.ts +3 -2
- package/lib/types/es6/CompositeGrid/Plugin.d.ts +28 -0
- package/lib/types/es6/CompositeGrid/ResizableTitlePlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/RowSelectionPlugin.d.ts +5 -4
- package/lib/types/es6/CompositeGrid/TreeIndentingPlugin.d.ts +2 -1
- package/lib/types/es6/CompositeGrid/index.d.ts +9 -9
- package/lib/types/es6/ConditionalColoring.d.ts +4 -3
- package/lib/types/es6/Core/data/ColumnStats.d.ts +2 -2
- package/lib/types/es6/Core/data/DataCache.d.ts +4 -4
- package/lib/types/es6/Core/data/DataTable.d.ts +5 -5
- package/lib/types/es6/Core/data/DataView.d.ts +12 -18
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +3 -3
- package/lib/types/es6/Core/data/WrappedView.d.ts +13 -13
- package/lib/types/es6/Core/grid/Core.d.ts +31 -27
- package/lib/types/es6/Core/grid/ILayoutGrid.d.ts +15 -15
- package/lib/types/es6/Core/grid/components/Cell.d.ts +4 -4
- package/lib/types/es6/Core/grid/components/CellFloatingPanel.d.ts +1 -1
- package/lib/types/es6/Core/grid/components/CellSpans.d.ts +8 -8
- package/lib/types/es6/Core/grid/components/Column.d.ts +1 -1
- package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +6 -6
- package/lib/types/es6/Core/grid/components/Scrollbar.d.ts +3 -1
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +14 -6
- package/lib/types/es6/Core/grid/util/Conflator.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +3 -3
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +1 -1
- package/lib/types/es6/Core/grid/util/SectionSettings.d.ts +5 -5
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +2 -2
- package/lib/types/es6/Core/grid/util/TrackLayout.d.ts +7 -3
- package/lib/types/es6/Core/grid/util/util.d.ts +2 -2
- package/lib/types/es6/Core/index.d.ts +1 -5
- package/lib/types/es6/ExtensionOptions.d.ts +2 -0
- package/lib/types/es6/InCellEditing.d.ts +8 -5
- package/lib/types/es6/RealtimeGrid/ColumnDefinition.d.ts +5 -3
- package/lib/types/es6/RealtimeGrid/DataConnector.d.ts +3 -3
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +24 -9
- package/lib/types/es6/RealtimeGrid/RowDefSorter.d.ts +19 -0
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +9 -7
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +6 -1
- package/lib/types/es6/RowDragging.d.ts +3 -4
- package/lib/types/es6/RowGrouping.d.ts +7 -2
- package/lib/types/es6/RowSegmenting.d.ts +7 -2
- package/lib/types/es6/RowSelection.d.ts +8 -8
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/types/es6/index.d.ts +1 -0
- package/lib/versions.json +17 -16
- package/package.json +1 -1
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
- package/lib/core/es6/grid/plugins/DragAndDropTitlePlugin.js +0 -615
- package/lib/core/es6/grid/plugins/Plugin.d.ts +0 -28
- package/lib/core/es6/grid/plugins/Plugin.js +0 -272
- package/lib/types/es6/Core/grid/plugins/DragAndDropTitlePlugin.d.ts +0 -24
- package/lib/types/es6/Core/grid/plugins/Plugin.d.ts +0 -28
@@ -68,23 +68,23 @@ declare class Core extends ElementWrapper {
|
|
68
68
|
|
69
69
|
public getSectionCount(): number;
|
70
70
|
|
71
|
-
public addSection(opt_type?: string, opt_sectionName?: string): ILayoutGrid|null;
|
71
|
+
public addSection(opt_type?: string, opt_sectionName?: string): ILayoutGrid|null|null;
|
72
72
|
|
73
|
-
public addSectionAt(at: number, opt_type?: string, opt_sectionName?: string): ILayoutGrid|null;
|
73
|
+
public addSectionAt(at: number, opt_type?: string, opt_sectionName?: string): ILayoutGrid|null|null;
|
74
74
|
|
75
|
-
public removeSection(sectionRef: Core.SectionReference): ILayoutGrid;
|
75
|
+
public removeSection(sectionRef: Core.SectionReference): ILayoutGrid|null;
|
76
76
|
|
77
|
-
public removeSectionAt(at: number): ILayoutGrid;
|
77
|
+
public removeSectionAt(at: number): ILayoutGrid|null;
|
78
78
|
|
79
|
-
public removeLastSection(): ILayoutGrid;
|
79
|
+
public removeLastSection(): ILayoutGrid|null;
|
80
80
|
|
81
81
|
public removeAllSections(): void;
|
82
82
|
|
83
83
|
public setBottomPaddingSection(paddingSize: boolean|number): void;
|
84
84
|
|
85
|
-
public getSection(sectionRef: Core.SectionReference): ILayoutGrid;
|
85
|
+
public getSection(sectionRef: Core.SectionReference): ILayoutGrid|null;
|
86
86
|
|
87
|
-
public getSectionSettings(sectionRef: Core.SectionReference): SectionSettings;
|
87
|
+
public getSectionSettings(sectionRef: Core.SectionReference): SectionSettings|null;
|
88
88
|
|
89
89
|
public getAllSections(opt_type?: string): (ILayoutGrid)[];
|
90
90
|
|
@@ -94,23 +94,23 @@ declare class Core extends ElementWrapper {
|
|
94
94
|
|
95
95
|
public getSectionTop(sectionRef: Core.SectionReference): number;
|
96
96
|
|
97
|
-
public getPreviousSection(identifier?: (MouseEvent|Core.SectionReference), opt_type?: string): ILayoutGrid;
|
97
|
+
public getPreviousSection(identifier?: (MouseEvent|Core.SectionReference), opt_type?: string): ILayoutGrid|null;
|
98
98
|
|
99
|
-
public getNextSection(identifier?: (MouseEvent|Core.SectionReference), opt_type?: string): ILayoutGrid;
|
99
|
+
public getNextSection(identifier?: (MouseEvent|Core.SectionReference), opt_type?: string): ILayoutGrid|null;
|
100
100
|
|
101
|
-
public getLastSection(): ILayoutGrid;
|
101
|
+
public getLastSection(): ILayoutGrid|null;
|
102
102
|
|
103
|
-
public getCell(sectionRef: Core.SectionReference, colIndex: number, rowIndex: number, opt_includeSpan?: boolean): ElementWrapper;
|
103
|
+
public getCell(sectionRef: Core.SectionReference, colIndex: number, rowIndex: number, opt_includeSpan?: boolean): ElementWrapper|null;
|
104
104
|
|
105
|
-
public getCellInfo(cellRef: Core.CellReference): Core.MouseInfo;
|
105
|
+
public getCellInfo(cellRef: Core.CellReference): Core.MouseInfo|null;
|
106
106
|
|
107
|
-
public getNextCellInRow(cellRef: Core.CellReference, step?: number): Core.MouseInfo;
|
107
|
+
public getNextCellInRow(cellRef: Core.CellReference, step?: number): Core.MouseInfo|null;
|
108
108
|
|
109
|
-
public getPrevCellInRow(cellRef: Core.CellReference, step?: number): Core.MouseInfo;
|
109
|
+
public getPrevCellInRow(cellRef: Core.CellReference, step?: number): Core.MouseInfo|null;
|
110
110
|
|
111
|
-
public getNextCell(cellRef: Core.CellReference): Core.MouseInfo;
|
111
|
+
public getNextCell(cellRef: Core.CellReference): Core.MouseInfo|null;
|
112
112
|
|
113
|
-
public getPrevCell(cellRef: Core.CellReference): Core.MouseInfo;
|
113
|
+
public getPrevCell(cellRef: Core.CellReference): Core.MouseInfo|null;
|
114
114
|
|
115
115
|
public getColumnCount(): number;
|
116
116
|
|
@@ -146,13 +146,13 @@ declare class Core extends ElementWrapper {
|
|
146
146
|
|
147
147
|
public setDefaultRowHeight(val: number, opt_includeTitle?: boolean): void;
|
148
148
|
|
149
|
-
public getDataSource(): DataView;
|
149
|
+
public getDataSource(): DataView|null;
|
150
150
|
|
151
151
|
public setDataConflationRate(milliSecond: number): void;
|
152
152
|
|
153
153
|
public getDataConflationRate(): number;
|
154
154
|
|
155
|
-
public setDataSource(dataSource: DataTable|DataView): DataView;
|
155
|
+
public setDataSource(dataSource: DataTable|DataView): DataView|null;
|
156
156
|
|
157
157
|
public getColumnRenderEvent(): void;
|
158
158
|
|
@@ -272,7 +272,7 @@ declare class Core extends ElementWrapper {
|
|
272
272
|
|
273
273
|
public toggleHorizontalLines(forcedVal?: boolean): void;
|
274
274
|
|
275
|
-
public getDataColumnMap(): (string)[];
|
275
|
+
public getDataColumnMap(): (string)[]|null;
|
276
276
|
|
277
277
|
public setDataColumnMap(opt_dataMap?: (string)[]): void;
|
278
278
|
|
@@ -288,9 +288,9 @@ declare class Core extends ElementWrapper {
|
|
288
288
|
|
289
289
|
public setColumnDataBindingHandler(c: number, func: any): void;
|
290
290
|
|
291
|
-
public getColumnRenderingHandler(c: number): ((...params: any[]) => any);
|
291
|
+
public getColumnRenderingHandler(c: number): ((...params: any[]) => any)|null;
|
292
292
|
|
293
|
-
public getColumnDataBindingHandler(c: number): ((...params: any[]) => any);
|
293
|
+
public getColumnDataBindingHandler(c: number): ((...params: any[]) => any)|null;
|
294
294
|
|
295
295
|
public enableRowHighlighting(opt_enabled?: boolean): void;
|
296
296
|
|
@@ -314,7 +314,7 @@ declare class Core extends ElementWrapper {
|
|
314
314
|
|
315
315
|
public getScrollWidth(): number;
|
316
316
|
|
317
|
-
public getYScrollVal(sectionRef: Core.SectionReference, rowIndex: number, topOfView?: boolean): number|null;
|
317
|
+
public getYScrollVal(sectionRef: Core.SectionReference, rowIndex: number, topOfView?: boolean): number|null|null;
|
318
318
|
|
319
319
|
public scrollToRow(sectionRef: Core.SectionReference, rowIndex: number, topOfView?: boolean): void;
|
320
320
|
|
@@ -328,6 +328,8 @@ declare class Core extends ElementWrapper {
|
|
328
328
|
|
329
329
|
public getScrollHeight(): number;
|
330
330
|
|
331
|
+
public restoreScrollbars(): void;
|
332
|
+
|
331
333
|
public getRowVirtualizer(): Virtualizer;
|
332
334
|
|
333
335
|
public getColumnVirtualizer(): Virtualizer;
|
@@ -338,7 +340,7 @@ declare class Core extends ElementWrapper {
|
|
338
340
|
|
339
341
|
public setRowScrollingStep(rowCount: number): void;
|
340
342
|
|
341
|
-
public getVMouseWheelHandler(): ((...params: any[]) => any);
|
343
|
+
public getVMouseWheelHandler(): ((...params: any[]) => any)|null;
|
342
344
|
|
343
345
|
public synchronizeVScrollbar(subGrid: Core): void;
|
344
346
|
|
@@ -348,11 +350,13 @@ declare class Core extends ElementWrapper {
|
|
348
350
|
|
349
351
|
public requestRowRefresh(): void;
|
350
352
|
|
353
|
+
public _requestScrollbarUpdate(): void;
|
354
|
+
|
351
355
|
public deactivateRendering(disabled?: boolean): void;
|
352
356
|
|
353
357
|
public reserveRightSpace(size: number): boolean;
|
354
358
|
|
355
|
-
public getHiddenInput(): Element;
|
359
|
+
public getHiddenInput(): Element|null;
|
356
360
|
|
357
361
|
public focus(): void;
|
358
362
|
|
@@ -384,11 +388,11 @@ declare function num(opt_type?: string): (ILayoutGrid)[];
|
|
384
388
|
|
385
389
|
declare function mPos(sectionRef: Core.SectionReference): number;
|
386
390
|
|
387
|
-
declare function rowIndex(cellRef: Core.CellReference, step?: number): Core.MouseInfo;
|
391
|
+
declare function rowIndex(cellRef: Core.CellReference, step?: number): Core.MouseInfo|null;
|
388
392
|
|
389
|
-
declare function rowIndex(cellRef: Core.CellReference): Core.MouseInfo;
|
393
|
+
declare function rowIndex(cellRef: Core.CellReference): Core.MouseInfo|null;
|
390
394
|
|
391
|
-
declare function section(cellRef: Core.CellReference): Core.MouseInfo;
|
395
|
+
declare function section(cellRef: Core.CellReference): Core.MouseInfo|null;
|
392
396
|
|
393
397
|
declare function section(): number;
|
394
398
|
|
@@ -4,7 +4,7 @@ import TrackLayout from "./util/TrackLayout.js";
|
|
4
4
|
|
5
5
|
declare interface ILayoutGrid extends ElementWrapper {
|
6
6
|
|
7
|
-
hitTest(x: number, y: number, opt_omitSpan?: boolean): any|null;
|
7
|
+
hitTest(x: number, y: number, opt_omitSpan?: boolean): any|null|null;
|
8
8
|
|
9
9
|
hitTestX(x: number): number;
|
10
10
|
|
@@ -76,13 +76,13 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
76
76
|
|
77
77
|
setRowScalability(rowIndex: number, val: boolean): boolean;
|
78
78
|
|
79
|
-
getCell(colIndex: number, rowIndex: number, opt_includeSpan?: boolean): ElementWrapper;
|
79
|
+
getCell(colIndex: number, rowIndex: number, opt_includeSpan?: boolean): ElementWrapper|null;
|
80
80
|
|
81
|
-
getCellContent(colIndex: number, rowIndex: number): Element|Node|NodeList;
|
81
|
+
getCellContent(colIndex: number, rowIndex: number): Element|Node|NodeList|null;
|
82
82
|
|
83
|
-
setCellContent(colIndex: number, rowIndex: number, data: string|Element|ElementWrapper|any): Element;
|
83
|
+
setCellContent(colIndex: number, rowIndex: number, data: string|Element|ElementWrapper|any): Element|null;
|
84
84
|
|
85
|
-
getColumn(index: number): ElementWrapper;
|
85
|
+
getColumn(index: number): ElementWrapper|null;
|
86
86
|
|
87
87
|
getColumnCount(): number;
|
88
88
|
|
@@ -100,7 +100,7 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
100
100
|
|
101
101
|
setBorders(lft: boolean, top: boolean, rgt: boolean, btm: boolean): void;
|
102
102
|
|
103
|
-
getColumnStyle(colIndex: number, styleName: string): string|null;
|
103
|
+
getColumnStyle(colIndex: number, styleName: string): string|null|null;
|
104
104
|
|
105
105
|
setColumnStyle(colIndex: number, styleName: string, value: string): void;
|
106
106
|
|
@@ -118,7 +118,7 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
118
118
|
|
119
119
|
getContentHeight(): number;
|
120
120
|
|
121
|
-
getCellsByRowIndex(rowIndex: number): (ElementWrapper)[];
|
121
|
+
getCellsByRowIndex(rowIndex: number): (ElementWrapper)[]|null;
|
122
122
|
|
123
123
|
disableHorizontalGridLine(opt_bool?: boolean): void;
|
124
124
|
|
@@ -134,7 +134,7 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
134
134
|
|
135
135
|
setRowHighlight(rowIndex: number): void;
|
136
136
|
|
137
|
-
getSelectedRows(): (number)[];
|
137
|
+
getSelectedRows(): (number)[]|null;
|
138
138
|
|
139
139
|
getSelectedRowCount(): number;
|
140
140
|
|
@@ -172,25 +172,25 @@ declare interface ILayoutGrid extends ElementWrapper {
|
|
172
172
|
|
173
173
|
getRowOffset(): number;
|
174
174
|
|
175
|
-
stretchCell(cellRef: number|Cell, rowIndex?: number, opt_stretching?: boolean, onlyToTheRight?: boolean): Cell;
|
175
|
+
stretchCell(cellRef: number|Cell, rowIndex?: number, opt_stretching?: boolean, onlyToTheRight?: boolean): Cell|null;
|
176
176
|
|
177
|
-
unstretchCell(cellRef: number|Cell, rowIndex?: number): Cell;
|
177
|
+
unstretchCell(cellRef: number|Cell, rowIndex?: number): Cell|null;
|
178
178
|
|
179
179
|
unstretchAllCells(): void;
|
180
180
|
|
181
|
-
getStretchedCell(cellRef: number|Cell, rowIndex?: number): Cell;
|
181
|
+
getStretchedCell(cellRef: number|Cell, rowIndex?: number): Cell|null;
|
182
182
|
|
183
183
|
getStretchedCells(): (Cell)[];
|
184
184
|
|
185
185
|
updateStretchedCells(): boolean;
|
186
186
|
|
187
|
-
getColumnHost(): Element;
|
187
|
+
getColumnHost(): Element|null;
|
188
188
|
|
189
|
-
reserveRightSpace(size: number): Element;
|
189
|
+
reserveRightSpace(size: number): Element|null;
|
190
190
|
|
191
|
-
getReservedSpace(): Element;
|
191
|
+
getReservedSpace(): Element|null;
|
192
192
|
|
193
|
-
getComputedStyle(): CSSStyleDeclaration;
|
193
|
+
getComputedStyle(): CSSStyleDeclaration|null;
|
194
194
|
|
195
195
|
isColumnActive(colIndex: number): boolean;
|
196
196
|
|
@@ -10,11 +10,11 @@ declare class Cell extends ElementWrapper {
|
|
10
10
|
|
11
11
|
public setTextContent(str: string): void;
|
12
12
|
|
13
|
-
public getTextElement(): Element;
|
13
|
+
public getTextElement(): Element|null;
|
14
14
|
|
15
15
|
public hasElement(): boolean;
|
16
16
|
|
17
|
-
public getSection(): ILayoutGrid;
|
17
|
+
public getSection(): ILayoutGrid|null;
|
18
18
|
|
19
19
|
public initialize(): Element;
|
20
20
|
|
@@ -34,11 +34,11 @@ declare class Cell extends ElementWrapper {
|
|
34
34
|
|
35
35
|
public insertFloatingIcon(elem: Element, opt_order?: number): void;
|
36
36
|
|
37
|
-
public removeFloatingIcon(elemRef: Element|string): Element|null;
|
37
|
+
public removeFloatingIcon(elemRef: Element|string): Element|null|null;
|
38
38
|
|
39
39
|
public insertFrontIcon(elem: Element, opt_order?: number): void;
|
40
40
|
|
41
|
-
public removeFrontIcon(elemRef: Element|string): Element|null;
|
41
|
+
public removeFrontIcon(elemRef: Element|string): Element|null|null;
|
42
42
|
|
43
43
|
public updatePadding(): void;
|
44
44
|
|
@@ -9,7 +9,7 @@ declare class CellFloatingPanel extends ElementWrapper {
|
|
9
9
|
|
10
10
|
public insertItem(item: Element, opt_order?: number): void;
|
11
11
|
|
12
|
-
public removeItem(elemRef?: (Element|string)): Element|null;
|
12
|
+
public removeItem(elemRef?: (Element|string)): Element|null|null;
|
13
13
|
|
14
14
|
public clearItems(): void;
|
15
15
|
|
@@ -8,19 +8,19 @@ declare class CellSpans {
|
|
8
8
|
|
9
9
|
public shiftColumn(from: number, amount: number): boolean;
|
10
10
|
|
11
|
-
public removeSpan(indexX: number, indexY: number): CellSpan;
|
11
|
+
public removeSpan(indexX: number, indexY: number): CellSpan|null;
|
12
12
|
|
13
|
-
public removeSpanByColIndex(at: number, opt_ary?: (CellSpan)[]): (CellSpan)[];
|
13
|
+
public removeSpanByColIndex(at: number, opt_ary?: (CellSpan)[]): (CellSpan)[]|null;
|
14
14
|
|
15
|
-
public removeSpanStartedFromRowIndex(at: number, opt_ary?: (CellSpan)[]): (CellSpan)[];
|
15
|
+
public removeSpanStartedFromRowIndex(at: number, opt_ary?: (CellSpan)[]): (CellSpan)[]|null;
|
16
16
|
|
17
|
-
public clearAllSpans(): (CellSpan)[];
|
17
|
+
public clearAllSpans(): (CellSpan)[]|null;
|
18
18
|
|
19
19
|
public hasSpan(): boolean;
|
20
20
|
|
21
|
-
public getSpan(indexX: number, indexY: number): CellSpan|null;
|
21
|
+
public getSpan(indexX: number, indexY: number): CellSpan|null|null;
|
22
22
|
|
23
|
-
public getOccupyingSpan(indexX: number, indexY: number): CellSpan|null;
|
23
|
+
public getOccupyingSpan(indexX: number, indexY: number): CellSpan|null|null;
|
24
24
|
|
25
25
|
public getAllSpans(): (CellSpan)[];
|
26
26
|
|
@@ -28,9 +28,9 @@ declare class CellSpans {
|
|
28
28
|
|
29
29
|
public getRowSpan(indexX: number, indexY: number): number;
|
30
30
|
|
31
|
-
public setColSpan(indexX: number, indexY: number, spanVal: number): CellSpan;
|
31
|
+
public setColSpan(indexX: number, indexY: number, spanVal: number): CellSpan|null;
|
32
32
|
|
33
|
-
public setRowSpan(indexX: number, indexY: number, spanVal: number): CellSpan;
|
33
|
+
public setRowSpan(indexX: number, indexY: number, spanVal: number): CellSpan|null;
|
34
34
|
|
35
35
|
}
|
36
36
|
|
@@ -7,11 +7,11 @@ declare class ElementWrapper extends EventDispatcher {
|
|
7
7
|
|
8
8
|
constructor(opt_element?: Element);
|
9
9
|
|
10
|
-
public getContent(opt_allContent?: boolean): Element|Node|NodeList;
|
10
|
+
public getContent(opt_allContent?: boolean): Element|Node|NodeList|null;
|
11
11
|
|
12
|
-
public setContent(content: string|Element|ElementWrapper|any, opt_tooltip?: string): Element;
|
12
|
+
public setContent(content: string|Element|ElementWrapper|any, opt_tooltip?: string): Element|null;
|
13
13
|
|
14
|
-
public addContent(content: Element|Node|ElementWrapper): Element;
|
14
|
+
public addContent(content: Element|Node|ElementWrapper): Element|null;
|
15
15
|
|
16
16
|
public removeContent(content: Element|Node|ElementWrapper): boolean;
|
17
17
|
|
@@ -23,11 +23,11 @@ declare class ElementWrapper extends EventDispatcher {
|
|
23
23
|
|
24
24
|
public dispose(): void;
|
25
25
|
|
26
|
-
public getElement(): Element;
|
26
|
+
public getElement(): Element|null;
|
27
27
|
|
28
|
-
public getNextSibling(): Element|Node;
|
28
|
+
public getNextSibling(): Element|Node|null;
|
29
29
|
|
30
|
-
public getParent(): Element|Node;
|
30
|
+
public getParent(): Element|Node|null;
|
31
31
|
|
32
32
|
public setParent(parent: ElementWrapper|Element|Node, opt_prepend?: boolean): void;
|
33
33
|
|
@@ -49,12 +49,14 @@ declare class Scrollbar extends ElementWrapper {
|
|
49
49
|
|
50
50
|
public setMouseWheelSpeed(val: string): void;
|
51
51
|
|
52
|
-
public getDefaultMouseWheelLogic(): ((...params: any[]) => any);
|
52
|
+
public getDefaultMouseWheelLogic(): ((...params: any[]) => any)|null;
|
53
53
|
|
54
54
|
public setScrollingStep(px: number): void;
|
55
55
|
|
56
56
|
public freezeScrolling(frozen?: boolean): boolean;
|
57
57
|
|
58
|
+
public restoreTrackPosition(): void;
|
59
|
+
|
58
60
|
}
|
59
61
|
|
60
62
|
export default Scrollbar;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import Ext from "../../../../../tr-grid-util/es6/Ext.js";
|
2
|
-
import
|
2
|
+
import EventDispatcher from "../event/EventDispatcher.js";
|
3
3
|
import Core from "../Core.js";
|
4
4
|
import ILayoutGrid from "../ILayoutGrid.js";
|
5
5
|
import ElementWrapper from "../components/ElementWrapper.js";
|
@@ -45,10 +45,16 @@ declare namespace SortableTitlePlugin {
|
|
45
45
|
|
46
46
|
}
|
47
47
|
|
48
|
-
declare class SortableTitlePlugin extends
|
48
|
+
declare class SortableTitlePlugin extends EventDispatcher {
|
49
49
|
|
50
50
|
constructor(options?: SortableTitlePlugin.Options);
|
51
51
|
|
52
|
+
public getName(): string;
|
53
|
+
|
54
|
+
public initialize(host: Core, options?: any): void;
|
55
|
+
|
56
|
+
public unload(host: Core): void;
|
57
|
+
|
52
58
|
public afterInit(): void;
|
53
59
|
|
54
60
|
public config(options?: any): void;
|
@@ -57,7 +63,7 @@ declare class SortableTitlePlugin extends Plugin {
|
|
57
63
|
|
58
64
|
public getColumnMenu(colIndex: number, config: any): any;
|
59
65
|
|
60
|
-
public getIcons(): { [key: string]: string };
|
66
|
+
public getIcons(): { [key: string]: string }|null;
|
61
67
|
|
62
68
|
public setSortLogics(sortLogic: { [key: string]: ((...params: any[]) => any) }): void;
|
63
69
|
|
@@ -71,9 +77,11 @@ declare class SortableTitlePlugin extends Plugin {
|
|
71
77
|
|
72
78
|
public isColumnSorted(colIndex: number): boolean;
|
73
79
|
|
74
|
-
public getSortedColumns(): (any)[]
|
80
|
+
public getSortedColumns(): (any)[]|null;
|
81
|
+
|
82
|
+
public isSorting(): boolean;
|
75
83
|
|
76
|
-
public sortColumn(
|
84
|
+
public sortColumn(colRef: number|string, sortOrder?: string, opt_arg?: any): void;
|
77
85
|
|
78
86
|
public sortColumns(sortOptions: (SortableTitlePlugin.InitialSort)[], opt_arg?: any): void;
|
79
87
|
|
@@ -85,7 +93,7 @@ declare class SortableTitlePlugin extends Plugin {
|
|
85
93
|
|
86
94
|
public setSortableColumnCount(count: number): void;
|
87
95
|
|
88
|
-
public getSortingStates(): (any)[];
|
96
|
+
public getSortingStates(): (any)[]|null;
|
89
97
|
|
90
98
|
public updateSortSymbols(): void;
|
91
99
|
|
@@ -4,9 +4,9 @@ declare class Conflator {
|
|
4
4
|
|
5
5
|
constructor(opt_func?: ((...params: any[]) => any)|number, opt_ms?: number|((...params: any[]) => any), opt_thisObj?: any);
|
6
6
|
|
7
|
-
public reset(): any[];
|
7
|
+
public reset(): any[]|null;
|
8
8
|
|
9
|
-
public popAllData(): any[];
|
9
|
+
public popAllData(): any[]|null;
|
10
10
|
|
11
11
|
public dispose(): void;
|
12
12
|
|
@@ -6,11 +6,11 @@ declare namespace ElementFrameWork {
|
|
6
6
|
|
7
7
|
function isElfv3(): boolean;
|
8
8
|
|
9
|
-
function createIcon(iconName: string): Element;
|
9
|
+
function createIcon(iconName: string): Element|null;
|
10
10
|
|
11
|
-
function createIconButton(iconName: string): Element;
|
11
|
+
function createIconButton(iconName: string): Element|null;
|
12
12
|
|
13
|
-
function createRangeBar(): Element;
|
13
|
+
function createRangeBar(): Element|null;
|
14
14
|
|
15
15
|
}
|
16
16
|
|
@@ -17,7 +17,7 @@ declare class HttpRequest extends EventDispatcher {
|
|
17
17
|
|
18
18
|
public getState(): string;
|
19
19
|
|
20
|
-
public getResponse(): any|string;
|
20
|
+
public getResponse(): any|string|null;
|
21
21
|
|
22
22
|
public getResponseText(): string;
|
23
23
|
|
@@ -27,7 +27,7 @@ declare class HttpRequest extends EventDispatcher {
|
|
27
27
|
|
28
28
|
public setRequestTimeout(timeout: number): void;
|
29
29
|
|
30
|
-
public valueOf(): any|string;
|
30
|
+
public valueOf(): any|string|null;
|
31
31
|
|
32
32
|
public toString(): string;
|
33
33
|
|
@@ -9,7 +9,7 @@ declare class PercentBarRenderer {
|
|
9
9
|
|
10
10
|
public render(cell: ElementWrapper, value: number, opt_max?: number, opt_displayText?: string, opt_textWidth?: number): void;
|
11
11
|
|
12
|
-
public renderForPrinting(cell: ElementWrapper, value: number, opt_max?: number): PercentBar;
|
12
|
+
public renderForPrinting(cell: ElementWrapper, value: number, opt_max?: number): PercentBar|null;
|
13
13
|
|
14
14
|
public setAlignment(alignment: string): void;
|
15
15
|
|
@@ -15,7 +15,7 @@ declare class SectionSettings extends EventDispatcher {
|
|
15
15
|
|
16
16
|
public setId(str?: string): string;
|
17
17
|
|
18
|
-
public getSection(): ILayoutGrid;
|
18
|
+
public getSection(): ILayoutGrid|null;
|
19
19
|
|
20
20
|
public getSectionName(): string;
|
21
21
|
|
@@ -25,11 +25,11 @@ declare class SectionSettings extends EventDispatcher {
|
|
25
25
|
|
26
26
|
public setType(type: string): void;
|
27
27
|
|
28
|
-
public getDataSource(): DataView;
|
28
|
+
public getDataSource(): DataView|null;
|
29
29
|
|
30
30
|
public setDataSource(dataView: DataView): void;
|
31
31
|
|
32
|
-
public getRootDataSource(): DataTable|DataView;
|
32
|
+
public getRootDataSource(): DataTable|DataView|null;
|
33
33
|
|
34
34
|
public getData(colName: string, rowRef: number|string): any;
|
35
35
|
|
@@ -41,9 +41,9 @@ declare class SectionSettings extends EventDispatcher {
|
|
41
41
|
|
42
42
|
public activateColumns(activations: (boolean|undefined)[], firstIndex: number, lastIndex: number): void;
|
43
43
|
|
44
|
-
public getChildren(): (SectionSettings)[];
|
44
|
+
public getChildren(): (SectionSettings)[]|null;
|
45
45
|
|
46
|
-
public getParent(): SectionSettings;
|
46
|
+
public getParent(): SectionSettings|null;
|
47
47
|
|
48
48
|
public getDataChangedConflator(): Conflator;
|
49
49
|
|
@@ -36,9 +36,9 @@ declare class SelectionList {
|
|
36
36
|
|
37
37
|
public getLastSelectedIndex(): number;
|
38
38
|
|
39
|
-
public getAllSelections(): (number)[];
|
39
|
+
public getAllSelections(): (number)[]|null;
|
40
40
|
|
41
|
-
public getSelectionMap(): (boolean)[];
|
41
|
+
public getSelectionMap(): (boolean)[]|null;
|
42
42
|
|
43
43
|
public clearAllSelections(): number;
|
44
44
|
|
@@ -36,7 +36,7 @@ declare class TrackLayout {
|
|
36
36
|
|
37
37
|
public getTrackSize(): number;
|
38
38
|
|
39
|
-
public setTrackSize(targetSize: number): (number)[]|null;
|
39
|
+
public setTrackSize(targetSize: number): (number)[]|null|null;
|
40
40
|
|
41
41
|
public getLaneStart(index: number): number;
|
42
42
|
|
@@ -48,6 +48,10 @@ declare class TrackLayout {
|
|
48
48
|
|
49
49
|
public setLaneSize(index: number, val: number): boolean;
|
50
50
|
|
51
|
+
public setLaneProperty(index: number, propName: string, val: any): boolean;
|
52
|
+
|
53
|
+
public getLaneProperty(index: number, propName: string): any;
|
54
|
+
|
51
55
|
public getMinimumLaneSize(index: number): number;
|
52
56
|
|
53
57
|
public setMinimumLaneSize(index: number, val: number, proportion?: boolean): boolean;
|
@@ -64,13 +68,13 @@ declare class TrackLayout {
|
|
64
68
|
|
65
69
|
public setLaneScalability(index: number, val: boolean): boolean;
|
66
70
|
|
67
|
-
public removeLaneAt(index: number, opt_count?: number): any|null;
|
71
|
+
public removeLaneAt(index: number, opt_count?: number): any|null|null;
|
68
72
|
|
69
73
|
public insertLane(index: number, opt_json?: number|any): void;
|
70
74
|
|
71
75
|
public moveLane(from: number, to: number): void;
|
72
76
|
|
73
|
-
public serializeLane(index: number): any|null;
|
77
|
+
public serializeLane(index: number): any|null|null;
|
74
78
|
|
75
79
|
public deserializeLane(index: number, opt_json?: any): void;
|
76
80
|
|
@@ -4,11 +4,11 @@ declare namespace Util {
|
|
4
4
|
|
5
5
|
const isMobile: boolean;
|
6
6
|
|
7
|
-
function pushArrayItems(ary: any[], items: any[]): any[];
|
7
|
+
function pushArrayItems(ary: any[], items: any[]): any[]|null;
|
8
8
|
|
9
9
|
function insertEmptyItems(ary: any[], at: number, chunkSize: number): void;
|
10
10
|
|
11
|
-
function cycleArray(ary: any[], numItems: number): any[];
|
11
|
+
function cycleArray(ary: any[], numItems: number): any[]|null;
|
12
12
|
|
13
13
|
}
|
14
14
|
|
@@ -29,8 +29,6 @@ import SelectionList from "./grid/util/SelectionList.js";
|
|
29
29
|
import SectionSettings from "./grid/util/SectionSettings.js";
|
30
30
|
|
31
31
|
// Plugins
|
32
|
-
import Plugin from "./grid/plugins/Plugin.js";
|
33
|
-
import DragAndDropTitlePlugin from "./grid/plugins/DragAndDropTitlePlugin.js";
|
34
32
|
import SortableTitlePlugin from "./grid/plugins/SortableTitlePlugin.js";
|
35
33
|
|
36
34
|
// Data
|
@@ -77,8 +75,6 @@ export {
|
|
77
75
|
SectionSettings,
|
78
76
|
|
79
77
|
// Plugins
|
80
|
-
|
81
|
-
DragAndDropTitlePlugin,
|
82
|
-
SortableTitlePlugin,
|
78
|
+
SortableTitlePlugin
|
83
79
|
};
|
84
80
|
export default Core;
|
@@ -8,6 +8,7 @@ import ColumnFitter from "../../tr-grid-column-fitter/es6/ColumnFitter.js";
|
|
8
8
|
import ColumnGrouping from "../../tr-grid-column-grouping/es6/ColumnGrouping.js";
|
9
9
|
import ColumnResizing from "../../tr-grid-column-resizing/es6/ColumnResizing.js";
|
10
10
|
import ColumnSelection from "../../tr-grid-column-selection/es6/ColumnSelection.js";
|
11
|
+
import ColumnStack from "../../tr-grid-column-stack/es6/ColumnStack.js";
|
11
12
|
import ContentWrap from "../../tr-grid-content-wrap/es6/ContentWrap.js";
|
12
13
|
import ContextMenu from "../../tr-grid-contextmenu/es6/ContextMenu.js";
|
13
14
|
import FilterInput from "../../tr-grid-filter-input/es6/FilterInput.js";
|
@@ -32,6 +33,7 @@ type ExtensionOptions = {
|
|
32
33
|
columnGrouping?: ColumnGrouping.Options,
|
33
34
|
columnResizing?: ColumnResizing.Options,
|
34
35
|
columnSelection?: ColumnSelection.Options,
|
36
|
+
columnStack?: ColumnStack.Options,
|
35
37
|
contentWrap?: ContentWrap.Options,
|
36
38
|
contextMenu?: ContextMenu.Options,
|
37
39
|
filterInput?: FilterInput.Options,
|