@refinitiv-ui/efx-grid 6.0.14 → 6.0.16

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.
Files changed (35) hide show
  1. package/lib/column-format-dialog/index.d.ts +2 -1
  2. package/lib/column-format-dialog/index.js +2 -1
  3. package/lib/column-selection-dialog/index.d.ts +2 -1
  4. package/lib/column-selection-dialog/index.js +2 -1
  5. package/lib/core/dist/core.js +19 -9
  6. package/lib/core/dist/core.min.js +1 -1
  7. package/lib/core/es6/data/DataTable.js +1 -1
  8. package/lib/core/es6/data/Segment.d.ts +3 -3
  9. package/lib/core/es6/data/Segment.js +14 -6
  10. package/lib/core/es6/data/SegmentCollection.d.ts +1 -1
  11. package/lib/core/es6/data/SegmentCollection.js +3 -1
  12. package/lib/core/es6/grid/Core.js +1 -1
  13. package/lib/filter-dialog/index.d.ts +2 -1
  14. package/lib/filter-dialog/index.js +2 -1
  15. package/lib/grid/index.d.ts +2 -1
  16. package/lib/grid/index.js +3 -2
  17. package/lib/rt-grid/dist/rt-grid.js +740 -84
  18. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  19. package/lib/rt-grid/es6/ColumnDefinition.d.ts +10 -0
  20. package/lib/rt-grid/es6/ColumnDefinition.js +110 -1
  21. package/lib/rt-grid/es6/FieldDefinition.d.ts +6 -0
  22. package/lib/rt-grid/es6/FieldDefinition.js +43 -0
  23. package/lib/rt-grid/es6/Grid.d.ts +2 -0
  24. package/lib/rt-grid/es6/Grid.js +206 -8
  25. package/lib/rt-grid/es6/RowDefinition.d.ts +4 -0
  26. package/lib/rt-grid/es6/RowDefinition.js +57 -0
  27. package/lib/rt-grid/es6/SnapshotFiller.d.ts +1 -0
  28. package/lib/rt-grid/es6/SnapshotFiller.js +125 -17
  29. package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +2 -2
  30. package/lib/tr-grid-row-filtering/es6/RowFiltering.d.ts +30 -29
  31. package/lib/tr-grid-row-filtering/es6/RowFiltering.js +176 -98
  32. package/lib/tr-grid-rowcoloring/es6/RowColoring.d.ts +17 -15
  33. package/lib/tr-grid-rowcoloring/es6/RowColoring.js +89 -159
  34. package/lib/versions.json +4 -4
  35. package/package.json +15 -2
@@ -112,7 +112,7 @@ DataTable.prototype.dispose = function() {
112
112
  this.clearAllData(true);
113
113
 
114
114
  if(this._classifyingTimer) {
115
- clearTimeout(this._onClassifyingTimer);
115
+ clearTimeout(this._classifyingTimer);
116
116
  this._classifyingTimer = 0;
117
117
  }
118
118
 
@@ -1,7 +1,7 @@
1
1
  import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import EventDispatcher from "../../../tr-grid-util/es6/EventDispatcher.js";
3
3
 
4
- declare class Segment {
4
+ declare class Segment extends EventDispatcher {
5
5
 
6
6
  constructor(rid: string, sharedObj: any);
7
7
 
@@ -23,7 +23,7 @@ declare class Segment {
23
23
 
24
24
  public removeChildren(rids: (string)[]|null): boolean;
25
25
 
26
- public removeAllChildren(objMap?: any): boolean;
26
+ public removeAllChildren(): boolean;
27
27
 
28
28
  public getChildIds(): (string)[];
29
29
 
@@ -55,7 +55,7 @@ declare class Segment {
55
55
 
56
56
  public isCollapsed(): boolean;
57
57
 
58
- public getCollapsingStates(objMap?: any, parentState?: boolean|null): number;
58
+ public getCollapsingStates(objMap?: any, parentState?: boolean|null): boolean;
59
59
 
60
60
  public getOrder(): number;
61
61
 
@@ -2,6 +2,7 @@ import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import EventDispatcher from "../../../tr-grid-util/es6/EventDispatcher.js";
3
3
 
4
4
  /** @constructor
5
+ * @extends {EventDispatcher}
5
6
  * @param {string} rid
6
7
  * @param {!Object} sharedObj
7
8
  */
@@ -251,7 +252,6 @@ Segment.prototype.removeChildren = function(rids) {
251
252
  return dirty ? true : false;
252
253
  };
253
254
  /** @public
254
- * @param {Object=} objMap
255
255
  * @return {boolean}
256
256
  */
257
257
  Segment.prototype.removeAllChildren = function() {
@@ -372,6 +372,11 @@ Segment.prototype.classify = function(rows) {
372
372
  }
373
373
  }
374
374
 
375
+ var sharedObj = this._shared;
376
+ if(this._collapsed) {
377
+ sharedObj.dirtyCollapsingState = true;
378
+ }
379
+
375
380
  // Prepare existing sub segments for checking change in its members
376
381
  var i;
377
382
  var segmentName = "";
@@ -390,6 +395,9 @@ Segment.prototype.classify = function(rows) {
390
395
  segment._children = {};
391
396
  segment._childCount = 0;
392
397
  }
398
+ if(segment._collapsed) {
399
+ sharedObj.dirtyCollapsingState = true;
400
+ }
393
401
  }
394
402
  }
395
403
 
@@ -410,7 +418,7 @@ Segment.prototype.classify = function(rows) {
410
418
  var record = rows[dataId];
411
419
  var val = record ? record[classifier] : null; // WARNING: row could already be removed
412
420
 
413
- this._shared.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
421
+ sharedObj.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
414
422
 
415
423
  segmentName = "Uncategorized";
416
424
  if(val || val === 0 || val === false) { // Check for null, undefined, "", and NaN value
@@ -423,7 +431,7 @@ Segment.prototype.classify = function(rows) {
423
431
 
424
432
  segment = segmentMap[segmentName];
425
433
  if(!segment) { // New group is detected
426
- segment = new Segment(this._rid + "/" + segmentName, this._shared);
434
+ segment = new Segment(this._rid + "/" + segmentName, sharedObj);
427
435
  segment._subSegDef = this._subSegDef;
428
436
  segment._subSegLevel = this._subSegLevel + 1;
429
437
  segment._subSegName = segmentName;
@@ -443,7 +451,7 @@ Segment.prototype.classify = function(rows) {
443
451
  }
444
452
  } else if(isRootSegment) { // In case of no classification
445
453
  for(rid in children) {
446
- this._shared.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
454
+ sharedObj.childToSegment[rid] = this._rid; // Relocate child in case of it has been moved to a non existence group
447
455
  }
448
456
  }
449
457
 
@@ -543,7 +551,7 @@ Segment.prototype.getAllSubSegments = function(out_ary) {
543
551
  segment.getAllSubSegments(out_ary);
544
552
  }
545
553
  }
546
- return out_ary;
554
+ return out_ary || null;
547
555
  };
548
556
  /** @public
549
557
  * @return {number}
@@ -623,7 +631,7 @@ Segment.prototype.isCollapsed = function() {
623
631
  /** @public
624
632
  * @param {Object=} objMap
625
633
  * @param {boolean=} parentState=false Collapsing state from parent segment
626
- * @return {number}
634
+ * @return {boolean}
627
635
  */
628
636
  Segment.prototype.getCollapsingStates = function(objMap, parentState) {
629
637
  var segmentNames = this._subSegNames;
@@ -2,7 +2,7 @@ import Ext from "../../../tr-grid-util/es6/Ext.js";
2
2
  import EventDispatcher from "../../../tr-grid-util/es6/EventDispatcher.js";
3
3
  import Segment from "./Segment.js";
4
4
 
5
- declare class SegmentCollection {
5
+ declare class SegmentCollection extends EventDispatcher {
6
6
 
7
7
  constructor();
8
8
 
@@ -3,6 +3,7 @@ import EventDispatcher from "../../../tr-grid-util/es6/EventDispatcher.js";
3
3
  import Segment from "./Segment.js";
4
4
 
5
5
  /** @constructor
6
+ * @extends {EventDispatcher}
6
7
  */
7
8
  var SegmentCollection = function() {
8
9
  this._onSubSegmentAdded = this._onSubSegmentAdded.bind(this);
@@ -61,6 +62,7 @@ SegmentCollection.prototype._classifierChanged = false;
61
62
  */
62
63
  SegmentCollection.prototype.dispose = function() {
63
64
  this.removeAllSegments();
65
+ this.removeAllEventListeners();
64
66
  this._collapsedRids = null;
65
67
  this._segmentList = this._insertionList = this._removalList = null;
66
68
  };
@@ -338,7 +340,7 @@ SegmentCollection.prototype.removeAllSegmentChildren = function() {
338
340
  }
339
341
 
340
342
  if(dirty) {
341
- this.classify();
343
+ this.classify(null);
342
344
  }
343
345
 
344
346
  return dirty;
@@ -528,7 +528,7 @@ Core.prototype._rowHeightTimerId = 0;
528
528
  * @return {string}
529
529
  */
530
530
  Core.getVersion = function () {
531
- return "5.1.26";
531
+ return "5.1.27";
532
532
  };
533
533
  /** {@link ElementWrapper#dispose}
534
534
  * @override
@@ -1 +1,2 @@
1
- import "./lib/filter-dialog.js";
1
+ import {FilterDialog} from "./lib/filter-dialog.js";
2
+ export {FilterDialog}
@@ -1 +1,2 @@
1
- import "./lib/filter-dialog.js";
1
+ import {FilterDialog} from "./lib/filter-dialog.js";
2
+ export {FilterDialog}
@@ -1 +1,2 @@
1
- import "./lib/efx-grid.js";
1
+ import {Grid} from "./lib/efx-grid.js";
2
+ export {Grid}
package/lib/grid/index.js CHANGED
@@ -1,2 +1,3 @@
1
- import "./lib/efx-grid.js";
2
- window.EFX_GRID = { version: "6.0.14" };
1
+ import {Grid} from "./lib/efx-grid.js";
2
+ export {Grid}
3
+ window.EFX_GRID = { version: "6.0.16" };