@refinitiv-ui/efx-grid 6.0.91 → 6.0.93
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 +1 -1
- package/lib/column-dragging/es6/ColumnDragging.js +144 -34
- package/lib/core/dist/core.js +2410 -2621
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/ColumnStats.js +14 -14
- package/lib/core/es6/data/DataCache.js +118 -118
- package/lib/core/es6/data/DataTable.d.ts +3 -1
- package/lib/core/es6/data/DataTable.js +208 -190
- package/lib/core/es6/data/DataView.d.ts +1 -1
- package/lib/core/es6/data/DataView.js +291 -291
- package/lib/core/es6/data/Segment.js +79 -79
- package/lib/core/es6/data/SegmentCollection.js +81 -81
- package/lib/core/es6/data/WrappedView.js +41 -41
- package/lib/core/es6/grid/Core.js +635 -635
- package/lib/core/es6/grid/ILayoutGrid.js +1 -1
- package/lib/core/es6/grid/LayoutGrid.js +183 -183
- package/lib/core/es6/grid/VirtualizedLayoutGrid.js +91 -91
- package/lib/core/es6/grid/components/Cell.js +29 -29
- package/lib/core/es6/grid/components/CellFloatingPanel.js +11 -11
- package/lib/core/es6/grid/components/CellSpan.js +7 -7
- package/lib/core/es6/grid/components/CellSpans.js +36 -34
- package/lib/core/es6/grid/components/Column.js +40 -40
- package/lib/core/es6/grid/components/ElementWrapper.js +17 -17
- package/lib/core/es6/grid/components/HScrollbar.js +31 -31
- package/lib/core/es6/grid/components/Scrollbar.js +77 -77
- package/lib/core/es6/grid/components/StretchedCells.js +49 -49
- package/lib/core/es6/grid/components/VScrollbar.js +11 -11
- package/lib/core/es6/grid/components/VirtualItems.js +3 -3
- package/lib/core/es6/grid/event/EventDispatcher.js +9 -9
- package/lib/core/es6/grid/event/EventListeners.js +4 -4
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +186 -186
- package/lib/core/es6/grid/util/Conflator.js +4 -4
- package/lib/core/es6/grid/util/Reverter.js +1 -1
- package/lib/core/es6/grid/util/SectionSettings.js +20 -20
- package/lib/core/es6/grid/util/SelectionList.js +23 -23
- package/lib/core/es6/grid/util/TrackLayout.js +74 -74
- package/lib/core/es6/grid/util/Virtualizer.js +15 -15
- package/lib/core/es6/grid/util/util.js +20 -20
- package/lib/core/es6/index.d.ts +0 -2
- package/lib/core/es6/index.js +0 -3
- package/lib/filter-dialog/lib/filter-dialog.js +1 -0
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +193 -70
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +46 -30
- package/lib/rt-grid/es6/RowDefinition.d.ts +2 -1
- package/lib/rt-grid/es6/RowDefinition.js +74 -16
- package/lib/tr-grid-cell-selection/es6/CellSelection.js +56 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +268 -268
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +3 -2
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +60 -32
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +279 -279
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +227 -207
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +11 -11
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -2
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +120 -121
- package/lib/tr-grid-util/es6/CellPainter.js +94 -104
- package/lib/tr-grid-util/es6/Conflator.js +4 -4
- package/lib/tr-grid-util/es6/CoralItems.js +6 -6
- package/lib/tr-grid-util/es6/DateTime.js +41 -41
- package/lib/tr-grid-util/es6/Deferred.js +5 -5
- package/lib/tr-grid-util/es6/Delay.d.ts +3 -3
- package/lib/tr-grid-util/es6/Delay.js +14 -3
- package/lib/tr-grid-util/es6/Dom.js +26 -26
- package/lib/tr-grid-util/es6/DragUI.js +17 -17
- package/lib/tr-grid-util/es6/ElementObserver.js +12 -12
- package/lib/tr-grid-util/es6/ElementWrapper.js +2 -2
- package/lib/tr-grid-util/es6/ElfDate.js +4 -4
- package/lib/tr-grid-util/es6/ElfUtil.js +37 -37
- package/lib/tr-grid-util/es6/EventDispatcher.js +12 -12
- package/lib/tr-grid-util/es6/ExpanderIcon.js +6 -6
- package/lib/tr-grid-util/es6/ExpressionParser.js +43 -43
- package/lib/tr-grid-util/es6/Ext.js +6 -6
- package/lib/tr-grid-util/es6/FieldFormatter.js +17 -17
- package/lib/tr-grid-util/es6/FilterBuilder.js +57 -58
- package/lib/tr-grid-util/es6/FilterOperators.d.ts +12 -1
- package/lib/tr-grid-util/es6/FilterOperators.js +13 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +86 -87
- package/lib/tr-grid-util/es6/GroupDefinitions.js +90 -90
- package/lib/tr-grid-util/es6/Icon.js +4 -4
- package/lib/tr-grid-util/es6/MouseDownTrait.js +6 -6
- package/lib/tr-grid-util/es6/MultiTableManager.js +71 -80
- package/lib/tr-grid-util/es6/NumberFormatter.js +23 -23
- package/lib/tr-grid-util/es6/PercentBar.js +17 -17
- package/lib/tr-grid-util/es6/Perf.js +5 -5
- package/lib/tr-grid-util/es6/Popup.js +42 -42
- package/lib/tr-grid-util/es6/RangeBar.js +5 -5
- package/lib/tr-grid-util/es6/RequestQueue.js +5 -5
- package/lib/tr-grid-util/es6/RowPainter.js +23 -23
- package/lib/tr-grid-util/es6/SubTable.js +94 -94
- package/lib/tr-grid-util/es6/Table.js +51 -51
- package/lib/tr-grid-util/es6/TextHighlighter.js +52 -52
- package/lib/tr-grid-util/es6/TickCodes.js +2 -2
- package/lib/tr-grid-util/es6/Timer.js +2 -2
- package/lib/tr-grid-util/es6/TouchProxy.js +7 -7
- package/lib/tr-grid-util/es6/Util.js +50 -50
- package/lib/tr-grid-util/es6/formula/ADCService.js +2 -2
- package/lib/tr-grid-util/es6/formula/ADCSubscription.js +19 -19
- package/lib/tr-grid-util/es6/formula/AdFinService.js +2 -2
- package/lib/tr-grid-util/es6/formula/AdFinSubscription.js +19 -19
- package/lib/tr-grid-util/es6/formula/Engine.js +56 -56
- package/lib/tr-grid-util/es6/formula/Formula.js +62 -62
- package/lib/tr-grid-util/es6/formula/IntervalSubscription.js +3 -3
- package/lib/tr-grid-util/es6/formula/Realtime.js +15 -15
- package/lib/tr-grid-util/es6/formula/RealtimeService.js +15 -15
- package/lib/tr-grid-util/es6/formula/TSIService.js +2 -2
- package/lib/tr-grid-util/es6/formula/TSISubscription.js +104 -104
- package/lib/tr-grid-util/es6/formula/VariableToken.js +20 -20
- package/lib/tr-grid-util/es6/formula/functions/AdFin.js +10 -10
- package/lib/tr-grid-util/es6/formula/functions/Excel.js +1 -1
- package/lib/tr-grid-util/es6/formula/functions/Info.js +2 -2
- package/lib/tr-grid-util/es6/formula/functions/Internal.js +5 -5
- package/lib/tr-grid-util/es6/formula/functions/Logic.js +5 -5
- package/lib/tr-grid-util/es6/formula/functions/Math.js +46 -46
- package/lib/tr-grid-util/es6/formula/functions/Statistics.js +27 -27
- package/lib/tr-grid-util/es6/formula/functions/Text.js +19 -19
- package/lib/tr-grid-util/es6/index.js +1 -1
- package/lib/tr-grid-util/es6/jet/Adc.js +36 -36
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +11 -11
- package/lib/tr-grid-util/es6/jet/DataGenerator.js +95 -95
- package/lib/tr-grid-util/es6/jet/DataSet.js +1 -1
- package/lib/tr-grid-util/es6/jet/MockArchive.js +5 -5
- package/lib/tr-grid-util/es6/jet/MockJET.js +1 -1
- package/lib/tr-grid-util/es6/jet/MockQuotes.js +13 -13
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +100 -100
- package/lib/tr-grid-util/es6/jet/MockRTK.js +4 -4
- package/lib/tr-grid-util/es6/jet/MockUtil.js +2 -2
- package/lib/tr-grid-util/es6/jet/index.js +1 -1
- package/lib/tr-grid-util/es6/jet/mockDataAPI.js +15 -15
- package/lib/tr-grid-util/es6/locale/translation-de.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-en.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-ja.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-zh-hant.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation-zh.js +1 -1
- package/lib/tr-grid-util/es6/locale/translation.js +1 -1
- package/lib/types/es6/ColumnDragging.d.ts +1 -1
- package/lib/types/es6/ColumnGrouping.d.ts +3 -1
- package/lib/types/es6/Core/data/DataTable.d.ts +4 -0
- package/lib/types/es6/Core/data/DataView.d.ts +2 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +2 -0
- package/lib/types/es6/Core/index.d.ts +0 -2
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +2 -1
- package/lib/types/es6/RowDragging.d.ts +1 -2
- package/lib/versions.json +12 -12
- package/package.json +1 -1
- package/lib/core/es6/grid/util/ElementFrameWork.d.ts +0 -18
- package/lib/core/es6/grid/util/ElementFrameWork.js +0 -227
- package/lib/core/es6/grid/util/HttpRequest.d.ts +0 -53
- package/lib/core/es6/grid/util/HttpRequest.js +0 -371
- package/lib/core/es6/grid/util/PercentBar.d.ts +0 -43
- package/lib/core/es6/grid/util/PercentBar.js +0 -390
- package/lib/core/es6/grid/util/PercentBarRenderer.d.ts +0 -41
- package/lib/core/es6/grid/util/PercentBarRenderer.js +0 -316
- package/lib/core/es6/grid/util/RangeBar.d.ts +0 -25
- package/lib/core/es6/grid/util/RangeBar.js +0 -255
- package/lib/types/es6/Core/grid/util/ElementFrameWork.d.ts +0 -18
- package/lib/types/es6/Core/grid/util/HttpRequest.d.ts +0 -53
- package/lib/types/es6/Core/grid/util/PercentBar.d.ts +0 -43
- package/lib/types/es6/Core/grid/util/PercentBarRenderer.d.ts +0 -41
- package/lib/types/es6/Core/grid/util/RangeBar.d.ts +0 -25
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
|
2
|
-
import { cloneObject } from "../../tr-grid-util/es6/Util.js";
|
|
3
2
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
4
3
|
import { GroupDefinitions } from "../../tr-grid-util/es6/GroupDefinitions.js";
|
|
5
|
-
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
4
|
+
import { cloneObject, injectCss, prettifyCss, deepEqual } from "../../tr-grid-util/es6/Util.js";
|
|
6
5
|
|
|
7
6
|
declare namespace ColumnGroupingPlugin {
|
|
8
7
|
|
|
@@ -39,6 +38,8 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
|
39
38
|
|
|
40
39
|
public renderGroups(): void;
|
|
41
40
|
|
|
41
|
+
public getMutualGroupId(colRefs: (string|number)[]|null): string;
|
|
42
|
+
|
|
42
43
|
public addColumnToGroup(column: any, groupId: string, colIndex: number): void;
|
|
43
44
|
|
|
44
45
|
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition|null): string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Ext } from "../../tr-grid-util/es6/Ext.js";
|
|
2
|
-
import { cloneObject } from "../../tr-grid-util/es6/Util.js";
|
|
3
2
|
import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
4
3
|
import { GroupDefinitions } from "../../tr-grid-util/es6/GroupDefinitions.js";
|
|
5
|
-
import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
|
|
4
|
+
import { cloneObject, injectCss, prettifyCss, deepEqual } from "../../tr-grid-util/es6/Util.js";
|
|
6
5
|
|
|
7
6
|
/** @typedef {Array<ColumnGroupingPlugin~GroupDefinition>} ColumnGroupingPlugin~Options
|
|
8
7
|
* @description This options can be specified by `columnGrouping` property of the main grid's options or extension options.
|
|
@@ -173,8 +172,8 @@ ColumnGroupingPlugin._cloneObject = function (obj) {
|
|
|
173
172
|
*/
|
|
174
173
|
ColumnGroupingPlugin._flattenGroupDefs = function (groupDefs) {
|
|
175
174
|
var grpCount = groupDefs ? groupDefs.length : 0;
|
|
176
|
-
for (var
|
|
177
|
-
ColumnGroupingPlugin._recursivelyFlatten(groupDefs[
|
|
175
|
+
for (var _i = 0; _i < grpCount; _i++) {
|
|
176
|
+
ColumnGroupingPlugin._recursivelyFlatten(groupDefs[_i], groupDefs);
|
|
178
177
|
}
|
|
179
178
|
};
|
|
180
179
|
/** Flatten group definition structure by using group ID instead of nested group definitions.
|
|
@@ -187,13 +186,13 @@ ColumnGroupingPlugin._recursivelyFlatten = function (groupDef, groupDefs) {
|
|
|
187
186
|
if (groupDef && groupDef.children) {
|
|
188
187
|
var children = groupDef.children;
|
|
189
188
|
var member, groupId;
|
|
190
|
-
for (var
|
|
191
|
-
member = children[
|
|
189
|
+
for (var _i2 = 0; _i2 < children.length; _i2++) {
|
|
190
|
+
member = children[_i2];
|
|
192
191
|
if (typeof member !== "string") {
|
|
193
192
|
// member is nested group definition
|
|
194
193
|
groupId = member.id;
|
|
195
194
|
if (groupId) {
|
|
196
|
-
children[
|
|
195
|
+
children[_i2] = groupId; // Use group ID instead of nested group definition
|
|
197
196
|
if (groupDefs.indexOf(member) < 0) {
|
|
198
197
|
groupDefs.push(member);
|
|
199
198
|
}
|
|
@@ -431,8 +430,8 @@ ColumnGroupingPlugin.prototype._migrateLegacyStructure = function (groupDefs, co
|
|
|
431
430
|
*/
|
|
432
431
|
ColumnGroupingPlugin.prototype._freezeColumn = function (frozenColIndex, numRightColumn) {
|
|
433
432
|
var hosts = this._hosts;
|
|
434
|
-
for (var
|
|
435
|
-
hosts[
|
|
433
|
+
for (var _i3 = 0; _i3 < hosts.length; _i3++) {
|
|
434
|
+
hosts[_i3].freezeColumn(frozenColIndex, numRightColumn);
|
|
436
435
|
}
|
|
437
436
|
};
|
|
438
437
|
/** @private
|
|
@@ -561,8 +560,8 @@ ColumnGroupingPlugin.prototype._setGroupPinning = function (groupDef, side) {
|
|
|
561
560
|
groupDef.rightPinned = true;
|
|
562
561
|
}
|
|
563
562
|
var children = groupDef["children"];
|
|
564
|
-
for (var
|
|
565
|
-
var child = children[
|
|
563
|
+
for (var _i4 = 0; _i4 < children.length; _i4++) {
|
|
564
|
+
var child = children[_i4];
|
|
566
565
|
var group = this._visibleGroupMap[child];
|
|
567
566
|
if (group) {
|
|
568
567
|
this._setGroupPinning(group, side);
|
|
@@ -726,8 +725,8 @@ ColumnGroupingPlugin.prototype._applyNearestGrouping = function (colIndex) {
|
|
|
726
725
|
}
|
|
727
726
|
}
|
|
728
727
|
if (groupLeftCount && groupRightCount) {
|
|
729
|
-
for (var
|
|
730
|
-
var groupLeftId = groupLeftIds[
|
|
728
|
+
for (var _i5 = 0; _i5 < groupLeftCount; _i5++) {
|
|
729
|
+
var groupLeftId = groupLeftIds[_i5];
|
|
731
730
|
var sharedParentIdx = groupRightIds.indexOf(groupLeftId);
|
|
732
731
|
if (sharedParentIdx >= 0) {
|
|
733
732
|
this._groupDefs.addGroupChild(groupRightIds[sharedParentIdx], colId);
|
|
@@ -808,8 +807,8 @@ ColumnGroupingPlugin.prototype.renderGroups = function () {
|
|
|
808
807
|
this._groupHeaderTimerId = 0;
|
|
809
808
|
var hostCount = this._hosts.length;
|
|
810
809
|
var groupMap = this._visibleGroupMap;
|
|
811
|
-
for (var
|
|
812
|
-
var section = this._hosts[
|
|
810
|
+
for (var _i6 = 0; _i6 < hostCount; ++_i6) {
|
|
811
|
+
var section = this._hosts[_i6].getSection("title");
|
|
813
812
|
if (!section) {
|
|
814
813
|
continue;
|
|
815
814
|
}
|
|
@@ -818,6 +817,34 @@ ColumnGroupingPlugin.prototype.renderGroups = function () {
|
|
|
818
817
|
}
|
|
819
818
|
}
|
|
820
819
|
};
|
|
820
|
+
|
|
821
|
+
/** @public
|
|
822
|
+
* @param {Array<string|number>} colRefs
|
|
823
|
+
* @return {string} groupId if all the given columns are children of that groupId, otherwise empty string
|
|
824
|
+
*/
|
|
825
|
+
ColumnGroupingPlugin.prototype.getMutualGroupId = function (colRefs) {
|
|
826
|
+
var colCount = colRefs.length;
|
|
827
|
+
for (var _i7 = 0; _i7 < colCount; _i7++) {
|
|
828
|
+
if (typeof colRefs[_i7] === "string") {
|
|
829
|
+
colRefs[_i7] = this.getColumnIndex(colRefs[_i7]);
|
|
830
|
+
}
|
|
831
|
+
var colIndex = colRefs[_i7];
|
|
832
|
+
var groupIds = this.getGroupIds(colIndex);
|
|
833
|
+
if (!groupIds) {
|
|
834
|
+
// If at least 1 column is not part of a group, there is no need to find the groupId.
|
|
835
|
+
return "";
|
|
836
|
+
}
|
|
837
|
+
var groupCount = groupIds.length;
|
|
838
|
+
for (var j = 0; j < groupCount; j++) {
|
|
839
|
+
var groupId = groupIds[j];
|
|
840
|
+
var childrenIndices = this.getChildColumnIndices(groupId);
|
|
841
|
+
if (deepEqual(childrenIndices, colRefs)) {
|
|
842
|
+
return groupId;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return "";
|
|
847
|
+
};
|
|
821
848
|
/** Render single column group header without affecting cell span.
|
|
822
849
|
* @private
|
|
823
850
|
* @param {Object} groupDef
|
|
@@ -834,8 +861,8 @@ ColumnGroupingPlugin.prototype._renderGroup = function (groupDef, section) {
|
|
|
834
861
|
var isAllSelected = false;
|
|
835
862
|
if (this._selectedColMap) {
|
|
836
863
|
isAllSelected = true;
|
|
837
|
-
for (var
|
|
838
|
-
if (!this._selectedColMap[colIds[
|
|
864
|
+
for (var _i8 = 0; _i8 < colIds.length; _i8++) {
|
|
865
|
+
if (!this._selectedColMap[colIds[_i8]]) {
|
|
839
866
|
isAllSelected = false;
|
|
840
867
|
break;
|
|
841
868
|
}
|
|
@@ -903,12 +930,13 @@ ColumnGroupingPlugin.prototype._applyTimeSeries = function (e) {
|
|
|
903
930
|
var children = [];
|
|
904
931
|
var timeSeriesId, timeSeriesName;
|
|
905
932
|
var tsgChild = {};
|
|
906
|
-
for (var
|
|
933
|
+
for (var _i9 = 0; _i9 < addingEvents.length; _i9++) {
|
|
907
934
|
// WARNING: addingEvents column can be difference group
|
|
908
|
-
var addingEvent = addingEvents[
|
|
935
|
+
var addingEvent = addingEvents[_i9];
|
|
909
936
|
timeSeriesName = addingEvent.context.timeSeriesName;
|
|
910
937
|
timeSeriesId = addingEvent.context.timeSeriesId;
|
|
911
|
-
var childIndex,
|
|
938
|
+
var childIndex = void 0,
|
|
939
|
+
childId = void 0;
|
|
912
940
|
if (!tsgChild[timeSeriesId]) {
|
|
913
941
|
tsgChild[timeSeriesId] = {
|
|
914
942
|
name: timeSeriesName,
|
|
@@ -1216,8 +1244,8 @@ ColumnGroupingPlugin.prototype.setGroupName = function (groupId, groupName) {
|
|
|
1216
1244
|
if (groupDef) {
|
|
1217
1245
|
groupDef.name = groupName;
|
|
1218
1246
|
var hostCount = this._hosts.length;
|
|
1219
|
-
for (var
|
|
1220
|
-
var section = this._hosts[
|
|
1247
|
+
for (var _i10 = 0; _i10 < hostCount; ++_i10) {
|
|
1248
|
+
var section = this._hosts[_i10].getSection("title");
|
|
1221
1249
|
if (!section) {
|
|
1222
1250
|
continue;
|
|
1223
1251
|
}
|
|
@@ -1239,8 +1267,8 @@ ColumnGroupingPlugin.prototype._getAvaliableChildren = function (groupId) {
|
|
|
1239
1267
|
var validCols = host.getValidColumnList(chdr);
|
|
1240
1268
|
validChildren = validCols.map(ColumnGroupingPlugin.getObjectId);
|
|
1241
1269
|
var groupMap = this._groupDefs.getGroupMap();
|
|
1242
|
-
for (var
|
|
1243
|
-
var childId = chdr[
|
|
1270
|
+
for (var _i11 = 0; _i11 < childCount; _i11++) {
|
|
1271
|
+
var childId = chdr[_i11];
|
|
1244
1272
|
if (groupMap[childId]) {
|
|
1245
1273
|
validChildren.push(childId);
|
|
1246
1274
|
}
|
|
@@ -1418,8 +1446,8 @@ ColumnGroupingPlugin.prototype.moveColumnIntoGroup = function (colRef, to, group
|
|
|
1418
1446
|
|
|
1419
1447
|
// Calculate left and right bound of the group, which column can be moved to.
|
|
1420
1448
|
// destination should be between the bound, and it should not be placed between columns in child group
|
|
1421
|
-
for (var
|
|
1422
|
-
var notAllowIndices = this.getChildColumnIndices(groupDef.children[
|
|
1449
|
+
for (var _i12 = 0; _i12 < groupDef.children.length; _i12++) {
|
|
1450
|
+
var notAllowIndices = this.getChildColumnIndices(groupDef.children[_i12]);
|
|
1423
1451
|
if (notAllowIndices && notAllowIndices.length) {
|
|
1424
1452
|
var leftLimit = notAllowIndices[0];
|
|
1425
1453
|
var rightLimit = notAllowIndices[notAllowIndices.length - 1];
|
|
@@ -1589,8 +1617,8 @@ ColumnGroupingPlugin.prototype.getValidDestinationIndex = function (id, destCol)
|
|
|
1589
1617
|
|
|
1590
1618
|
// handle group/column should not insert between group
|
|
1591
1619
|
var groupChildren = this.getGroupChildren(parentGroupDef["id"]);
|
|
1592
|
-
for (var
|
|
1593
|
-
var childId = groupChildren[
|
|
1620
|
+
for (var _i13 = 0; _i13 < groupChildren.length; _i13++) {
|
|
1621
|
+
var childId = groupChildren[_i13];
|
|
1594
1622
|
var childGroupIndices = this.getChildColumnIndices(childId);
|
|
1595
1623
|
if (childGroupIndices && childGroupIndices.length) {
|
|
1596
1624
|
startIndex = childGroupIndices[0];
|
|
@@ -1636,8 +1664,8 @@ ColumnGroupingPlugin.prototype.moveGroup = function (id, destCol) {
|
|
|
1636
1664
|
groupDef = this._groupDefs.getGroup(id);
|
|
1637
1665
|
if (groupDef) {
|
|
1638
1666
|
var indices = this.getChildColumnIndices(groupDef["id"]);
|
|
1639
|
-
for (var
|
|
1640
|
-
var index = indices[
|
|
1667
|
+
for (var _i14 = 0; _i14 < indices.length; _i14++) {
|
|
1668
|
+
var index = indices[_i14];
|
|
1641
1669
|
var colId = this.getColumnId(index);
|
|
1642
1670
|
members.push(colId);
|
|
1643
1671
|
}
|
|
@@ -1762,8 +1790,8 @@ ColumnGroupingPlugin.prototype.selectGroupHeaders = function (colIndices) {
|
|
|
1762
1790
|
var count = colIndices.length;
|
|
1763
1791
|
if (host && count) {
|
|
1764
1792
|
var colIds = [];
|
|
1765
|
-
for (var
|
|
1766
|
-
colIds.push(host.getColumnId(colIndices[
|
|
1793
|
+
for (var _i15 = 0; _i15 < count; _i15++) {
|
|
1794
|
+
colIds.push(host.getColumnId(colIndices[_i15]));
|
|
1767
1795
|
}
|
|
1768
1796
|
var colMap = host.createColumnMap(colIds);
|
|
1769
1797
|
if (colMap) {
|