@refinitiv-ui/efx-grid 6.0.3 → 6.0.4
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/core/dist/core.css +1 -1
- package/lib/core/dist/core.js +389 -1070
- 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 +1 -1
- package/lib/core/es6/data/DataView.d.ts +12 -12
- package/lib/core/es6/data/SegmentCollection.d.ts +3 -3
- package/lib/core/es6/data/WrappedView.d.ts +13 -13
- package/lib/core/es6/grid/Core.d.ts +29 -27
- package/lib/core/es6/grid/Core.js +26 -4
- 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 +66 -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 +1 -1
- 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/filter-dialog.d.ts +1 -0
- package/lib/filter-dialog/lib/filter-dialog.js +73 -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 +8 -5
- package/lib/grid/lib/efx-grid.js +10 -4
- 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/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 +94 -9
- package/lib/rt-grid/dist/rt-grid.js +567 -1171
- 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 +17 -9
- package/lib/rt-grid/es6/Grid.js +201 -101
- 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 +3 -1
- package/lib/rt-grid/es6/SnapshotFiller.js +23 -0
- package/lib/tr-grid-checkbox/es6/Checkbox.d.ts +2 -2
- package/lib/tr-grid-checkbox/es6/Checkbox.js +38 -20
- 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 +1 -1
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +18 -12
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.d.ts +7 -4
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +93 -2
- 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 +2 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +29 -143
- 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.js +10 -0
- 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/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 +28 -1
- package/lib/tr-grid-util/es6/ElfUtil.js +1 -1
- 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/NumberFormatter.d.ts +2 -0
- package/lib/tr-grid-util/es6/NumberFormatter.js +64 -19
- package/lib/tr-grid-util/es6/RowPainter.js +41 -11
- package/lib/tr-grid-util/es6/formula/Formula.js +9 -1
- package/lib/types/es6/Checkbox.d.ts +2 -2
- 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 +1 -1
- 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 -12
- 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 +29 -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 +1 -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 +7 -4
- 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 +17 -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 +3 -1
- package/lib/types/es6/RowDragging.d.ts +2 -1
- package/lib/types/es6/RowGrouping.d.ts +7 -2
- package/lib/types/es6/RowSegmenting.d.ts +7 -2
- package/lib/types/es6/TextFormatting.d.ts +1 -1
- package/lib/versions.json +14 -13
- 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
@@ -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,
|
@@ -28,7 +28,8 @@ declare namespace InCellEditingPlugin {
|
|
28
28
|
keyUp?: ((...params: any[]) => any),
|
29
29
|
beforeRowCommit?: ((...params: any[]) => any),
|
30
30
|
rowEditorClosed?: ((...params: any[]) => any),
|
31
|
-
uiBlocking?: boolean
|
31
|
+
uiBlocking?: boolean,
|
32
|
+
autoSuggest?: Element
|
32
33
|
};
|
33
34
|
|
34
35
|
type Cache = {
|
@@ -79,7 +80,7 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
79
80
|
|
80
81
|
public isEditing(): boolean;
|
81
82
|
|
82
|
-
public getTextBox(columnIndex?: number, grid?: any): Element;
|
83
|
+
public getTextBox(columnIndex?: number, grid?: any): Element|null;
|
83
84
|
|
84
85
|
public getInitialText(): string;
|
85
86
|
|
@@ -87,7 +88,7 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
87
88
|
|
88
89
|
public _getRowId(rowIndex: number): string;
|
89
90
|
|
90
|
-
public getActiveGrid(): any|null;
|
91
|
+
public getActiveGrid(): any|null|null;
|
91
92
|
|
92
93
|
public getActiveColIndex(): number;
|
93
94
|
|
@@ -119,7 +120,9 @@ declare class InCellEditingPlugin extends GridPlugin {
|
|
119
120
|
|
120
121
|
public commitText(word?: string): void;
|
121
122
|
|
122
|
-
public getBalloonPopup(): Popup|null;
|
123
|
+
public getBalloonPopup(): Popup|null|null;
|
124
|
+
|
125
|
+
public getAutoSuggest(): Element|null;
|
123
126
|
|
124
127
|
public setDisablingScroll(disabled?: boolean): boolean;
|
125
128
|
|
@@ -64,9 +64,7 @@ declare class ColumnDefinition {
|
|
64
64
|
|
65
65
|
public getRenderer(): ((...params: any[]) => any);
|
66
66
|
|
67
|
-
public getHeaderRenderer(): ((...params: any[]) => any);
|
68
|
-
|
69
|
-
public getSorter(): ((...params: any[]) => any);
|
67
|
+
public getHeaderRenderer(): ((...params: any[]) => any)|null;
|
70
68
|
|
71
69
|
public getName(): string;
|
72
70
|
|
@@ -130,8 +128,12 @@ declare class ColumnDefinition {
|
|
130
128
|
|
131
129
|
public activateRenderer(id?: string, func?: ((...params: any[]) => any)): boolean;
|
132
130
|
|
131
|
+
public getSorter(): ((...params: any[]) => any)|null;
|
132
|
+
|
133
133
|
public setSorter(func?: ColumnDefinition.SortLogic): void;
|
134
134
|
|
135
|
+
public isRowSorting(): boolean;
|
136
|
+
|
135
137
|
public setName(str: string): void;
|
136
138
|
|
137
139
|
public getUserModel(): any;
|
@@ -9,13 +9,13 @@ declare class DataConnector extends EventDispatcher {
|
|
9
9
|
|
10
10
|
constructor();
|
11
11
|
|
12
|
-
public getAllRics(): (string)[];
|
12
|
+
public getAllRics(): (string)[]|null;
|
13
13
|
|
14
|
-
public getAllRowDefs(): (RowDefinition)[];
|
14
|
+
public getAllRowDefs(): (RowDefinition)[]|null;
|
15
15
|
|
16
16
|
public getAllFields(): (string)[];
|
17
17
|
|
18
|
-
public getRowDefByRic(ric: string): (RowDefinition)[];
|
18
|
+
public getRowDefByRic(ric: string): (RowDefinition)[]|null;
|
19
19
|
|
20
20
|
public addRic(rowDef: RowDefinition): boolean;
|
21
21
|
|
@@ -14,10 +14,10 @@ import SnapshotFiller from "./SnapshotFiller.js";
|
|
14
14
|
import StyleLoader from "./StyleLoader.js";
|
15
15
|
import FieldDefinition from "./FieldDefinition.js";
|
16
16
|
import DataConnector from "./DataConnector.js";
|
17
|
+
import RowDefSorter from "./RowDefSorter.js";
|
17
18
|
|
18
19
|
import { Core } from "../Core/grid/Core.js";
|
19
20
|
import { SortableTitlePlugin } from "../Core/grid/plugins/SortableTitlePlugin.js";
|
20
|
-
import { DragAndDropTitlePlugin } from "../Core/grid/plugins/DragAndDropTitlePlugin.js";
|
21
21
|
import { DataCache } from "../Core/data/DataCache.js";
|
22
22
|
import { DataTable } from "../Core/data/DataTable.js";
|
23
23
|
import { DataView } from "../Core/data/DataView.js";
|
@@ -73,7 +73,9 @@ declare namespace Grid {
|
|
73
73
|
autoDateConversion?: boolean,
|
74
74
|
textSelect?: boolean,
|
75
75
|
lang?: string,
|
76
|
-
scrollbarParent?: Element
|
76
|
+
scrollbarParent?: Element,
|
77
|
+
formulaEngine?: boolean,
|
78
|
+
adcPollingInterval?: number
|
77
79
|
};
|
78
80
|
|
79
81
|
type RowReference = number|string|RowDefinition;
|
@@ -88,7 +90,7 @@ declare class Grid extends EventDispatcher {
|
|
88
90
|
|
89
91
|
public dispose(): void;
|
90
92
|
|
91
|
-
public getElement(): Element;
|
93
|
+
public getElement(): Element|null;
|
92
94
|
|
93
95
|
public removeEventListeners(): void;
|
94
96
|
|
@@ -110,12 +112,14 @@ declare class Grid extends EventDispatcher {
|
|
110
112
|
|
111
113
|
public getRelativePosition(obj: ElementWrapper|Element|Event|MouseEvent): any;
|
112
114
|
|
113
|
-
public getCoreGrid(): Core;
|
115
|
+
public getCoreGrid(): Core|null;
|
114
116
|
|
115
117
|
public initialize(gridOption?: Grid.GridOptions): void;
|
116
118
|
|
117
119
|
public getConfigObject(gridOptions?: any): any;
|
118
120
|
|
121
|
+
public setLocale(lang: string): void;
|
122
|
+
|
119
123
|
public insertColumn(columnOption: ColumnDefinition.Options|string, idx?: number): void;
|
120
124
|
|
121
125
|
public setColumns(columns: (any)[]): void;
|
@@ -162,9 +166,9 @@ declare class Grid extends EventDispatcher {
|
|
162
166
|
|
163
167
|
public updateDataSet(records: (any)[], rowIdentifier: string): void;
|
164
168
|
|
165
|
-
public removeRow(rowRef: Grid.RowReference): RowDefinition;
|
169
|
+
public removeRow(rowRef: Grid.RowReference): RowDefinition|null;
|
166
170
|
|
167
|
-
public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[];
|
171
|
+
public removeRows(rowRefs: (Grid.RowReference)[]): (RowDefinition)[]|null;
|
168
172
|
|
169
173
|
public removeAllRows(): void;
|
170
174
|
|
@@ -196,9 +200,9 @@ declare class Grid extends EventDispatcher {
|
|
196
200
|
|
197
201
|
public getColumnDataType(colIndex: number): string;
|
198
202
|
|
199
|
-
public getColumnDefinition(colIndex: number): ColumnDefinition;
|
203
|
+
public getColumnDefinition(colIndex: number): ColumnDefinition|null;
|
200
204
|
|
201
|
-
public getRowDefinition(rowRef: number|string): RowDefinition;
|
205
|
+
public getRowDefinition(rowRef: number|string): RowDefinition|null;
|
202
206
|
|
203
207
|
public getRowDefinitions(): (RowDefinition)[];
|
204
208
|
|
@@ -236,7 +240,7 @@ declare class Grid extends EventDispatcher {
|
|
236
240
|
|
237
241
|
public clearSort(): void;
|
238
242
|
|
239
|
-
public getDataView(): DataView;
|
243
|
+
public getDataView(): DataView|null;
|
240
244
|
|
241
245
|
public setPage(pageIndex: number): boolean;
|
242
246
|
|
@@ -258,6 +262,10 @@ declare class Grid extends EventDispatcher {
|
|
258
262
|
|
259
263
|
public getExtension(str: string): any;
|
260
264
|
|
265
|
+
public activateADCPolling(activated?: boolean): void;
|
266
|
+
|
267
|
+
public refreshADCData(): boolean;
|
268
|
+
|
261
269
|
public logDT(opt_options?: any): void;
|
262
270
|
|
263
271
|
public logDV(opt_options?: any): void;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
declare class RowDefSorter {
|
4
|
+
|
5
|
+
constructor();
|
6
|
+
|
7
|
+
public dispose(): void;
|
8
|
+
|
9
|
+
public getSorter(rowSorting?: boolean): ((...params: any[]) => any)|null;
|
10
|
+
|
11
|
+
public setSortLogic(func?: ((...params: any[]) => any)): void;
|
12
|
+
|
13
|
+
public setField(field: string): void;
|
14
|
+
|
15
|
+
public setContext(key: string, value: any): void;
|
16
|
+
|
17
|
+
}
|
18
|
+
|
19
|
+
export default RowDefSorter;
|
@@ -31,12 +31,14 @@ declare class RowDefinition {
|
|
31
31
|
|
32
32
|
public getRowId(): string;
|
33
33
|
|
34
|
-
public getConfigObject(rowOptions?: RowDefinition.Options): RowDefinition.Options;
|
34
|
+
public getConfigObject(rowOptions?: RowDefinition.Options): RowDefinition.Options|null;
|
35
35
|
|
36
36
|
public getDataId(): string;
|
37
37
|
|
38
38
|
public setDataSource(dataSource: DataCache): void;
|
39
39
|
|
40
|
+
public getDataSource(): DataCache|null;
|
41
|
+
|
40
42
|
public getRowData(): any;
|
41
43
|
|
42
44
|
public getData(field: string): any;
|
@@ -57,7 +59,7 @@ declare class RowDefinition {
|
|
57
59
|
|
58
60
|
public getDisplayText(): string;
|
59
61
|
|
60
|
-
public getLabel(): string|null;
|
62
|
+
public getLabel(): string|null|null;
|
61
63
|
|
62
64
|
public isRowHeader(): boolean;
|
63
65
|
|
@@ -81,13 +83,13 @@ declare class RowDefinition {
|
|
81
83
|
|
82
84
|
public addUpdate(e: any): boolean;
|
83
85
|
|
84
|
-
public getUpdates(): { [key: string]: number };
|
86
|
+
public getUpdates(): { [key: string]: number }|null;
|
85
87
|
|
86
88
|
public resetUpdates(): void;
|
87
89
|
|
88
90
|
public registerToView(view: DataTable, rowId?: string): void;
|
89
91
|
|
90
|
-
public static deregisterFromView(rowIds: (string)[], rowDef: RowDefinition): (string)[];
|
92
|
+
public static deregisterFromView(rowIds: (string)[], rowDef: RowDefinition): (string)[]|null;
|
91
93
|
|
92
94
|
public collapseChain(): boolean;
|
93
95
|
|
@@ -95,15 +97,15 @@ declare class RowDefinition {
|
|
95
97
|
|
96
98
|
public toggleChain(): boolean;
|
97
99
|
|
98
|
-
public getChildren(): (RowDefinition)[];
|
100
|
+
public getChildren(): (RowDefinition)[]|null;
|
99
101
|
|
100
102
|
public getDescendants(ary?: (RowDefinition)[]): (RowDefinition)[];
|
101
103
|
|
102
|
-
public getAllDescendantIds(): (string)[];
|
104
|
+
public getAllDescendantIds(): (string)[]|null;
|
103
105
|
|
104
106
|
public getChildCount(): number;
|
105
107
|
|
106
|
-
public getParent(): RowDefinition;
|
108
|
+
public getParent(): RowDefinition|null;
|
107
109
|
|
108
110
|
public getDepthLevel(): number;
|
109
111
|
|
@@ -9,9 +9,11 @@ declare class SnapshotFiller extends EventDispatcher {
|
|
9
9
|
|
10
10
|
public addRic(ric: string): void;
|
11
11
|
|
12
|
+
public addRics(rics: (string)[]): boolean;
|
13
|
+
|
12
14
|
public addField(str: string): void;
|
13
15
|
|
14
|
-
public addFields(fields: (string)[]):
|
16
|
+
public addFields(fields: (string)[]): boolean;
|
15
17
|
|
16
18
|
public static isValidField(str: string): boolean;
|
17
19
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
2
|
-
import { cloneObject
|
2
|
+
import { cloneObject } from "../../tr-grid-util/es6/Util.js";
|
3
3
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
4
4
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
5
5
|
import Dom from "../../tr-grid-util/es6/Dom.js";
|
6
|
+
import { DragUI } from "../../tr-grid-util/es6/DragUI.js";
|
6
7
|
|
7
8
|
declare namespace RowDraggingPlugin {
|
8
9
|
|
@@ -3,6 +3,7 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
3
3
|
import { ExpanderIcon } from "../../tr-grid-util/es6/ExpanderIcon.js";
|
4
4
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
5
5
|
import { RowPainter } from "../../tr-grid-util/es6/RowPainter.js";
|
6
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
6
7
|
|
7
8
|
declare namespace RowGroupingPlugin {
|
8
9
|
|
@@ -26,6 +27,8 @@ declare namespace RowGroupingPlugin {
|
|
26
27
|
autoGroupSorting?: boolean,
|
27
28
|
indentSize?: (boolean|number|(number)[]),
|
28
29
|
colorTag?: boolean,
|
30
|
+
predefinedColors?: any,
|
31
|
+
groupColors?: any,
|
29
32
|
clicked?: ((...params: any[]) => any),
|
30
33
|
groupAdded?: ((...params: any[]) => any),
|
31
34
|
beforeGroupAdded?: ((...params: any[]) => any),
|
@@ -75,10 +78,12 @@ declare class RowGroupingPlugin extends GridPlugin {
|
|
75
78
|
|
76
79
|
public setGroupSortingLogic(sortFunction: RowGroupingPlugin.GroupSortLogic): void;
|
77
80
|
|
78
|
-
public getGroupSortingLogic(): ((...params: any[]) => any);
|
81
|
+
public getGroupSortingLogic(): ((...params: any[]) => any)|null;
|
79
82
|
|
80
83
|
public setPredefinedGroups(predefinedGroups: any[]|(any[])[]): void;
|
81
84
|
|
85
|
+
public setPredefinedColors(predefinedColors: any): void;
|
86
|
+
|
82
87
|
public sortGroups(): void;
|
83
88
|
|
84
89
|
public updateHeaders(): void;
|
@@ -93,7 +98,7 @@ declare class RowGroupingPlugin extends GridPlugin {
|
|
93
98
|
|
94
99
|
public disableClicking(opt_disabled?: boolean): void;
|
95
100
|
|
96
|
-
public getGroupingStates(): (RowGroupingPlugin.GroupingState)[];
|
101
|
+
public getGroupingStates(): (RowGroupingPlugin.GroupingState)[]|null;
|
97
102
|
|
98
103
|
public setGroupingStates(states: (RowGroupingPlugin.GroupingState)[]|string): void;
|
99
104
|
|
@@ -3,6 +3,7 @@ import { GridPlugin, rowDefRowGetter } from "../../tr-grid-util/es6/GridPlugin.j
|
|
3
3
|
import { ExpanderIcon } from "../../tr-grid-util/es6/ExpanderIcon.js";
|
4
4
|
import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
|
5
5
|
import { RowPainter } from "../../tr-grid-util/es6/RowPainter.js";
|
6
|
+
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
6
7
|
|
7
8
|
declare namespace RowSegmentingPlugin {
|
8
9
|
|
@@ -11,6 +12,8 @@ declare namespace RowSegmentingPlugin {
|
|
11
12
|
type Options = {
|
12
13
|
spanning?: boolean,
|
13
14
|
colorTag?: boolean,
|
15
|
+
cssField?: string,
|
16
|
+
predefinedColors?: any,
|
14
17
|
clicked?: ((...params: any[]) => any),
|
15
18
|
headerMenuClicked?: ((...params: any[]) => any),
|
16
19
|
segmentSeparatorBinding?: ((...params: any[]) => any),
|
@@ -70,14 +73,16 @@ declare class RowSegmentingPlugin extends GridPlugin {
|
|
70
73
|
|
71
74
|
public removeAllSegmentChildren(): void;
|
72
75
|
|
73
|
-
public getSegmentIds(): (string)[];
|
76
|
+
public getSegmentIds(): (string)[]|null;
|
74
77
|
|
75
|
-
public getSegmentChildIds(segmentRef: string|number): (string)[];
|
78
|
+
public getSegmentChildIds(segmentRef: string|number): (string)[]|null;
|
76
79
|
|
77
80
|
public setSortingLogic(sortFunction: RowSegmentingPlugin.SortingLogic): void;
|
78
81
|
|
79
82
|
public sortSegments(sortFunction?: RowSegmentingPlugin.SortingLogic): void;
|
80
83
|
|
84
|
+
public setPredefinedColors(predefinedColors: any): void;
|
85
|
+
|
81
86
|
}
|
82
87
|
|
83
88
|
export default RowSegmentingPlugin;
|
@@ -65,7 +65,7 @@ declare class TextFormattingPlugin extends GridPlugin {
|
|
65
65
|
|
66
66
|
public getColumnFormatOptions(colIndex: number, options?: any): any;
|
67
67
|
|
68
|
-
public getFormatter(colIndex: number): FieldFormatter;
|
68
|
+
public getFormatter(colIndex: number): FieldFormatter|null;
|
69
69
|
|
70
70
|
public formatText(colIndex: number, obj: any): string;
|
71
71
|
|
package/lib/versions.json
CHANGED
@@ -1,36 +1,37 @@
|
|
1
1
|
{
|
2
|
-
"tr-grid-util": "1.3.
|
3
|
-
"@grid/
|
2
|
+
"tr-grid-util": "1.3.56",
|
3
|
+
"@grid/column-dragging": "1.0.6",
|
4
|
+
"@grid/row-segmenting": "1.0.14",
|
4
5
|
"@grid/statistics-row": "1.0.13",
|
5
6
|
"@grid/zoom": "1.0.11",
|
6
7
|
"tr-grid-auto-tooltip": "1.1.5",
|
7
8
|
"tr-grid-cell-selection": "1.0.30",
|
8
|
-
"tr-grid-checkbox": "1.0.
|
9
|
+
"tr-grid-checkbox": "1.0.58",
|
9
10
|
"tr-grid-column-fitter": "1.0.39",
|
10
11
|
"tr-grid-column-formatting": "0.9.33",
|
11
12
|
"tr-grid-column-grouping": "1.0.19",
|
12
13
|
"tr-grid-column-resizing": "1.0.25",
|
13
|
-
"tr-grid-column-selection": "1.0.
|
14
|
-
"tr-grid-column-stack": "1.0.
|
15
|
-
"tr-grid-conditional-coloring": "1.0.
|
14
|
+
"tr-grid-column-selection": "1.0.24",
|
15
|
+
"tr-grid-column-stack": "1.0.34",
|
16
|
+
"tr-grid-conditional-coloring": "1.0.52",
|
16
17
|
"tr-grid-content-wrap": "1.0.18",
|
17
18
|
"tr-grid-contextmenu": "1.0.37",
|
18
19
|
"tr-grid-filter-input": "0.9.28",
|
19
20
|
"tr-grid-heat-map": "1.0.27",
|
20
|
-
"tr-grid-in-cell-editing": "1.0.
|
21
|
+
"tr-grid-in-cell-editing": "1.0.66",
|
21
22
|
"tr-grid-pagination": "1.0.23",
|
22
23
|
"tr-grid-percent-bar": "1.0.20",
|
23
|
-
"tr-grid-printer": "1.0.
|
24
|
+
"tr-grid-printer": "1.0.15",
|
24
25
|
"tr-grid-range-bar": "1.0.8",
|
25
|
-
"tr-grid-row-dragging": "1.0.
|
26
|
+
"tr-grid-row-dragging": "1.0.21",
|
26
27
|
"tr-grid-row-filtering": "1.0.49",
|
27
|
-
"tr-grid-row-grouping": "1.0.
|
28
|
-
"tr-grid-row-selection": "1.0.
|
28
|
+
"tr-grid-row-grouping": "1.0.76",
|
29
|
+
"tr-grid-row-selection": "1.0.18",
|
29
30
|
"tr-grid-rowcoloring": "1.0.19",
|
30
|
-
"tr-grid-textformatting": "1.0.
|
31
|
+
"tr-grid-textformatting": "1.0.44",
|
31
32
|
"tr-grid-titlewrap": "1.0.19",
|
32
33
|
"@grid/formatters": "1.0.48",
|
33
34
|
"@grid/column-selection-dialog": "4.0.43",
|
34
|
-
"@grid/filter-dialog": "4.0.
|
35
|
+
"@grid/filter-dialog": "4.0.48",
|
35
36
|
"@grid/column-format-dialog": "4.0.41"
|
36
37
|
}
|
package/package.json
CHANGED
@@ -1,24 +0,0 @@
|
|
1
|
-
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
|
-
import Plugin from "./Plugin.js";
|
3
|
-
import ILayoutGrid from "../ILayoutGrid.js";
|
4
|
-
import Util from "../util/util.js";
|
5
|
-
import Core from "../Core.js";
|
6
|
-
|
7
|
-
declare class DragAndDropTitlePlugin extends Plugin {
|
8
|
-
|
9
|
-
constructor();
|
10
|
-
|
11
|
-
public getMarker(): null;
|
12
|
-
|
13
|
-
public lockFrozenColumn(lock: boolean): void;
|
14
|
-
|
15
|
-
public disable(opt_disabled?: boolean): void;
|
16
|
-
|
17
|
-
public disableMoving(opt_disabled?: boolean): void;
|
18
|
-
|
19
|
-
public disableDragBox(opt_disabled?: boolean): void;
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
export default DragAndDropTitlePlugin;
|
24
|
-
export { DragAndDropTitlePlugin };
|