@refinitiv-ui/efx-grid 6.0.32 → 6.0.33
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +86 -11
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/grid/Core.d.ts +4 -0
- package/lib/core/es6/grid/Core.js +27 -6
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.d.ts +1 -0
- package/lib/core/es6/grid/plugins/SortableTitlePlugin.js +29 -5
- package/lib/grid/index.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +521 -179
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/Grid.js +14 -13
- package/lib/rt-grid/es6/RowDefinition.js +1 -1
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +4 -0
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +58 -30
- package/lib/tr-grid-column-stack/es6/ColumnStack.d.ts +2 -0
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +35 -12
- package/lib/tr-grid-util/es6/GroupDefinitions.d.ts +2 -0
- package/lib/tr-grid-util/es6/GroupDefinitions.js +15 -0
- package/lib/tr-grid-util/es6/Util.d.ts +3 -0
- package/lib/tr-grid-util/es6/Util.js +15 -0
- package/lib/tr-grid-util/es6/jet/CollectionDict.d.ts +1 -1
- package/lib/tr-grid-util/es6/jet/CollectionDict.js +12 -2
- package/lib/tr-grid-util/es6/jet/MockQuotes2.js +170 -47
- package/lib/types/es6/ColumnGrouping.d.ts +4 -0
- package/lib/types/es6/ColumnSelection.d.ts +2 -0
- package/lib/types/es6/ColumnStack.d.ts +2 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +6 -2
- package/lib/types/es6/RowDragging.d.ts +23 -1
- package/lib/types/es6/StatisticsRow.d.ts +25 -25
- package/lib/versions.json +3 -3
- package/package.json +1 -1
package/lib/core/dist/core.js
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
7
7
|
|
8
8
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
9
|
+
/* harmony export */ "Qr": () => (/* binding */ isEmptyObject),
|
9
10
|
/* harmony export */ "kI": () => (/* binding */ cloneObject)
|
10
11
|
/* harmony export */ });
|
11
12
|
/* unused harmony exports Util, extendObject, arrayToObject, extendProperty, extendArrayProperty, parseCondition, prettifyCss, getShadowRoot, injectCss, isIE, isMac, isTouchDevice, nestedObjectToArray, rgb2Hex, prepareTSVContent */
|
@@ -149,6 +150,20 @@ var extendObject = function (obj, extender, limiters) {
|
|
149
150
|
var cloneObject = function (obj, limiters) {
|
150
151
|
return extendObject({}, obj, limiters);
|
151
152
|
};
|
153
|
+
|
154
|
+
/** Check empty object
|
155
|
+
* @public
|
156
|
+
* @function
|
157
|
+
* @param {Object} obj
|
158
|
+
* @return {boolean}=true, if the obj is empty
|
159
|
+
*/
|
160
|
+
var isEmptyObject = function (obj) {
|
161
|
+
for (var key in obj) {
|
162
|
+
return false;
|
163
|
+
}
|
164
|
+
return true;
|
165
|
+
};
|
166
|
+
|
152
167
|
/** @public
|
153
168
|
* @param {Array=} data
|
154
169
|
* @param {Array.<string>=} fields In case of the given data is an array, this param will be used for mapping index to field
|
@@ -11843,7 +11858,22 @@ GroupDefinitions.prototype.setGroupChildren = function (groupId, newChildList) {
|
|
11843
11858
|
}
|
11844
11859
|
return false;
|
11845
11860
|
};
|
11861
|
+
/** @public
|
11862
|
+
* @param {string} groupId
|
11863
|
+
* @param {string} groupName
|
11864
|
+
* @return {boolean}
|
11865
|
+
*/
|
11866
|
+
GroupDefinitions.prototype.setGroupName = function (groupId, groupName) {
|
11867
|
+
var groupDef = this._groupMap[groupId];
|
11868
|
+
if(groupDef) {
|
11869
|
+
if(groupDef.name !== groupName) {
|
11870
|
+
groupDef.name = groupName;
|
11871
|
+
return true;
|
11872
|
+
}
|
11873
|
+
}
|
11846
11874
|
|
11875
|
+
return false;
|
11876
|
+
};
|
11847
11877
|
/* harmony default export */ const es6_GroupDefinitions = ((/* unused pure expression or super */ null && (GroupDefinitions)));
|
11848
11878
|
|
11849
11879
|
|
@@ -25588,7 +25618,7 @@ Core_Core.prototype._groupDefs = null;
|
|
25588
25618
|
* @return {string}
|
25589
25619
|
*/
|
25590
25620
|
Core_Core.getVersion = function () {
|
25591
|
-
return "5.1.
|
25621
|
+
return "5.1.42";
|
25592
25622
|
};
|
25593
25623
|
/** {@link ElementWrapper#dispose}
|
25594
25624
|
* @override
|
@@ -25724,10 +25754,10 @@ Core_Core.prototype.getConfigObject = function (gridOptions) {
|
|
25724
25754
|
}
|
25725
25755
|
}
|
25726
25756
|
|
25727
|
-
|
25728
|
-
|
25729
|
-
|
25730
|
-
obj["
|
25757
|
+
// It will be overwrite in rt-grid or atlas-blotter
|
25758
|
+
obj["rowVirtualization"] = this.isRowVirtualizationEnabled();
|
25759
|
+
obj["columnVirtualization"] = this.isColumnVirtualizationEnabled();
|
25760
|
+
obj["rowHighlighting"] = this._rowHighlighting;
|
25731
25761
|
|
25732
25762
|
if(this._fixFrozenTopSections) {
|
25733
25763
|
obj["topFreezingCount"] = this._startVScrollbarIndex >= 0 ? (this._startVScrollbarIndex + 1) : false;
|
@@ -25740,7 +25770,13 @@ Core_Core.prototype.getConfigObject = function (gridOptions) {
|
|
25740
25770
|
if(this._rowScrollingStep) {
|
25741
25771
|
obj["stepScroll"] = (this._rowScrollingStep === 1) ? true : this._rowScrollingStep;
|
25742
25772
|
}
|
25743
|
-
|
25773
|
+
|
25774
|
+
var val = this._vscrollbar.getAutoHide();
|
25775
|
+
if(val !== true) {
|
25776
|
+
// TODO: check this._hscrollbar and this._vscrollbar can be difference config
|
25777
|
+
obj["autoHideScrollbar"] = val; // this._hscrollbar has the same settings
|
25778
|
+
}
|
25779
|
+
|
25744
25780
|
var wheelSpeed = this._vscrollbar.getMouseWheelSpeed();
|
25745
25781
|
if(wheelSpeed) {
|
25746
25782
|
obj["linearWheelScrolling"] = wheelSpeed;
|
@@ -28713,6 +28749,14 @@ Core_Core.prototype.enableRowVirtualization = function (opt_enabled) {
|
|
28713
28749
|
this._rowVirtualizer.deactivate();
|
28714
28750
|
}
|
28715
28751
|
};
|
28752
|
+
|
28753
|
+
/** @public
|
28754
|
+
* @return {boolean}
|
28755
|
+
*/
|
28756
|
+
Core_Core.prototype.isRowVirtualizationEnabled = function () {
|
28757
|
+
return this._rowVirtualizer.isEnabled();
|
28758
|
+
};
|
28759
|
+
|
28716
28760
|
/** No runtime support
|
28717
28761
|
* @public
|
28718
28762
|
* @param {boolean=} opt_enabled
|
@@ -28727,6 +28771,13 @@ Core_Core.prototype.enableColumnVirtualization = function (opt_enabled) {
|
|
28727
28771
|
}
|
28728
28772
|
};
|
28729
28773
|
|
28774
|
+
/** @public
|
28775
|
+
* @return {boolean}
|
28776
|
+
*/
|
28777
|
+
Core_Core.prototype.isColumnVirtualizationEnabled = function () {
|
28778
|
+
return this._colVirtualizer.isEnabled();
|
28779
|
+
};
|
28780
|
+
|
28730
28781
|
/** Scrolling step will be multiple of the default row height in pixels. For example, if default row height is 32 pixel and row scrolling step is 2, <br>
|
28731
28782
|
* then the actual scrolling step for vertical scrollbar will be (32 * 2) = 64 pixels
|
28732
28783
|
* @public
|
@@ -30732,6 +30783,7 @@ Core_Core._proto = Core_Core.prototype;
|
|
30732
30783
|
|
30733
30784
|
|
30734
30785
|
|
30786
|
+
|
30735
30787
|
/* eslint-enable */
|
30736
30788
|
|
30737
30789
|
/** Fired when user click and before the sorting operation.
|
@@ -31191,7 +31243,10 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
31191
31243
|
}
|
31192
31244
|
field = opt["field"];
|
31193
31245
|
if (field) {
|
31194
|
-
col["
|
31246
|
+
if(col["field"] !== field) {
|
31247
|
+
col["sortBy"] = field;
|
31248
|
+
} // else The default value is an empty sortBy, which refers to the same column field by default.
|
31249
|
+
|
31195
31250
|
if (this._sortingSequenceMap && this._sortingSequenceMap[field]) {
|
31196
31251
|
col["sortingSequence"] = this._sortingSequenceMap[field];
|
31197
31252
|
}
|
@@ -31204,16 +31259,32 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
31204
31259
|
extOptions = obj["sorting"] = {};
|
31205
31260
|
}
|
31206
31261
|
|
31207
|
-
|
31208
|
-
|
31262
|
+
var val = this.getSortedColumns();
|
31263
|
+
if(val != null) {
|
31264
|
+
extOptions["initialSort"] = val;
|
31265
|
+
}
|
31266
|
+
|
31267
|
+
val = this._sortableIndicator;
|
31268
|
+
if(val !== false) {
|
31269
|
+
extOptions["sortableIndicator"] = val;
|
31270
|
+
}
|
31271
|
+
|
31209
31272
|
if(this._maxCount !== 1) {
|
31210
31273
|
extOptions["multiColumn"] = this._maxCount === -1 ? true : this._maxCount;
|
31211
31274
|
}
|
31212
31275
|
if(this._dblClickAllowed) {
|
31213
31276
|
extOptions["disableDoubleClickToSort"] = !this._dblClickAllowed;
|
31214
31277
|
}
|
31215
|
-
|
31216
|
-
|
31278
|
+
|
31279
|
+
val = this._sortableColumns;
|
31280
|
+
if(val !== true) {
|
31281
|
+
extOptions["sortableColumns"] = val;
|
31282
|
+
}
|
31283
|
+
|
31284
|
+
val = this._dataSorting;
|
31285
|
+
if(val !== true) {
|
31286
|
+
extOptions["indicatorOnly"] = val;
|
31287
|
+
}
|
31217
31288
|
// extOptions["mode"] = this._mode;
|
31218
31289
|
if(this._disabled) {
|
31219
31290
|
extOptions["disabled"] = true;
|
@@ -31230,6 +31301,10 @@ SortableTitlePlugin.prototype.getConfigObject = function (gridOptions) {
|
|
31230
31301
|
extOptions["sortingSequence"] = sortingSeq.slice();
|
31231
31302
|
}
|
31232
31303
|
|
31304
|
+
if((0,es6_Util/* isEmptyObject */.Qr)(obj["sorting"])) {
|
31305
|
+
delete obj["sorting"];
|
31306
|
+
}
|
31307
|
+
|
31233
31308
|
return obj;
|
31234
31309
|
};
|
31235
31310
|
|