@refinitiv-ui/efx-grid 6.0.32 → 6.0.34
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/core/dist/core.js +197 -46
- package/lib/core/dist/core.min.js +1 -1
- package/lib/core/es6/data/DataTable.d.ts +1 -1
- package/lib/core/es6/data/DataTable.js +9 -8
- package/lib/core/es6/data/DataView.js +1 -1
- package/lib/core/es6/data/Segment.d.ts +2 -0
- package/lib/core/es6/data/Segment.js +16 -0
- package/lib/core/es6/data/SegmentCollection.d.ts +1 -3
- package/lib/core/es6/data/SegmentCollection.js +25 -18
- 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 +36 -12
- package/lib/grid/index.js +1 -1
- package/lib/grid/themes/halo/dark/efx-grid.js +1 -1
- package/lib/grid/themes/halo/dark/es5/all-elements.js +1 -1
- package/lib/grid/themes/halo/efx-grid.less +2 -0
- package/lib/grid/themes/halo/light/efx-grid.js +1 -1
- package/lib/grid/themes/halo/light/es5/all-elements.js +1 -1
- package/lib/rt-grid/dist/rt-grid.js +945 -331
- package/lib/rt-grid/dist/rt-grid.min.js +1 -1
- package/lib/rt-grid/es6/ColumnDefinition.js +13 -8
- package/lib/rt-grid/es6/DataConnector.js +3 -2
- package/lib/rt-grid/es6/Grid.d.ts +3 -1
- package/lib/rt-grid/es6/Grid.js +130 -28
- package/lib/rt-grid/es6/RowDefinition.d.ts +7 -2
- package/lib/rt-grid/es6/RowDefinition.js +49 -11
- package/lib/rt-grid/es6/SnapshotFiller.d.ts +1 -0
- package/lib/rt-grid/es6/SnapshotFiller.js +1 -11
- 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 +56 -22
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +12 -5
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +128 -42
- package/lib/tr-grid-heat-map/es6/HeatMap.d.ts +3 -3
- package/lib/tr-grid-heat-map/es6/HeatMap.js +13 -2
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +2 -1
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +142 -17
- package/lib/tr-grid-textformatting/es6/TextFormatting.d.ts +20 -20
- package/lib/tr-grid-textformatting/es6/TextFormatting.js +37 -138
- package/lib/tr-grid-util/es6/CellPainter.d.ts +1 -1
- package/lib/tr-grid-util/es6/CellPainter.js +56 -55
- package/lib/tr-grid-util/es6/FieldFormatter.js +6 -2
- 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/NumberFormatter.js +23 -11
- package/lib/tr-grid-util/es6/Util.d.ts +6 -0
- package/lib/tr-grid-util/es6/Util.js +68 -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/ConditionalColoring.d.ts +12 -5
- package/lib/types/es6/Core/data/Segment.d.ts +2 -0
- package/lib/types/es6/Core/data/SegmentCollection.d.ts +1 -3
- package/lib/types/es6/Core/grid/Core.d.ts +4 -0
- package/lib/types/es6/Core/grid/plugins/SortableTitlePlugin.d.ts +1 -0
- package/lib/types/es6/Core/grid/util/SelectionList.d.ts +6 -2
- package/lib/types/es6/HeatMap.d.ts +3 -3
- package/lib/types/es6/RealtimeGrid/Grid.d.ts +3 -1
- package/lib/types/es6/RealtimeGrid/RowDefinition.d.ts +7 -2
- package/lib/types/es6/RealtimeGrid/SnapshotFiller.d.ts +1 -0
- package/lib/types/es6/RowDragging.d.ts +25 -2
- package/lib/types/es6/StatisticsRow.d.ts +25 -25
- package/lib/types/es6/TextFormatting.d.ts +20 -20
- package/lib/versions.json +7 -7
- package/package.json +1 -1
@@ -217,6 +217,7 @@ MockSubscriptions.prototype.removeSubscription = function(subId) {
|
|
217
217
|
child["parent"] = null;
|
218
218
|
}
|
219
219
|
sub["children"] = null;
|
220
|
+
sub["ricList"] = null;
|
220
221
|
}
|
221
222
|
};
|
222
223
|
/** @public
|
@@ -283,9 +284,9 @@ MockSubscriptions.prototype.start = function() {
|
|
283
284
|
/** @public */
|
284
285
|
MockSubscriptions.prototype.stop = function() {
|
285
286
|
this._working = false;
|
286
|
-
if(this._timerId
|
287
|
+
if(this._timerId) {
|
287
288
|
window.clearTimeout(this._timerId);
|
288
|
-
this._timerId =
|
289
|
+
this._timerId = 0;
|
289
290
|
}
|
290
291
|
};
|
291
292
|
|
@@ -418,26 +419,55 @@ MockSubscriptions.prototype._addSymbol = function(ric, asChain, subId) {
|
|
418
419
|
sub["ric"] = ric;
|
419
420
|
sub["chain"] = asChain;
|
420
421
|
sub["id"] = subId;
|
421
|
-
sub["dataId"] = subId +
|
422
|
+
sub["dataId"] = subId + ric;
|
422
423
|
this._subMap[subId] = sub; // Collect all user subscriptions
|
423
|
-
this._dataMap.addItem(
|
424
|
+
this._dataMap.addItem(ric, sub);
|
425
|
+
var subs = this._dataMap.getItems(ric);
|
426
|
+
var subCount = subs.length;
|
427
|
+
|
428
|
+
this._dispatch("subscriptionAdded", {"subs": [sub]});
|
429
|
+
|
430
|
+
var childSub = null;
|
431
|
+
var childCount = 0;
|
432
|
+
var i;
|
424
433
|
if(asChain) {
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
434
|
+
// Note that constituents should have no subscription object. They should share the same subscription as their parent. Hence we does not register it to the _subMap
|
435
|
+
if(subCount === 1) { // The first chain detected
|
436
|
+
sub["children"] = [];
|
437
|
+
childCount = MockSubscriptions.simpleDigest(ric) % 10 + 4;
|
438
|
+
for(i = 0; i < childCount; ++i) {
|
439
|
+
childSub = {};
|
440
|
+
childSub["ric"] = "Child_" + String.fromCharCode(65 + i);
|
441
|
+
childSub["id"] = subId; // Child shares the same sub id as its chain parent
|
442
|
+
childSub["dataId"] = subId + childSub["ric"];
|
443
|
+
childSub["parent"] = sub; // This does not exist in real subscription
|
444
|
+
sub["children"].push(childSub);
|
445
|
+
|
446
|
+
this._dataMap.addItem(_joinSubKeys(sub, childSub), childSub);
|
447
|
+
}
|
448
|
+
} else {
|
449
|
+
var firstSub = subs[0];
|
450
|
+
var constituents = firstSub["children"];
|
451
|
+
childCount = constituents.length;
|
452
|
+
sub["children"] = new Array(childCount);
|
453
|
+
|
454
|
+
for(i = 0; i < childCount; ++i) {
|
455
|
+
childSub = {};
|
456
|
+
childSub["ric"] = constituents[i]["ric"];
|
457
|
+
childSub["id"] = subId; // Child shares the same sub id as its chain parent
|
458
|
+
childSub["dataId"] = subId + childSub["ric"];
|
459
|
+
childSub["parent"] = sub; // This does not exist in real subscription
|
460
|
+
sub["children"][i] = childSub;
|
461
|
+
|
462
|
+
this._dataMap.addItem(_joinSubKeys(sub, childSub), childSub);
|
463
|
+
}
|
464
|
+
}
|
465
|
+
}
|
466
|
+
if(subCount > 1) { // Duplicate RIC/CHAIN detected
|
467
|
+
if(this._working) {
|
468
|
+
setTimeout(this._updateDuplicateSymbol.bind(this, ric), 10);
|
437
469
|
}
|
438
470
|
}
|
439
|
-
|
440
|
-
this._dispatch("subscriptionAdded", {"subs": [sub]});
|
441
471
|
|
442
472
|
this._connect();
|
443
473
|
return subId;
|
@@ -457,14 +487,15 @@ MockSubscriptions.simpleDigest = function(str) {
|
|
457
487
|
|
458
488
|
/** @private */
|
459
489
|
MockSubscriptions.prototype._connect = function() {
|
460
|
-
if(
|
461
|
-
|
462
|
-
|
490
|
+
if(this._working && !this._timerId) {
|
491
|
+
var delay = this._dataGen.randInt(this._minInterval, this._maxInterval);
|
492
|
+
this._timerId = window.setTimeout(this._onSubscriptionResponse, delay);
|
493
|
+
}
|
463
494
|
};
|
464
495
|
|
465
496
|
/** @private */
|
466
497
|
MockSubscriptions.prototype._onSubscriptionResponse = function() {
|
467
|
-
this._timerId =
|
498
|
+
this._timerId = 0;
|
468
499
|
|
469
500
|
var keys = this._dataMap.getAllKeys(); // list of all rics
|
470
501
|
var len = keys ? keys.length : 0;
|
@@ -478,34 +509,14 @@ MockSubscriptions.prototype._onSubscriptionResponse = function() {
|
|
478
509
|
var maxRow = (this._percentageDataUpdate + 0.02) * len;
|
479
510
|
maxRow = maxRow < len ? maxRow : len; // not more than all rows
|
480
511
|
var numRows = this._dataGen.randInt(minRow, maxRow);
|
512
|
+
var fields = this._fields;
|
481
513
|
|
482
514
|
for(var i = 0; i < numRows; i++) {
|
483
515
|
var key = keys[this._dataGen.randIndex(len)]; // WARNING: Same sub could be picked more than once
|
484
|
-
var subs = this._dataMap.getItems(key);
|
485
|
-
|
486
|
-
var sub = subs[0];
|
487
|
-
var ric = sub.ric;
|
488
|
-
var prevData = sub.prevData;
|
489
|
-
|
490
|
-
var values = {};
|
491
|
-
var options = {
|
492
|
-
text: ric,
|
493
|
-
prefix: sub["parent"] ? sub["parent"]["ric"] : ""
|
494
|
-
};
|
495
|
-
for(var field in this._fields){
|
496
|
-
var data = this._dataGen.generateQuoteData(field, options);
|
497
|
-
if(prevData) {
|
498
|
-
if(data.changeOnly) {
|
499
|
-
if(prevData[field] === data.value) {
|
500
|
-
continue;
|
501
|
-
}
|
502
|
-
}
|
503
|
-
prevData[field] = data.value;
|
504
|
-
}
|
516
|
+
var subs = this._dataMap.getItems(key); // Get all subs with the same RIC
|
505
517
|
|
506
|
-
|
507
|
-
|
508
|
-
}
|
518
|
+
var sub = subs[0]; // Only the first sub is need to generate data
|
519
|
+
var values = this._generateQuoteData(sub, fields);
|
509
520
|
|
510
521
|
var jLen = subs.length;
|
511
522
|
for(var j = 0; j < jLen; ++j) {
|
@@ -517,6 +528,109 @@ MockSubscriptions.prototype._onSubscriptionResponse = function() {
|
|
517
528
|
};
|
518
529
|
/** @private
|
519
530
|
* @param {Object} sub
|
531
|
+
* @param {Object} fields
|
532
|
+
* @return {!Object}
|
533
|
+
*/
|
534
|
+
MockSubscriptions.prototype._generateQuoteData = function(sub, fields) {
|
535
|
+
var ric = sub.ric;
|
536
|
+
var prevData = sub.prevData;
|
537
|
+
|
538
|
+
var values = {};
|
539
|
+
var options = {
|
540
|
+
text: ric,
|
541
|
+
prefix: sub["parent"] ? sub["parent"]["ric"] : "" // prefix for constituents
|
542
|
+
};
|
543
|
+
for(var field in fields){
|
544
|
+
var data = this._dataGen.generateQuoteData(field, options);
|
545
|
+
var formattedField = field + "_FORMATTED";
|
546
|
+
if(prevData) {
|
547
|
+
if(data.changeOnly) {
|
548
|
+
if(prevData[field] === data.value) {
|
549
|
+
continue;
|
550
|
+
}
|
551
|
+
}
|
552
|
+
prevData[field] = data.value;
|
553
|
+
prevData[formattedField] = data.formattedValue;
|
554
|
+
}
|
555
|
+
|
556
|
+
values[field] = data.value;
|
557
|
+
values[formattedField] = data.formattedValue;
|
558
|
+
}
|
559
|
+
return values;
|
560
|
+
};
|
561
|
+
|
562
|
+
|
563
|
+
/** @private
|
564
|
+
* @param {Object} parentSub
|
565
|
+
* @param {string} ric
|
566
|
+
* @return {Object}
|
567
|
+
*/
|
568
|
+
MockSubscriptions.prototype._getChildSubByRic = function(parentSub, ric) {
|
569
|
+
var children = parentSub["children"];
|
570
|
+
if(children) {
|
571
|
+
var childCount = children.length;
|
572
|
+
for(var i = 0; i < childCount; ++i) {
|
573
|
+
var child = children[i];
|
574
|
+
if(child["ric"] === ric) {
|
575
|
+
return child;
|
576
|
+
}
|
577
|
+
}
|
578
|
+
}
|
579
|
+
return null;
|
580
|
+
};
|
581
|
+
/** @private
|
582
|
+
* @param {string} ric
|
583
|
+
*/
|
584
|
+
MockSubscriptions.prototype._updateDuplicateSymbol = function(ric) {
|
585
|
+
var subs = this._dataMap.getItems(ric);
|
586
|
+
if(!subs) {
|
587
|
+
return;
|
588
|
+
}
|
589
|
+
var subCount = subs.length;
|
590
|
+
if(subCount < 2) {
|
591
|
+
return;
|
592
|
+
}
|
593
|
+
var firstSub = subs[0];
|
594
|
+
var prevData = firstSub["prevData"];
|
595
|
+
var isChain = firstSub["chain"] ? true : false;
|
596
|
+
var i;
|
597
|
+
if(prevData) {
|
598
|
+
for(i = 1; i < subCount; ++i) {
|
599
|
+
var sub = subs[i];
|
600
|
+
if(!sub["prevData"]) {
|
601
|
+
this._dispatchDataChanged(sub, prevData);
|
602
|
+
}
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
|
607
|
+
if(!isChain) {
|
608
|
+
return;
|
609
|
+
}
|
610
|
+
var ricList = firstSub["ricList"];
|
611
|
+
if(!ricList) {
|
612
|
+
return;
|
613
|
+
}
|
614
|
+
var childCount = ricList.length;
|
615
|
+
|
616
|
+
for(i = 1; i < subCount; ++i) {
|
617
|
+
var sub2 = subs[i];
|
618
|
+
var ricList2 = sub2["ricList"];
|
619
|
+
var childCount2 = ricList2 ? ricList2.length : 0;
|
620
|
+
for(var j = childCount2; j < childCount; ++j) {
|
621
|
+
var childRic = ricList[j];
|
622
|
+
var childSub = this._getChildSubByRic(firstSub, childRic);
|
623
|
+
var childSub2 = this._getChildSubByRic(sub2, childRic);
|
624
|
+
if(childSub && childSub2) {
|
625
|
+
if(childSub["prevData"]) {
|
626
|
+
this._dispatchDataChanged(childSub2, childSub["prevData"]);
|
627
|
+
}
|
628
|
+
}
|
629
|
+
}
|
630
|
+
}
|
631
|
+
};
|
632
|
+
/** @private
|
633
|
+
* @param {Object} sub
|
520
634
|
* @param {Object} dataUpdates
|
521
635
|
*/
|
522
636
|
MockSubscriptions.prototype._dispatchDataChanged = function(sub, dataUpdates) {
|
@@ -536,6 +650,15 @@ MockSubscriptions.prototype._dispatchDataChanged = function(sub, dataUpdates) {
|
|
536
650
|
values["STATUS_FORMATTED"] = this._statusMap["1"];
|
537
651
|
values["SUB_ID"] = sub["id"];
|
538
652
|
copyValues(values, prevData);
|
653
|
+
|
654
|
+
var parentSub = sub.parent;
|
655
|
+
if(parentSub) { // This is the first time constituent have the data
|
656
|
+
var ricList = parentSub["ricList"];
|
657
|
+
if(!ricList) {
|
658
|
+
ricList = parentSub["ricList"] = [];
|
659
|
+
}
|
660
|
+
parentSub["ricList"].push(sub["ric"]);
|
661
|
+
}
|
539
662
|
}
|
540
663
|
this._dispatch("dataChanged", evtArg);
|
541
664
|
};
|
@@ -593,7 +716,7 @@ MockSubscriptions.prototype._working = false;
|
|
593
716
|
/** @type {number}
|
594
717
|
* @private
|
595
718
|
*/
|
596
|
-
MockSubscriptions.prototype._timerId =
|
719
|
+
MockSubscriptions.prototype._timerId = 0;
|
597
720
|
|
598
721
|
/** @type {number}
|
599
722
|
* @private
|
@@ -37,6 +37,8 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
37
37
|
|
38
38
|
public getConfigObject(gridOptions?: any): any;
|
39
39
|
|
40
|
+
public renderGroups(): void;
|
41
|
+
|
40
42
|
public addColumnToGroup(column: any, groupId: string, colIndex: number): void;
|
41
43
|
|
42
44
|
public addGroup(groupDef: ColumnGroupingPlugin.GroupDefinition|null): string;
|
@@ -55,6 +57,8 @@ declare class ColumnGroupingPlugin extends GridPlugin {
|
|
55
57
|
|
56
58
|
public setGroupChildren(groupId: string, newChildList: (string)[]|null): boolean;
|
57
59
|
|
60
|
+
public setGroupName(groupId: string, groupName: string): void;
|
61
|
+
|
58
62
|
public getGroupChildren(groupId: string): (string)[]|null;
|
59
63
|
|
60
64
|
public getChildColumnIndices(groupId: string): (number)[]|null;
|
@@ -119,6 +119,8 @@ declare class ColumnStackPlugin extends GridPlugin {
|
|
119
119
|
|
120
120
|
public getActiveColumnField(stackId: string): string;
|
121
121
|
|
122
|
+
public getActiveColumnIndex(stackId: string): number;
|
123
|
+
|
122
124
|
public addStackChild(stackId: string, colRef: number|string|null): void;
|
123
125
|
|
124
126
|
public removeStackChild(stackId: string, colRef: number|string|null): void;
|
@@ -13,16 +13,16 @@ declare namespace ConditionalColoringPlugin {
|
|
13
13
|
|
14
14
|
type ColumnOptions = {
|
15
15
|
conditions?: (ConditionalColoringPlugin.Condition)[]|null,
|
16
|
-
colorText?: (string|boolean)|null,
|
17
|
-
tickColor?: (string|boolean)|null,
|
18
|
-
blinking?: (ConditionalColoringPlugin.Blinking
|
16
|
+
colorText?: (string|boolean|ConditionalColoringPlugin.ColorText)|null,
|
17
|
+
tickColor?: (string|boolean|ConditionalColoringPlugin.ColorText)|null,
|
18
|
+
blinking?: (string|boolean|ConditionalColoringPlugin.Blinking)|null,
|
19
19
|
field?: string|null
|
20
20
|
};
|
21
21
|
|
22
22
|
type ConditionalColoringOptions = {
|
23
23
|
conditions?: (ConditionalColoringPlugin.Condition)[]|null,
|
24
|
-
colorText?: (string|boolean)|null,
|
25
|
-
tickColor?: (string|boolean)|null,
|
24
|
+
colorText?: (string|boolean|ConditionalColoringPlugin.ColorText)|null,
|
25
|
+
tickColor?: (string|boolean|ConditionalColoringPlugin.ColorText)|null,
|
26
26
|
field?: string|null
|
27
27
|
};
|
28
28
|
|
@@ -41,6 +41,13 @@ declare namespace ConditionalColoringPlugin {
|
|
41
41
|
level?: (string|boolean)|null
|
42
42
|
};
|
43
43
|
|
44
|
+
type ColorText = {
|
45
|
+
field?: string|null,
|
46
|
+
upClass?: string|null,
|
47
|
+
downClass?: string|null,
|
48
|
+
levelClass?: string|null
|
49
|
+
};
|
50
|
+
|
44
51
|
}
|
45
52
|
|
46
53
|
declare class ConditionalColoringPlugin extends GridPlugin {
|
@@ -8,7 +8,7 @@ declare class SegmentCollection extends EventDispatcher {
|
|
8
8
|
|
9
9
|
public dispose(): void;
|
10
10
|
|
11
|
-
public addSegment(rid: string): boolean;
|
11
|
+
public addSegment(rid: string, childRids?: (string)[]|null): boolean;
|
12
12
|
|
13
13
|
public addSegments(rids: (string)[]|null): boolean;
|
14
14
|
|
@@ -56,8 +56,6 @@ declare class SegmentCollection extends EventDispatcher {
|
|
56
56
|
|
57
57
|
public calcSegmentOrder(rids: (string)[]|null): void;
|
58
58
|
|
59
|
-
public getSegmentValues(rids: (string)[]): (number)[]|null;
|
60
|
-
|
61
59
|
public logStructure(): string;
|
62
60
|
|
63
61
|
public logRowIdMap(): string;
|
@@ -339,8 +339,12 @@ declare class Core extends ElementWrapper {
|
|
339
339
|
|
340
340
|
public enableRowVirtualization(opt_enabled: boolean): void;
|
341
341
|
|
342
|
+
public isRowVirtualizationEnabled(): boolean;
|
343
|
+
|
342
344
|
public enableColumnVirtualization(opt_enabled?: boolean|null): void;
|
343
345
|
|
346
|
+
public isColumnVirtualizationEnabled(): boolean;
|
347
|
+
|
344
348
|
public setRowScrollingStep(rowCount: number): void;
|
345
349
|
|
346
350
|
public getVMouseWheelHandler(): ((...params: any[]) => any)|null;
|
@@ -4,6 +4,7 @@ import Core from "../Core.js";
|
|
4
4
|
import ILayoutGrid from "../ILayoutGrid.js";
|
5
5
|
import ElementWrapper from "../components/ElementWrapper.js";
|
6
6
|
import DataTable from "../../data/DataTable.js";
|
7
|
+
import { isEmptyObject } from "../../../../../tr-grid-util/es6/Util.js";
|
7
8
|
|
8
9
|
declare namespace SortableTitlePlugin {
|
9
10
|
|
@@ -12,6 +12,8 @@ declare class SelectionList {
|
|
12
12
|
|
13
13
|
public deselect(at: number): boolean;
|
14
14
|
|
15
|
+
public deselectFrom(at: number): boolean;
|
16
|
+
|
15
17
|
public toggleSelection(at: number): void;
|
16
18
|
|
17
19
|
public singularlySelect(at: number): boolean;
|
@@ -36,13 +38,15 @@ declare class SelectionList {
|
|
36
38
|
|
37
39
|
public getLastSelectedIndex(): number;
|
38
40
|
|
39
|
-
public getAllSelections(): (number)[]
|
41
|
+
public getAllSelections(): (number)[];
|
42
|
+
|
43
|
+
public getConnectedRanges(from?: number|null, to?: number|null): (number)[][];
|
40
44
|
|
41
45
|
public getSelectionMap(): (boolean)[]|null;
|
42
46
|
|
43
47
|
public clearAllSelections(): number;
|
44
48
|
|
45
|
-
public copyFrom(srcSelections: SelectionList|null, fromSrcIndex: number,
|
49
|
+
public copyFrom(srcSelections: SelectionList|null, fromSrcIndex: number, offset: number, forLength: number): void;
|
46
50
|
|
47
51
|
}
|
48
52
|
|
@@ -7,12 +7,12 @@ declare namespace HeatMapPlugin {
|
|
7
7
|
|
8
8
|
type ColumnOptions = {
|
9
9
|
field: string,
|
10
|
-
heatMap?: HeatMapPlugin.Heatmap
|
10
|
+
heatMap?: HeatMapPlugin.Heatmap|null
|
11
11
|
};
|
12
12
|
|
13
13
|
type Heatmap = {
|
14
|
-
midPoint?: number,
|
15
|
-
mode?: string
|
14
|
+
midPoint?: number|null,
|
15
|
+
mode?: string|null
|
16
16
|
};
|
17
17
|
|
18
18
|
}
|
@@ -5,7 +5,7 @@ import { Conflator } from "../../../tr-grid-util/es6/Conflator.js";
|
|
5
5
|
import { Ext } from "../../../tr-grid-util/es6/Ext.js";
|
6
6
|
import { EventDispatcher } from "../../../tr-grid-util/es6/EventDispatcher.js";
|
7
7
|
import { Engine } from "../../../tr-grid-util/es6/formula/Engine.js";
|
8
|
-
import { cloneObject, extendObject, arrayToObject } from "../../../tr-grid-util/es6/Util.js";
|
8
|
+
import { cloneObject, extendObject, arrayToObject, isEmptyObject, deepEqual } from "../../../tr-grid-util/es6/Util.js";
|
9
9
|
import { DateTime } from "../../../tr-grid-util/es6/DateTime.js";
|
10
10
|
|
11
11
|
import { RowDefinition, ROW_DEF } from "./RowDefinition.js";
|
@@ -136,6 +136,8 @@ declare class Grid extends EventDispatcher {
|
|
136
136
|
|
137
137
|
public setColumns(columns: (any)[]|null): void;
|
138
138
|
|
139
|
+
public restoreColumns(columns: (any)[]|null): void;
|
140
|
+
|
139
141
|
public setFields(ary: (string)[]|null): void;
|
140
142
|
|
141
143
|
public removeColumn(colRef: Grid.ColumnReference|null): void;
|
@@ -6,6 +6,7 @@ declare namespace RowDefinition {
|
|
6
6
|
|
7
7
|
type Options = {
|
8
8
|
ric?: string|null,
|
9
|
+
permId?: string|null,
|
9
10
|
values?: (any[]|any)|null,
|
10
11
|
fields?: (string)[]|null,
|
11
12
|
asChain?: boolean|null,
|
@@ -36,7 +37,7 @@ declare class RowDefinition {
|
|
36
37
|
|
37
38
|
public initialize(rowOptions?: RowDefinition.Options|null): void;
|
38
39
|
|
39
|
-
public setContent(userInput: string): boolean;
|
40
|
+
public setContent(userInput: string, permId?: string|null): boolean;
|
40
41
|
|
41
42
|
public getRowId(): string;
|
42
43
|
|
@@ -70,6 +71,10 @@ declare class RowDefinition {
|
|
70
71
|
|
71
72
|
public getRic(): string;
|
72
73
|
|
74
|
+
public getPermId(): string;
|
75
|
+
|
76
|
+
public getSymbol(): string;
|
77
|
+
|
73
78
|
public getDisplayText(): string;
|
74
79
|
|
75
80
|
public getLabel(): string|null|null;
|
@@ -138,7 +143,7 @@ declare const ROW_DEF: string;
|
|
138
143
|
|
139
144
|
declare const ROW_TYPES: RowDefinition.RowTypes;
|
140
145
|
|
141
|
-
declare function rowData(userInput: string): boolean;
|
146
|
+
declare function rowData(userInput: string, permId?: string|null): boolean;
|
142
147
|
|
143
148
|
export {RowDefinition, ROW_DEF, ROW_TYPES};
|
144
149
|
export default RowDefinition;
|
@@ -2,6 +2,7 @@ import Grid from "./Grid.js";
|
|
2
2
|
import {Ext} from '../../../tr-grid-util/es6/Ext.js';
|
3
3
|
import {EventDispatcher} from '../../../tr-grid-util/es6/EventDispatcher.js';
|
4
4
|
import {FieldDefinition} from './FieldDefinition.js';
|
5
|
+
import { isEmptyObject } from "../../../tr-grid-util/es6/Util.js";
|
5
6
|
|
6
7
|
declare class SnapshotFiller extends EventDispatcher {
|
7
8
|
|
@@ -18,7 +18,8 @@ declare namespace RowDraggingPlugin {
|
|
18
18
|
dragStart?: ((...params: any[]) => any)|null,
|
19
19
|
drag?: ((...params: any[]) => any)|null,
|
20
20
|
dragEnd?: ((...params: any[]) => any)|null,
|
21
|
-
dataMoved?: ((...params: any[]) => any)|null
|
21
|
+
dataMoved?: ((...params: any[]) => any)|null,
|
22
|
+
beforeDataMoved?: ((...params: any[]) => any)|null
|
22
23
|
};
|
23
24
|
|
24
25
|
}
|
@@ -39,7 +40,7 @@ declare class RowDraggingPlugin extends GridPlugin {
|
|
39
40
|
|
40
41
|
public getConfigObject(out_obj?: any): any;
|
41
42
|
|
42
|
-
public startDrag(startRef
|
43
|
+
public startDrag(startRef?: any): void;
|
43
44
|
|
44
45
|
public stopDrag(): void;
|
45
46
|
|
@@ -53,6 +54,28 @@ declare class RowDraggingPlugin extends GridPlugin {
|
|
53
54
|
|
54
55
|
public disableUIs(disabled?: boolean|null): void;
|
55
56
|
|
57
|
+
public allowDrag(allowed?: boolean|null): void;
|
58
|
+
|
59
|
+
public allowDrop(allowed?: boolean|null): void;
|
60
|
+
|
61
|
+
public setDragContent(content: any): void;
|
62
|
+
|
63
|
+
public getDragBox(): Element|null;
|
64
|
+
|
65
|
+
public getDragSource(): string;
|
66
|
+
|
67
|
+
public isDragging(): boolean;
|
68
|
+
|
69
|
+
public disableDragging(disabled?: boolean|null): void;
|
70
|
+
|
71
|
+
public enableJETDragAndDrop(enabled?: boolean|null): void;
|
72
|
+
|
73
|
+
public getJETDragContent(): any;
|
74
|
+
|
75
|
+
public setJETDragContent(content: any): void;
|
76
|
+
|
77
|
+
public setJETDragContent(content: any): void;
|
78
|
+
|
56
79
|
}
|
57
80
|
|
58
81
|
export default RowDraggingPlugin;
|
@@ -4,42 +4,42 @@ import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
|
|
4
4
|
declare namespace StatisticsRowPlugin {
|
5
5
|
|
6
6
|
type Options = {
|
7
|
-
rows?: any[],
|
8
|
-
invalidText?: string,
|
9
|
-
noColoring?: boolean,
|
10
|
-
noFormatting?: boolean,
|
11
|
-
postCalculation?: ((...params: any[]) => any),
|
12
|
-
postRendering?: ((...params: any[]) => any)
|
7
|
+
rows?: any[]|null,
|
8
|
+
invalidText?: string|null,
|
9
|
+
noColoring?: boolean|null,
|
10
|
+
noFormatting?: boolean|null,
|
11
|
+
postCalculation?: ((...params: any[]) => any)|null,
|
12
|
+
postRendering?: ((...params: any[]) => any)|null
|
13
13
|
};
|
14
14
|
|
15
15
|
type ColumnOptions = {
|
16
|
-
statistics?: (boolean|string)
|
16
|
+
statistics?: (boolean|string)|null
|
17
17
|
};
|
18
18
|
|
19
19
|
type RowOptions = {
|
20
|
-
placement?: string,
|
21
|
-
statistic?: string,
|
22
|
-
label?: string,
|
23
|
-
id?: string
|
20
|
+
placement?: string|null,
|
21
|
+
statistic?: string|null,
|
22
|
+
label?: string|null,
|
23
|
+
id?: string|null
|
24
24
|
};
|
25
25
|
|
26
|
-
type RowReference = string|number;
|
26
|
+
type RowReference = string|number|null;
|
27
27
|
|
28
28
|
type Stats = {
|
29
|
-
field?: string,
|
30
|
-
label?: boolean,
|
31
|
-
count?: number,
|
32
|
-
sum?: number,
|
33
|
-
average?: number,
|
34
|
-
min?: number,
|
35
|
-
max?: number
|
29
|
+
field?: string|null,
|
30
|
+
label?: boolean|null,
|
31
|
+
count?: number|null,
|
32
|
+
sum?: number|null,
|
33
|
+
average?: number|null,
|
34
|
+
min?: number|null,
|
35
|
+
max?: number|null
|
36
36
|
};
|
37
37
|
|
38
38
|
}
|
39
39
|
|
40
40
|
declare class StatisticsRowPlugin extends GridPlugin {
|
41
41
|
|
42
|
-
constructor(options?: StatisticsRowPlugin.Options);
|
42
|
+
constructor(options?: StatisticsRowPlugin.Options|null);
|
43
43
|
|
44
44
|
public getName(): string;
|
45
45
|
|
@@ -51,15 +51,15 @@ declare class StatisticsRowPlugin extends GridPlugin {
|
|
51
51
|
|
52
52
|
public getConfigObject(gridOptions?: any): any;
|
53
53
|
|
54
|
-
public setStatisticsRows(rows: (StatisticsRowPlugin.RowOptions)[]): void;
|
54
|
+
public setStatisticsRows(rows: (StatisticsRowPlugin.RowOptions)[]|null): void;
|
55
55
|
|
56
|
-
public getStatisticsRows(): (StatisticsRowPlugin.RowOptions)[];
|
56
|
+
public getStatisticsRows(): (StatisticsRowPlugin.RowOptions)[]|null;
|
57
57
|
|
58
|
-
public setStatisticsRow(rowRef: StatisticsRowPlugin.RowReference, options: StatisticsRowPlugin.RowOptions): boolean;
|
58
|
+
public setStatisticsRow(rowRef: StatisticsRowPlugin.RowReference|null, options: StatisticsRowPlugin.RowOptions|null): boolean;
|
59
59
|
|
60
|
-
public addStatisticsRow(options: StatisticsRowPlugin.RowOptions): void;
|
60
|
+
public addStatisticsRow(options: StatisticsRowPlugin.RowOptions|null): void;
|
61
61
|
|
62
|
-
public removeStatisticsRow(rowRef: StatisticsRowPlugin.RowReference): void;
|
62
|
+
public removeStatisticsRow(rowRef: StatisticsRowPlugin.RowReference|null): void;
|
63
63
|
|
64
64
|
}
|
65
65
|
|