@refinitiv-ui/efx-grid 6.0.66 → 6.0.67

Sign up to get free protection for your applications and to get access to all the features.
@@ -19005,6 +19005,10 @@ DataView.prototype._excludedRids = null;
19005
19005
  * @type {boolean}
19006
19006
  */
19007
19007
  DataView.prototype._emptySegmentFiltering = false;
19008
+ /** @private
19009
+ * @type {boolean}
19010
+ */
19011
+ DataView.prototype._separatorFiltering = false;
19008
19012
 
19009
19013
  /** @private
19010
19014
  * @type {Object.<string, number>}
@@ -21440,7 +21444,7 @@ DataView.prototype.sortSeparators = function (sortLogics, sortOrders, cids) {
21440
21444
  DataView.prototype.sortSegments = function (compare) {
21441
21445
  this._dt.sortSegments(compare);
21442
21446
  };
21443
- /** Automatically hide empty segment when all of its member are filtered out. An empty segment will not be hidden, if there is no active filter. Collapsed segment does not count as filtering.
21447
+ /** Automatically hide empty segment when all of its member are filtered out. An empty segment will NOT be hidden, if there is no active filter. Collapsed segment does not count as filtering. A segment with no child is treated the same way as an empty segment.
21444
21448
  * @public
21445
21449
  * @param {boolean=} enabled
21446
21450
  */
@@ -21453,6 +21457,19 @@ DataView.prototype.enableEmptySegmentFiltering = function (enabled) {
21453
21457
  }
21454
21458
  }
21455
21459
  };
21460
+ /** Allow filtering of segment separators as if they were normal rows. Note that even if a separator row is filtered out, its child row may remain in the view and not be filtered out.
21461
+ * @public
21462
+ * @param {boolean=} enabled
21463
+ */
21464
+ DataView.prototype.enableSeparatorFiltering = function (enabled) {
21465
+ enabled = enabled !== false;
21466
+ if(this._separatorFiltering !== enabled) {
21467
+ this._separatorFiltering = enabled;
21468
+ if(this._userFilter) {
21469
+ this._refreshAndNotify();
21470
+ }
21471
+ }
21472
+ };
21456
21473
  /**
21457
21474
  * @public
21458
21475
  * @param {string|number} segmentRef Row id or row index
@@ -21620,14 +21637,19 @@ DataView.prototype._updateRowIds = function(opt_rowIds) {
21620
21637
 
21621
21638
  // Segment separators should not be filtered out (hidden)
21622
21639
  var segments = this._dt._getSegmentSeparators();
21623
- var filterExceptions = segments ? segments.getSegments() : null;
21624
- var userRemoval = this._getRemovalMap(this._excludedRids, this._userFilter, this._filteringOut, filterExceptions);
21640
+ var segmentIds = segments ? segments.getSegments() : null;
21641
+ var userRemoval = this._getRemovalMap(
21642
+ this._excludedRids,
21643
+ this._userFilter,
21644
+ this._filteringOut,
21645
+ this._separatorFiltering ? null : segmentIds
21646
+ );
21625
21647
  exclusionCount += userRemoval;
21626
21648
 
21627
21649
  this._collapsedRids = null;
21628
21650
  if(segments) {
21629
21651
  if(userRemoval && this._emptySegmentFiltering) {
21630
- exclusionCount += this._getEmptySegments(this._excludedRids, filterExceptions);
21652
+ exclusionCount += this._getEmptySegments(this._excludedRids, segmentIds);
21631
21653
  }
21632
21654
  this._collapsedRids = segments.getCollapsedRows();
21633
21655
  // Children of collapsed segments must be filtered out (hidden)
@@ -26072,7 +26094,7 @@ Core_Core.prototype._batches = null;
26072
26094
  * @return {string}
26073
26095
  */
26074
26096
  Core_Core.getVersion = function () {
26075
- return "5.1.76";
26097
+ return "5.1.77";
26076
26098
  };
26077
26099
  /** {@link ElementWrapper#dispose}
26078
26100
  * @override