@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
@@ -1,272 +0,0 @@
|
|
1
|
-
import Ext from "../../../../tr-grid-util/es6/Ext.js";
|
2
|
-
import Util from "../util/util.js";
|
3
|
-
import Core from "../Core.js"; // eslint-disable-line
|
4
|
-
import EventDispatcher from "../event/EventDispatcher.js";
|
5
|
-
import ElementWrapper from "../components/ElementWrapper.js"; // eslint-disable-line
|
6
|
-
|
7
|
-
|
8
|
-
/** Base class for all built-in plugins
|
9
|
-
* @constructor
|
10
|
-
* @extends {EventDispatcher}
|
11
|
-
*/
|
12
|
-
var Plugin = function () {
|
13
|
-
/* throw("Plugin is an abstract Class"); */
|
14
|
-
};
|
15
|
-
Ext.inherits(Plugin, EventDispatcher); // Inherits() will replace prototype of the derived object
|
16
|
-
|
17
|
-
//#region Public Methods
|
18
|
-
/**The name must be readonly and unique among all other plugins
|
19
|
-
* @public
|
20
|
-
* @return {string}
|
21
|
-
*/
|
22
|
-
Plugin.prototype.getName = function () {
|
23
|
-
return "Plugin";
|
24
|
-
};
|
25
|
-
|
26
|
-
/** @public
|
27
|
-
* @param {!Core} owner
|
28
|
-
*/
|
29
|
-
Plugin.prototype.initialize = function (owner) {
|
30
|
-
this._host = owner;
|
31
|
-
};
|
32
|
-
/**For disposing any resource
|
33
|
-
* @public
|
34
|
-
* @param {!Core} owner
|
35
|
-
*/
|
36
|
-
Plugin.prototype.unload = function (owner) {
|
37
|
-
this._host = null;
|
38
|
-
this.unlistenAll();
|
39
|
-
};
|
40
|
-
|
41
|
-
/** @public
|
42
|
-
* @param {Event|Element|ElementWrapper} e
|
43
|
-
* @return {Core}
|
44
|
-
*/
|
45
|
-
Plugin.prototype.getRelativeGrid = function (e) {
|
46
|
-
var targetEl;
|
47
|
-
if(e.target) { // The Given object is an Event
|
48
|
-
targetEl = /** @type{Element} */(e.target);
|
49
|
-
var gridAPI = targetEl["api"];
|
50
|
-
if(gridAPI && gridAPI["getCoreGrid"]) {
|
51
|
-
return /** @type{Core} */(gridAPI["getCoreGrid"]());
|
52
|
-
}
|
53
|
-
} else if(e["getElement"]) { // The Given object is implementing ElementWrapper
|
54
|
-
targetEl = e["getElement"]();
|
55
|
-
} else if(Util.isElement(e)){ // The Given object is just an element
|
56
|
-
targetEl = /** @type{Element} */(e);
|
57
|
-
}
|
58
|
-
|
59
|
-
var gridEl = (targetEl) ? Util.closestElement(targetEl, "tr-grid") : null;
|
60
|
-
if(gridEl) {
|
61
|
-
if(this._host) {
|
62
|
-
if(this._host.getElement() === gridEl) {
|
63
|
-
return this._host;
|
64
|
-
}
|
65
|
-
} else {
|
66
|
-
var hostLength = this._hosts ? this._hosts.length : 0;
|
67
|
-
for (var i = 0; i < hostLength; i++) {
|
68
|
-
var host = this._hosts[i];
|
69
|
-
if (host.getElement() === gridEl) {
|
70
|
-
return host;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
return null;
|
77
|
-
};
|
78
|
-
/** Use in case of there is an overlay over the top of the grid (target element cannot be used).
|
79
|
-
* @public
|
80
|
-
* @param {number} x
|
81
|
-
* @param {number} y
|
82
|
-
* @return {Element}
|
83
|
-
*/
|
84
|
-
Plugin.prototype.getGridElementFromPoint = function (x, y) {
|
85
|
-
var elem = document.elementFromPoint(x, y);
|
86
|
-
var grid = Util.closestElement(elem, "tr-grid");
|
87
|
-
|
88
|
-
// Some elements are over grid element, hide them all by setting the visibility to hidden
|
89
|
-
var skipElem = [];
|
90
|
-
var skipVisibility = [];
|
91
|
-
while (!grid && elem && elem.tagName != "HTML") {
|
92
|
-
skipElem.push(elem);
|
93
|
-
skipVisibility.push(elem.style.visibility);
|
94
|
-
elem.style.visibility = "hidden";
|
95
|
-
elem = document.elementFromPoint(x, y);
|
96
|
-
|
97
|
-
grid = Util.closestElement(elem, "tr-grid");
|
98
|
-
}
|
99
|
-
for (var i = 0; i < skipElem.length; i++) {
|
100
|
-
skipElem[i].style.visibility = skipVisibility[i];
|
101
|
-
}
|
102
|
-
return grid;
|
103
|
-
};
|
104
|
-
|
105
|
-
//#endregion Public Methods
|
106
|
-
|
107
|
-
//#region Protected Methods
|
108
|
-
/** @protected
|
109
|
-
* @ignore
|
110
|
-
* @return {Array.<string>}
|
111
|
-
*/
|
112
|
-
Plugin.prototype._getDataColumnMap = function () {
|
113
|
-
if (this._dataMap) { return this._dataMap; }
|
114
|
-
|
115
|
-
if (this._host) {
|
116
|
-
return this._host.getDataColumnMap();
|
117
|
-
}
|
118
|
-
if (this._hosts && this._hosts[0]) {
|
119
|
-
return this._hosts[0].getDataColumnMap();
|
120
|
-
}
|
121
|
-
return null;
|
122
|
-
};
|
123
|
-
/** @protected
|
124
|
-
* @ignore
|
125
|
-
* @param {number} colIndex
|
126
|
-
* @return {string}
|
127
|
-
*/
|
128
|
-
Plugin.prototype._getDataColumnName = function (colIndex) {
|
129
|
-
var dataMap = this._getDataColumnMap();
|
130
|
-
if(dataMap){
|
131
|
-
return dataMap[colIndex] || "";
|
132
|
-
}
|
133
|
-
return "";
|
134
|
-
};
|
135
|
-
|
136
|
-
/** @protected
|
137
|
-
* @ignore
|
138
|
-
* @param {Object} e
|
139
|
-
* @return {boolean}
|
140
|
-
*/
|
141
|
-
Plugin.prototype._isNotFirstHost = function(e) {
|
142
|
-
if (this._hosts) {
|
143
|
-
return e["sender"] !== this._hosts[0];
|
144
|
-
}
|
145
|
-
return false;
|
146
|
-
};
|
147
|
-
/** @protected
|
148
|
-
* @ignore
|
149
|
-
* @param {Object} e
|
150
|
-
*/
|
151
|
-
Plugin.prototype._onColumnAdded = function (e) {
|
152
|
-
if (this._isNotFirstHost(e)) {
|
153
|
-
return;
|
154
|
-
}
|
155
|
-
if (!e["atTheMiddle"]) { return; }
|
156
|
-
var colIndex = /** @type{number} */(e["colIndex"]);
|
157
|
-
Util.insertArrayItem(this._colData, colIndex, null);
|
158
|
-
Util.insertArrayItem(this._dataMap, colIndex, null);
|
159
|
-
};
|
160
|
-
/** @protected
|
161
|
-
* @ignore
|
162
|
-
* @param {Object} e
|
163
|
-
*/
|
164
|
-
Plugin.prototype._onColumnMoved = function (e) {
|
165
|
-
if (this._isNotFirstHost(e)) {
|
166
|
-
return;
|
167
|
-
}
|
168
|
-
var from = /** @type{number} */(e["fromColIndex"]);
|
169
|
-
var to = /** @type{number} */(e["toColIndex"]);
|
170
|
-
|
171
|
-
Util.moveArrayItem(this._colData, from, to);
|
172
|
-
Util.moveArrayItem(this._dataMap, from, to);
|
173
|
-
};
|
174
|
-
/** @protected
|
175
|
-
* @ignore
|
176
|
-
* @param {Object} e
|
177
|
-
*/
|
178
|
-
Plugin.prototype._onColumnRemoved = function (e) {
|
179
|
-
if (this._isNotFirstHost(e)) {
|
180
|
-
return;
|
181
|
-
}
|
182
|
-
if (!e["atTheMiddle"]) { return; }
|
183
|
-
var colIndex = /** @type{number} */(e["colIndex"]);
|
184
|
-
if(this._colData) {
|
185
|
-
this._colData.splice(colIndex, 1);
|
186
|
-
}
|
187
|
-
if(this._dataMap) {
|
188
|
-
this._dataMap.splice(colIndex, 1);
|
189
|
-
}
|
190
|
-
};
|
191
|
-
|
192
|
-
|
193
|
-
/** @protected
|
194
|
-
* @ignore
|
195
|
-
* @return {number}
|
196
|
-
*/
|
197
|
-
Plugin.prototype._getColumnCount = function() {
|
198
|
-
var host = this._host || this._hosts[0];
|
199
|
-
return (host) ? host.getColumnCount() : 0;
|
200
|
-
};
|
201
|
-
/** @protected
|
202
|
-
* @ignore
|
203
|
-
* @param {string} pluginName
|
204
|
-
* @return {*|null}
|
205
|
-
*/
|
206
|
-
Plugin.prototype._getPlugin = function(pluginName) {
|
207
|
-
var host = this._host || this._hosts[0];
|
208
|
-
return (host) ? host.getPlugin(pluginName) : null;
|
209
|
-
};
|
210
|
-
|
211
|
-
/** @protected
|
212
|
-
* @ignore
|
213
|
-
* @param {number} scrollVal
|
214
|
-
*/
|
215
|
-
Plugin.prototype._scrollDown = function (scrollVal) {
|
216
|
-
var host = this._host || this._hosts[0];
|
217
|
-
host.scrollDown(scrollVal);
|
218
|
-
};
|
219
|
-
/** @protected
|
220
|
-
* @ignore
|
221
|
-
* @param {number} rowIndex
|
222
|
-
*/
|
223
|
-
Plugin.prototype._scrollToRow = function (rowIndex) {
|
224
|
-
var host = this._host || this._hosts[0];
|
225
|
-
host.scrollToRow(null, rowIndex);
|
226
|
-
};
|
227
|
-
/** @protected
|
228
|
-
* @ignore
|
229
|
-
* @param {number} scrollVal
|
230
|
-
*/
|
231
|
-
Plugin.prototype._scrollRight = function (scrollVal) {
|
232
|
-
if(this._host) {
|
233
|
-
this._host.scrollRight(scrollVal);
|
234
|
-
} else if(this._hosts) {
|
235
|
-
var len = this._hosts.length;
|
236
|
-
for(var i = 0; i < len; ++i) {
|
237
|
-
var host = this._hosts[i];
|
238
|
-
host.scrollRight(scrollVal);
|
239
|
-
}
|
240
|
-
}
|
241
|
-
};
|
242
|
-
|
243
|
-
//#endregion Protected Methods
|
244
|
-
|
245
|
-
//#region Protected Fields
|
246
|
-
/** @protected
|
247
|
-
* @ignore
|
248
|
-
* @type {Core}
|
249
|
-
*/
|
250
|
-
Plugin.prototype._host = null;
|
251
|
-
/** @protected
|
252
|
-
* @ignore
|
253
|
-
* @type {Array.<Core>}
|
254
|
-
*/
|
255
|
-
Plugin.prototype._hosts = null; // For a plug-in that support multi-table
|
256
|
-
|
257
|
-
/** @protected
|
258
|
-
* @ignore
|
259
|
-
* @type {Array.<string|null>}
|
260
|
-
*/
|
261
|
-
Plugin.prototype._dataMap = null;
|
262
|
-
/** @protected
|
263
|
-
* @ignore
|
264
|
-
* @type {Array.<Object>}
|
265
|
-
*/
|
266
|
-
Plugin.prototype._colData = null;
|
267
|
-
//#endregion Protected Fields
|
268
|
-
|
269
|
-
Plugin._proto = Plugin.prototype;
|
270
|
-
|
271
|
-
export default Plugin;
|
272
|
-
export { Plugin };
|
@@ -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 };
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import Ext from "../../../../../tr-grid-util/es6/Ext.js";
|
2
|
-
import Util from "../util/util.js";
|
3
|
-
import Core from "../Core.js"; // eslint-disable-line
|
4
|
-
import EventDispatcher from "../event/EventDispatcher.js";
|
5
|
-
import ElementWrapper from "../components/ElementWrapper.js"; // eslint-disable-line
|
6
|
-
|
7
|
-
declare class Plugin extends EventDispatcher {
|
8
|
-
|
9
|
-
constructor();
|
10
|
-
|
11
|
-
public getName(): string;
|
12
|
-
|
13
|
-
public initialize(owner: Core): void;
|
14
|
-
|
15
|
-
public unload(owner: Core): void;
|
16
|
-
|
17
|
-
public getRelativeGrid(e: Event|Element|ElementWrapper): Core;
|
18
|
-
|
19
|
-
public getGridElementFromPoint(x: number, y: number): Element;
|
20
|
-
|
21
|
-
}
|
22
|
-
|
23
|
-
declare function gridAPI(x: number, y: number): Element;
|
24
|
-
|
25
|
-
declare function to(e: any): void;
|
26
|
-
|
27
|
-
export default Plugin;
|
28
|
-
export { Plugin };
|