@refinitiv-ui/efx-grid 6.0.131 → 6.0.133
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/filter-dialog/lib/checkbox-list.js +5 -0
- package/lib/filter-dialog/lib/filter-dialog.js +10 -8
- package/lib/filter-dialog/themes/base.less +12 -0
- package/lib/filter-dialog/themes/elemental/dark/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/elemental/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/elemental/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/halo/dark/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/halo/filter-dialog.less +7 -1
- package/lib/filter-dialog/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/halo/light/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/solar/charcoal/filter-dialog.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/es5/all-elements.js +1 -1
- package/lib/filter-dialog/themes/solar/pearl/filter-dialog.js +1 -1
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-auto-tooltip/es6/AutoTooltip.js +69 -66
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +5 -2
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +37 -5
- package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +0 -2
- package/lib/tr-grid-row-filtering/es6/RowFiltering.js +47 -49
- package/lib/tr-grid-row-selection/es6/RowSelection.js +37 -32
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +0 -2
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +352 -333
- package/lib/types/es6/RowFiltering.d.ts +0 -2
- package/lib/types/es6/TextFormatting.d.ts +0 -1
- package/lib/versions.json +6 -6
- package/package.json +1 -1
@@ -437,16 +437,15 @@ RowSelectionPlugin.prototype.getSelectedRows = function (sectRef) {
|
|
437
437
|
* @private
|
438
438
|
* @param {Object} dv
|
439
439
|
* @param {Array<string>} rids
|
440
|
-
* @param {boolean=}
|
440
|
+
* @param {boolean=} selected
|
441
441
|
*/
|
442
|
-
RowSelectionPlugin.prototype._setHeaderSelections = function(dv, rids,
|
443
|
-
if(
|
444
|
-
|
442
|
+
RowSelectionPlugin.prototype._setHeaderSelections = function(dv, rids, selected) {
|
443
|
+
if(selected == null) {
|
444
|
+
selected = true;
|
445
445
|
}
|
446
446
|
let len = rids.length;
|
447
447
|
for (let i = 0; i < len; i++) {
|
448
|
-
|
449
|
-
this._setHeaderSelection(dv, rid, select);
|
448
|
+
this._setHeaderSelection(dv, rids[i], selected);
|
450
449
|
}
|
451
450
|
};
|
452
451
|
|
@@ -454,14 +453,13 @@ RowSelectionPlugin.prototype._setHeaderSelections = function(dv, rids, select) {
|
|
454
453
|
* @private
|
455
454
|
* @param {Object} dv
|
456
455
|
* @param {sting|number} rowRef
|
457
|
-
* @param {boolean=}
|
456
|
+
* @param {boolean=} selected
|
458
457
|
*/
|
459
|
-
RowSelectionPlugin.prototype._setHeaderSelection = function(dv, rowRef,
|
460
|
-
if(select == null) {
|
461
|
-
select = true;
|
462
|
-
}
|
458
|
+
RowSelectionPlugin.prototype._setHeaderSelection = function(dv, rowRef, selected) {
|
463
459
|
let rowId = this._getRowId(dv, rowRef);
|
464
|
-
|
460
|
+
if(rowId) {
|
461
|
+
this._headerSelection[rowId] = (selected == null) ? true : selected;
|
462
|
+
}
|
465
463
|
};
|
466
464
|
|
467
465
|
/**
|
@@ -471,8 +469,7 @@ RowSelectionPlugin.prototype._setHeaderSelection = function(dv, rowRef, select)
|
|
471
469
|
* @return {boolean}
|
472
470
|
*/
|
473
471
|
RowSelectionPlugin.prototype._isHeaderSelection = function(dv, rowRef) {
|
474
|
-
|
475
|
-
return this._headerSelection[rowId];
|
472
|
+
return this._headerSelection[this._getRowId(dv, rowRef)] ? true : false;
|
476
473
|
};
|
477
474
|
|
478
475
|
/**
|
@@ -592,27 +589,25 @@ RowSelectionPlugin.prototype.setSelectedRow = function (rowIndex, opt_select, se
|
|
592
589
|
RowSelectionPlugin.prototype.selectSingleRow = function (rowIndex, sectRef, activeGrid) {
|
593
590
|
if(!(rowIndex >= 0)) { return false; }
|
594
591
|
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
this._activeGrid = activeGrid;
|
592
|
+
let prevGrid = null;
|
593
|
+
if(activeGrid) {
|
594
|
+
prevGrid = this._activeGrid;
|
595
|
+
if(prevGrid) { // In case of multi-table, clear selection on the previous active grid
|
596
|
+
this._clearSelectedRows();
|
597
|
+
}
|
598
|
+
this._activeGrid = activeGrid;
|
602
599
|
}
|
603
600
|
|
604
|
-
//
|
605
|
-
let section = this._getSection(sectRef);
|
606
|
-
if(this._selectSingleRow(section, rowIndex)) {
|
601
|
+
// WANRING: this._getSection will modify activeGrid, if it does not exist
|
602
|
+
let section = this._getSection(sectRef);
|
603
|
+
if(this._selectSingleRow(section, rowIndex)) { // This will also clear existing selection in the active grid
|
607
604
|
this._scrollToRow(rowIndex);
|
608
605
|
return true;
|
609
606
|
}
|
610
|
-
// 4. in case fail to perform _selectSingleRow
|
611
|
-
// we will turn back _activeGrid to prevGrid
|
612
|
-
else if(prevGrid) {
|
613
|
-
this._activeGrid = prevGrid;
|
614
|
-
}
|
615
607
|
|
608
|
+
if(prevGrid) {
|
609
|
+
this._activeGrid = prevGrid; // If the selection is unsuccessful, restore previous active grid
|
610
|
+
}
|
616
611
|
return false;
|
617
612
|
};
|
618
613
|
/** @public
|
@@ -896,9 +891,7 @@ RowSelectionPlugin.prototype._onReselection = function (e) {
|
|
896
891
|
* @param {Object} e postSectionDataBinding event context
|
897
892
|
*/
|
898
893
|
RowSelectionPlugin.prototype._onPostSectionDataBinding = function (e) {
|
899
|
-
if(!this._basedOnContent
|
900
|
-
|| "content" !== e.sectionType
|
901
|
-
|| !this._activeGrid) {
|
894
|
+
if(!this._basedOnContent || e.sectionType !== "content") {
|
902
895
|
return;
|
903
896
|
}
|
904
897
|
let section = e.section;
|
@@ -1436,6 +1429,18 @@ RowSelectionPlugin.prototype._dispatchSelectionChanged = function (e, rowIndex,
|
|
1436
1429
|
}
|
1437
1430
|
};
|
1438
1431
|
|
1432
|
+
/** @public
|
1433
|
+
* @ignore
|
1434
|
+
* @return {!Object}
|
1435
|
+
*/
|
1436
|
+
RowSelectionPlugin.prototype._getEventHandlers = function() {
|
1437
|
+
return {
|
1438
|
+
"mousedown": this._onMouseDown,
|
1439
|
+
"click": this._onClick,
|
1440
|
+
"keydown": this._onKeyDown
|
1441
|
+
};
|
1442
|
+
};
|
1443
|
+
|
1439
1444
|
|
1440
1445
|
|
1441
1446
|
export default RowSelectionPlugin;
|
@@ -8,7 +8,6 @@ declare namespace TextFormattingPlugin {
|
|
8
8
|
|
9
9
|
type FormatOptions = {
|
10
10
|
formatType?: string|null,
|
11
|
-
type?: string|null,
|
12
11
|
field?: string|null,
|
13
12
|
decimalPlaces?: (number|boolean)|null,
|
14
13
|
precisionEnabled?: boolean|null,
|
@@ -17,7 +16,6 @@ declare namespace TextFormattingPlugin {
|
|
17
16
|
percentSign?: boolean|null,
|
18
17
|
scalingUnit?: string|null,
|
19
18
|
multiplyBy100?: boolean|null,
|
20
|
-
mutiplyBy100?: boolean|null,
|
21
19
|
dateTimeFormat?: string|null,
|
22
20
|
useUTCTime?: boolean|null,
|
23
21
|
autoTextFormatting?: boolean|null,
|