@refinitiv-ui/efx-grid 6.0.140 → 6.0.141

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/lib/core/dist/core.js +99 -28
  2. package/lib/core/dist/core.min.js +1 -1
  3. package/lib/core/es6/data/DataTable.d.ts +5 -1
  4. package/lib/core/es6/data/DataTable.js +38 -8
  5. package/lib/core/es6/data/DataView.d.ts +2 -0
  6. package/lib/core/es6/data/DataView.js +8 -0
  7. package/lib/core/es6/data/Segment.d.ts +1 -1
  8. package/lib/core/es6/data/Segment.js +16 -4
  9. package/lib/core/es6/data/SegmentCollection.d.ts +2 -0
  10. package/lib/core/es6/data/SegmentCollection.js +21 -10
  11. package/lib/core/es6/grid/Core.js +1 -1
  12. package/lib/core/es6/grid/components/Cell.js +9 -3
  13. package/lib/core/es6/grid/components/ElementWrapper.d.ts +2 -0
  14. package/lib/core/es6/grid/components/ElementWrapper.js +6 -2
  15. package/lib/grid/index.js +1 -1
  16. package/lib/row-segmenting/es6/RowSegmenting.d.ts +8 -1
  17. package/lib/row-segmenting/es6/RowSegmenting.js +88 -23
  18. package/lib/rt-grid/dist/rt-grid.js +607 -566
  19. package/lib/rt-grid/dist/rt-grid.min.js +1 -1
  20. package/lib/rt-grid/es6/Grid.js +37 -14
  21. package/lib/rt-grid/es6/RowDefinition.d.ts +1 -1
  22. package/lib/rt-grid/es6/RowDefinition.js +11 -3
  23. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.d.ts +1 -1
  24. package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +2 -3
  25. package/lib/tr-grid-util/es6/jet/MockQuotes2.d.ts +2 -0
  26. package/lib/tr-grid-util/es6/jet/MockQuotes2.js +38 -8
  27. package/lib/types/es6/ConditionalColoring.d.ts +1 -1
  28. package/lib/types/es6/Core/data/DataTable.d.ts +5 -1
  29. package/lib/types/es6/Core/data/DataView.d.ts +2 -0
  30. package/lib/types/es6/Core/data/Segment.d.ts +1 -1
  31. package/lib/types/es6/Core/data/SegmentCollection.d.ts +2 -0
  32. package/lib/types/es6/Core/grid/components/ElementWrapper.d.ts +2 -0
  33. package/lib/versions.json +3 -3
  34. package/package.json +1 -1
@@ -1,101 +1,10 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
40
- /******/ }
41
- /******/ };
42
- /******/
43
- /******/ // define __esModule on exports
44
- /******/ __webpack_require__.r = function(exports) {
45
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47
- /******/ }
48
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
49
- /******/ };
50
- /******/
51
- /******/ // create a fake namespace object
52
- /******/ // mode & 1: value is a module id, require it
53
- /******/ // mode & 2: merge all properties of value into the ns
54
- /******/ // mode & 4: return value when already ns object
55
- /******/ // mode & 8|1: behave like require
56
- /******/ __webpack_require__.t = function(value, mode) {
57
- /******/ if(mode & 1) value = __webpack_require__(value);
58
- /******/ if(mode & 8) return value;
59
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60
- /******/ var ns = Object.create(null);
61
- /******/ __webpack_require__.r(ns);
62
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64
- /******/ return ns;
65
- /******/ };
66
- /******/
67
- /******/ // getDefaultExport function for compatibility with non-harmony modules
68
- /******/ __webpack_require__.n = function(module) {
69
- /******/ var getter = module && module.__esModule ?
70
- /******/ function getDefault() { return module['default']; } :
71
- /******/ function getModuleExports() { return module; };
72
- /******/ __webpack_require__.d(getter, 'a', getter);
73
- /******/ return getter;
74
- /******/ };
75
- /******/
76
- /******/ // Object.prototype.hasOwnProperty.call
77
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78
- /******/
79
- /******/ // __webpack_public_path__
80
- /******/ __webpack_require__.p = "";
81
- /******/
82
- /******/
83
- /******/ // Load entry module and return exports
84
- /******/ return __webpack_require__(__webpack_require__.s = 0);
85
- /******/ })
86
- /************************************************************************/
87
- /******/ ([
88
- /* 0 */
89
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
90
-
91
- "use strict";
92
- // ESM COMPAT FLAG
93
- __webpack_require__.r(__webpack_exports__);
94
-
95
- // EXPORTS
96
- __webpack_require__.d(__webpack_exports__, "Grid", function() { return /* reexport */ Grid; });
97
-
98
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Dom.js
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ var __webpack_exports__ = {};
4
+
5
+ // UNUSED EXPORTS: Grid, default
6
+
7
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Dom.js
99
8
  /** @namespace */
100
9
  let Dom = {};
101
10
 
@@ -444,10 +353,10 @@ Dom.closestTagName = function(elem, tn) {
444
353
  return null;
445
354
  };
446
355
 
447
- /* harmony default export */ var es6_Dom = (Dom);
356
+ /* harmony default export */ const es6_Dom = ((/* unused pure expression or super */ null && (Dom)));
448
357
 
449
358
 
450
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Conflator.js
359
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Conflator.js
451
360
  /** Conflator is used to stop multiple executions of a function in the specified period of time by merging multiple calls into one single call. <br>
452
361
  * Conflator guarantees that only one single call will be executed.
453
362
  * @constructor
@@ -639,10 +548,10 @@ Conflator.prototype.enable = function (opt_enabled) {
639
548
  this._disabled = opt_enabled === false;
640
549
  };
641
550
 
642
- /* harmony default export */ var es6_Conflator = (Conflator);
551
+ /* harmony default export */ const es6_Conflator = ((/* unused pure expression or super */ null && (Conflator)));
643
552
 
644
553
 
645
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Ext.js
554
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Ext.js
646
555
  /** Provide ability for prototype based Class to inherits another class
647
556
  * @namespace
648
557
  * @example
@@ -693,10 +602,10 @@ Ext.inherits = function (childCtor, parentCtor) {
693
602
  };
694
603
  };
695
604
 
696
- /* harmony default export */ var es6_Ext = (Ext);
605
+ /* harmony default export */ const es6_Ext = (Ext);
697
606
 
698
607
 
699
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/EventDispatcher.js
608
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/EventDispatcher.js
700
609
  /** Abstract base class that provides event management methods for derived class
701
610
  * @constructor
702
611
  */
@@ -856,10 +765,10 @@ let preventDefault = function(e) {
856
765
  */
857
766
  EventDispatcher.preventDefault = preventDefault;
858
767
 
859
- /* harmony default export */ var es6_EventDispatcher = (EventDispatcher);
768
+ /* harmony default export */ const es6_EventDispatcher = (EventDispatcher);
860
769
 
861
770
 
862
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/VariableToken.js
771
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/VariableToken.js
863
772
 
864
773
  /** @constructor
865
774
  * @param {string} str
@@ -1172,10 +1081,10 @@ VariableToken.prototype._resolveArray = function(str) {
1172
1081
  }
1173
1082
  };
1174
1083
 
1175
- /* harmony default export */ var formula_VariableToken = (VariableToken);
1084
+ /* harmony default export */ const formula_VariableToken = (VariableToken);
1176
1085
 
1177
1086
 
1178
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/Formula.js
1087
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/Formula.js
1179
1088
 
1180
1089
 
1181
1090
 
@@ -2064,10 +1973,10 @@ Formula.prototype._onDataCacheChanged = function(e) {
2064
1973
 
2065
1974
  Formula._proto = Formula.prototype;
2066
1975
 
2067
- /* harmony default export */ var formula_Formula = (Formula);
1976
+ /* harmony default export */ const formula_Formula = (Formula);
2068
1977
 
2069
1978
 
2070
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-en.js
1979
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-en.js
2071
1980
  /**
2072
1981
  * @namespace
2073
1982
  */
@@ -2118,9 +2027,9 @@ let translationEn = {
2118
2027
  "PM": "PM"
2119
2028
  };
2120
2029
 
2121
- /* harmony default export */ var translation_en = (translationEn);
2030
+ /* harmony default export */ const translation_en = (translationEn);
2122
2031
 
2123
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-de.js
2032
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-de.js
2124
2033
  /**
2125
2034
  * @namespace
2126
2035
  */
@@ -2171,9 +2080,9 @@ let translationDe = {
2171
2080
  "PM": "PM"
2172
2081
  };
2173
2082
 
2174
- /* harmony default export */ var translation_de = (translationDe);
2083
+ /* harmony default export */ const translation_de = (translationDe);
2175
2084
 
2176
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-ja.js
2085
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-ja.js
2177
2086
  /**
2178
2087
  * @namespace
2179
2088
  */
@@ -2224,9 +2133,9 @@ let translationJa = {
2224
2133
  'PM': '午後'
2225
2134
  };
2226
2135
 
2227
- /* harmony default export */ var translation_ja = (translationJa);
2136
+ /* harmony default export */ const translation_ja = (translationJa);
2228
2137
 
2229
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-zh.js
2138
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-zh.js
2230
2139
  /**
2231
2140
  * @namespace
2232
2141
  */
@@ -2277,9 +2186,9 @@ let translationZh = {
2277
2186
  'PM': '下午'
2278
2187
  };
2279
2188
 
2280
- /* harmony default export */ var translation_zh = (translationZh);
2189
+ /* harmony default export */ const translation_zh = (translationZh);
2281
2190
 
2282
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-zh-hant.js
2191
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation-zh-hant.js
2283
2192
  /**
2284
2193
  * @namespace
2285
2194
  */
@@ -2330,9 +2239,9 @@ let translationZhHant = {
2330
2239
  'PM': '下午'
2331
2240
  };
2332
2241
 
2333
- /* harmony default export */ var translation_zh_hant = (translationZhHant);
2242
+ /* harmony default export */ const translation_zh_hant = (translationZhHant);
2334
2243
 
2335
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation.js
2244
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/locale/translation.js
2336
2245
 
2337
2246
 
2338
2247
 
@@ -2350,9 +2259,9 @@ let translation = {
2350
2259
  "zh-Hant": translation_zh_hant
2351
2260
  };
2352
2261
 
2353
- /* harmony default export */ var locale_translation = (translation);
2262
+ /* harmony default export */ const locale_translation = (translation);
2354
2263
 
2355
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Color.js
2264
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Color.js
2356
2265
  /** @namespace */
2357
2266
  let Color = {};
2358
2267
 
@@ -2549,10 +2458,10 @@ Color.getContrastRatio = getContrastRatio;
2549
2458
  Color.getContrastColor = getContrastColor;
2550
2459
  Color.blendColor = blendColor;
2551
2460
 
2552
- /* harmony default export */ var es6_Color = (Color);
2461
+ /* harmony default export */ const es6_Color = ((/* unused pure expression or super */ null && (Color)));
2553
2462
 
2554
2463
 
2555
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Util.js
2464
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Util.js
2556
2465
 
2557
2466
 
2558
2467
  /** @namespace */
@@ -3041,10 +2950,10 @@ let prepareTSVContent = function (data) {
3041
2950
  return content;
3042
2951
  };
3043
2952
 
3044
- /* harmony default export */ var es6_Util = (Util);
2953
+ /* harmony default export */ const es6_Util = ((/* unused pure expression or super */ null && (Util)));
3045
2954
 
3046
2955
 
3047
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Deferred.js
2956
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/Deferred.js
3048
2957
  /** Deferred promise should be used when asynchronous method does not return promise object (e.g. typical AJAX calls, or native setTimeout()). In other words, deferred promise is used to allow any non-promise logics to be worked in promise pattern.
3049
2958
  * @constructor
3050
2959
  * @param {Function=} resolveHandler
@@ -3151,10 +3060,10 @@ Deferred.prototype._finally = function() {
3151
3060
  this._resolve = this._reject = null;
3152
3061
  };
3153
3062
 
3154
- /* harmony default export */ var es6_Deferred = (Deferred);
3063
+ /* harmony default export */ const es6_Deferred = ((/* unused pure expression or super */ null && (Deferred)));
3155
3064
 
3156
3065
 
3157
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ElementObserver.js
3066
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ElementObserver.js
3158
3067
 
3159
3068
  /** @namespace
3160
3069
  */
@@ -3287,10 +3196,10 @@ ElementObserver._listeners = {};
3287
3196
  */
3288
3197
  ElementObserver._id = 0;
3289
3198
 
3290
- /* harmony default export */ var es6_ElementObserver = (ElementObserver);
3199
+ /* harmony default export */ const es6_ElementObserver = ((/* unused pure expression or super */ null && (ElementObserver)));
3291
3200
 
3292
3201
 
3293
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ElfUtil.js
3202
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ElfUtil.js
3294
3203
 
3295
3204
 
3296
3205
 
@@ -3899,10 +3808,10 @@ ElfUtil._retrieveThemeColors = function(profileName) {
3899
3808
  colors["trackColor"] = colors["primary"] || ElfUtil._defaultColors["trackColor"];
3900
3809
  };
3901
3810
 
3902
- /* harmony default export */ var es6_ElfUtil = (ElfUtil);
3811
+ /* harmony default export */ const es6_ElfUtil = (ElfUtil);
3903
3812
 
3904
3813
 
3905
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/DateTime.js
3814
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/DateTime.js
3906
3815
 
3907
3816
 
3908
3817
 
@@ -3944,7 +3853,7 @@ const SECONDS_IN_DAY = 24 * 60 * 60; // eslint-disable-line
3944
3853
  * @public
3945
3854
  * @constant
3946
3855
  */
3947
- const SECONDS_IN_HOUR = 60 * 60; // eslint-disable-line
3856
+ const SECONDS_IN_HOUR = (/* unused pure expression or super */ null && (60 * 60)); // eslint-disable-line
3948
3857
  /** @type {number}
3949
3858
  * @public
3950
3859
  * @constant
@@ -4409,10 +4318,10 @@ DateTime.toYYYYMMDD = function(dateObj) {
4409
4318
  };
4410
4319
 
4411
4320
 
4412
- /* harmony default export */ var es6_DateTime = (DateTime);
4321
+ /* harmony default export */ const es6_DateTime = (DateTime);
4413
4322
 
4414
4323
 
4415
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Info.js
4324
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Info.js
4416
4325
 
4417
4326
  /**
4418
4327
  * @namespace Info
@@ -4603,10 +4512,10 @@ Info["ISNASTRING"] = function(value) {
4603
4512
  return 0; // "abc", [1, 2, 3], 0, 1, null, undefined, NaN
4604
4513
  };
4605
4514
 
4606
- /* harmony default export */ var functions_Info = (Info);
4515
+ /* harmony default export */ const functions_Info = (Info);
4607
4516
 
4608
4517
 
4609
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Logic.js
4518
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Logic.js
4610
4519
  /**
4611
4520
  * @namespace Logic
4612
4521
  * @description
@@ -4781,10 +4690,10 @@ Logic["TRUE"] = function() {
4781
4690
  return 1;
4782
4691
  };
4783
4692
 
4784
- /* harmony default export */ var functions_Logic = (Logic);
4693
+ /* harmony default export */ const functions_Logic = (Logic);
4785
4694
 
4786
4695
 
4787
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Math.js
4696
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Math.js
4788
4697
  /**
4789
4698
  * @namespace GridMath
4790
4699
  * @description
@@ -6407,10 +6316,10 @@ GridMath["TRUNC"] = function(num, num_digits) {
6407
6316
  return Math.floor(num * divisor) / divisor;
6408
6317
  };
6409
6318
 
6410
- /* harmony default export */ var functions_Math = (GridMath);
6319
+ /* harmony default export */ const functions_Math = (GridMath);
6411
6320
 
6412
6321
 
6413
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Statistics.js
6322
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Statistics.js
6414
6323
  /**
6415
6324
  * @namespace Statistic
6416
6325
  * @description
@@ -6643,10 +6552,10 @@ Stat["STDEVP"] = function(/* ... args*/) {
6643
6552
  return Math.sqrt(sum / argLen);
6644
6553
  };
6645
6554
 
6646
- /* harmony default export */ var Statistics = (Stat);
6555
+ /* harmony default export */ const Statistics = (Stat);
6647
6556
 
6648
6557
 
6649
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Text.js
6558
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/functions/Text.js
6650
6559
  /**
6651
6560
  * @namespace Text
6652
6561
  * @description
@@ -7319,10 +7228,10 @@ Text["STRING"] = function(num1, num2) {
7319
7228
  return (num1).toFixed(num2);
7320
7229
  };
7321
7230
 
7322
- /* harmony default export */ var functions_Text = (Text);
7231
+ /* harmony default export */ const functions_Text = (Text);
7323
7232
 
7324
7233
 
7325
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/Engine.js
7234
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/formula/Engine.js
7326
7235
 
7327
7236
 
7328
7237
 
@@ -7913,10 +7822,10 @@ Engine.prototype._sortParentChildrenMap = function(ParentChildrenMap) {
7913
7822
 
7914
7823
  Engine._proto = Engine.prototype;
7915
7824
 
7916
- /* harmony default export */ var formula_Engine = (Engine);
7825
+ /* harmony default export */ const formula_Engine = ((/* unused pure expression or super */ null && (Engine)));
7917
7826
 
7918
7827
 
7919
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/util.js
7828
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/util.js
7920
7829
  /**
7921
7830
  * @namespace
7922
7831
  */
@@ -8306,10 +8215,10 @@ util_Util._preventDefault = function (e) {
8306
8215
  e.stopPropagation();
8307
8216
  };
8308
8217
 
8309
- /* harmony default export */ var util = (util_Util);
8218
+ /* harmony default export */ const util = (util_Util);
8310
8219
 
8311
8220
 
8312
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/event/EventListeners.js
8221
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/event/EventListeners.js
8313
8222
 
8314
8223
 
8315
8224
  /** @constructor
@@ -8474,10 +8383,10 @@ EventListeners.prototype._dispatching = false;
8474
8383
 
8475
8384
  EventListeners._proto = EventListeners.prototype; // To allow compression of prototype keyword
8476
8385
 
8477
- /* harmony default export */ var event_EventListeners = (EventListeners);
8386
+ /* harmony default export */ const event_EventListeners = (EventListeners);
8478
8387
 
8479
8388
 
8480
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/event/EventDispatcher.js
8389
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/event/EventDispatcher.js
8481
8390
 
8482
8391
 
8483
8392
  /** Abstract base class that provides event management methods for derived class
@@ -8614,10 +8523,10 @@ EventDispatcher_EventDispatcher.prototype._dispatch = function (type, eventArg)
8614
8523
 
8615
8524
  EventDispatcher_EventDispatcher._proto = EventDispatcher_EventDispatcher.prototype;
8616
8525
 
8617
- /* harmony default export */ var event_EventDispatcher = (EventDispatcher_EventDispatcher);
8526
+ /* harmony default export */ const event_EventDispatcher = (EventDispatcher_EventDispatcher);
8618
8527
 
8619
8528
 
8620
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataCache.js
8529
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataCache.js
8621
8530
 
8622
8531
 
8623
8532
 
@@ -9213,10 +9122,10 @@ DataCache.constructTable = function (dataset, opt_options, opt_rowIds) {
9213
9122
  };
9214
9123
 
9215
9124
 
9216
- /* harmony default export */ var data_DataCache = (DataCache);
9125
+ /* harmony default export */ const data_DataCache = (DataCache);
9217
9126
 
9218
9127
 
9219
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/Segment.js
9128
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/Segment.js
9220
9129
 
9221
9130
 
9222
9131
 
@@ -9229,6 +9138,9 @@ let Segment = function(rid, sharedObj) {
9229
9138
  this._rid = rid;
9230
9139
  this._children = {};
9231
9140
  this._shared = sharedObj;
9141
+ if(sharedObj.defaultCollapsing) {
9142
+ this._collapsed = true;
9143
+ }
9232
9144
  };
9233
9145
  es6_Ext.inherits(Segment, es6_EventDispatcher);
9234
9146
 
@@ -9343,9 +9255,12 @@ Segment.prototype.dispose = function() {
9343
9255
  this._subSegMap = this._subSegNames = null;
9344
9256
  }
9345
9257
  if(this._collapsed) {
9346
- this._shared.dirtyCollapsingState = true;
9258
+ if(this._childCount || this._subSegDef) {
9259
+ this._shared.dirtyCollapsingState = true;
9260
+ }
9347
9261
  }
9348
9262
 
9263
+ this._childCount = 0;
9349
9264
  this._shared = null;
9350
9265
  this._subSegParent = this._subSegDef = this._subSegVal = null;
9351
9266
  };
@@ -9846,7 +9761,9 @@ Segment.prototype.collapse = function(bool) {
9846
9761
  bool = (bool !== false);
9847
9762
  if(this._collapsed !== bool) {
9848
9763
  this._collapsed = bool;
9849
- this._shared.dirtyCollapsingState = true;
9764
+ if(this._childCount || this._subSegDef) {
9765
+ this._shared.dirtyCollapsingState = true;
9766
+ }
9850
9767
  return true;
9851
9768
  }
9852
9769
  return false;
@@ -9953,10 +9870,14 @@ Segment.prototype.setOrder = function(val) {
9953
9870
  */
9954
9871
  Segment._tabs = null;
9955
9872
  /** @public
9956
- * @param {Array.<string>} lines
9957
- * @return {Array.<string>} lines
9873
+ * @param {Array.<string>=} lines
9874
+ * @return {!Array.<string>} lines
9958
9875
  */
9959
9876
  Segment.prototype.log = function(lines) {
9877
+ if(!lines) {
9878
+ lines = [];
9879
+ }
9880
+
9960
9881
  let i;
9961
9882
  let tabs = Segment._tabs;
9962
9883
  if(!tabs) {
@@ -9988,10 +9909,10 @@ Segment.prototype.log = function(lines) {
9988
9909
  };
9989
9910
 
9990
9911
 
9991
- /* harmony default export */ var data_Segment = (Segment);
9912
+ /* harmony default export */ const data_Segment = (Segment);
9992
9913
 
9993
9914
 
9994
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/SegmentCollection.js
9915
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/SegmentCollection.js
9995
9916
 
9996
9917
 
9997
9918
 
@@ -10009,7 +9930,8 @@ let SegmentCollection = function() {
10009
9930
 
10010
9931
  this._shared = {
10011
9932
  childToSegment: {}, // child Id to segment Id
10012
- dirtyCollapsingState: false
9933
+ dirtyCollapsingState: false,
9934
+ defaultCollapsing: false
10013
9935
  };
10014
9936
  };
10015
9937
  es6_Ext.inherits(SegmentCollection, es6_EventDispatcher);
@@ -10208,19 +10130,17 @@ SegmentCollection.prototype.getSegmentIds = function() {
10208
10130
  * @return {boolean} Returns true if there is any change. Otherwise, returns false
10209
10131
  */
10210
10132
  SegmentCollection.prototype.collapseSegments = function(segmentIds, bool) {
10133
+ let dirty = 0;
10211
10134
  if(this._segmentCount) {
10212
- let dirty = 0;
10213
10135
  let len = segmentIds.length;
10214
10136
  for (let i = 0; i < len; i++) {
10215
- let rowId = segmentIds[i];
10216
- dirty |= this._segments[rowId].collapse(bool);
10217
-
10218
- }
10219
- if(dirty) {
10220
- return true;
10137
+ let segment = this._segments[segmentIds[i]];
10138
+ if(segment) {
10139
+ dirty |= segment.collapse(bool);
10140
+ }
10221
10141
  }
10222
10142
  }
10223
- return false;
10143
+ return dirty ? true : false;
10224
10144
  };
10225
10145
 
10226
10146
  /** @public
@@ -10541,7 +10461,6 @@ SegmentCollection.prototype.logRowIdMap = function() {
10541
10461
  return lines.join("\n");
10542
10462
  };
10543
10463
 
10544
-
10545
10464
  /** @public
10546
10465
  * @param {string} segmentId
10547
10466
  * @param {string|Array.<string>} fields
@@ -10632,11 +10551,24 @@ SegmentCollection.prototype._onSubSegmentRemoved = function(e) {
10632
10551
  this.removeSegment(rid);
10633
10552
  };
10634
10553
 
10554
+ /** @public
10555
+ * @param {boolean} bool
10556
+ * @return {boolean}
10557
+ */
10558
+ SegmentCollection.prototype.setDefaultCollapsing = function(bool) {
10559
+ let newVal = bool ? true : false;
10560
+ if(this._shared.defaultCollapsing !== newVal) {
10561
+ this._shared.defaultCollapsing = newVal;
10562
+ return true;
10563
+ }
10564
+ return false;
10565
+ };
10635
10566
 
10636
- /* harmony default export */ var data_SegmentCollection = (SegmentCollection);
10637
10567
 
10568
+ /* harmony default export */ const data_SegmentCollection = (SegmentCollection);
10638
10569
 
10639
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataTable.js
10570
+
10571
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataTable.js
10640
10572
 
10641
10573
 
10642
10574
 
@@ -10730,6 +10662,10 @@ DataTable.prototype._clsSource = null;
10730
10662
  * @type {number}
10731
10663
  */
10732
10664
  DataTable.prototype._classifyingTimer = 0;
10665
+ /** @private
10666
+ * @type {boolean}
10667
+ */
10668
+ DataTable.prototype._segmentDefaultCollapsing = false;
10733
10669
 
10734
10670
 
10735
10671
  /** @typedef {Function} DataTable~SortLogic
@@ -11642,6 +11578,15 @@ DataTable.prototype.isFrozen = function() {
11642
11578
  return this._frozen;
11643
11579
  };
11644
11580
 
11581
+ /** @private
11582
+ */
11583
+ DataTable.prototype._initSegmentCollection = function() {
11584
+ if (!this._segments) {
11585
+ this._segments = new data_SegmentCollection();
11586
+ this._segments.setDefaultCollapsing(this._segmentDefaultCollapsing);
11587
+ this._segments.addEventListener("subSegmentChanged", this._onSubSegmentChanged);
11588
+ }
11589
+ };
11645
11590
  /**
11646
11591
  * @public
11647
11592
  * @param {Array.<string>} rids
@@ -11656,10 +11601,7 @@ DataTable.prototype.setSegmentSeparators = function(rids, enabled) {
11656
11601
  for (let i = 0; i < len; i++) {
11657
11602
  if(enabled !== false) {
11658
11603
  let rid = rids[i];
11659
- if (!this._segments) {
11660
- this._segments = new data_SegmentCollection();
11661
- this._segments.addEventListener("subSegmentChanged", this._onSubSegmentChanged);
11662
- }
11604
+ this._initSegmentCollection();
11663
11605
  if(this._autoSegmentFilling) {
11664
11606
  let parentId = this._segments.getParentRowId(rid);
11665
11607
  if(parentId) {
@@ -11703,10 +11645,7 @@ DataTable.prototype.setSegmentSeparator = function(rid, enabled) {
11703
11645
  let memberCount = 0;
11704
11646
  if(rid && typeof rid === "string") {
11705
11647
  if(enabled !== false) {
11706
- if(!this._segments) {
11707
- this._segments = new data_SegmentCollection();
11708
- this._segments.addEventListener("subSegmentChanged", this._onSubSegmentChanged);
11709
- }
11648
+ this._initSegmentCollection();
11710
11649
  if(this._autoSegmentFilling) {
11711
11650
  let parentId = this._segments.getParentRowId(rid);
11712
11651
  if(parentId) {
@@ -11770,6 +11709,13 @@ DataTable.prototype.hasSegmentation = function() {
11770
11709
  };
11771
11710
  /**
11772
11711
  * @public
11712
+ * @return {boolean}
11713
+ */
11714
+ DataTable.prototype.hasSegmentClassification = function() {
11715
+ return this._segments ? this._segments.hasClassification() : false;
11716
+ };
11717
+ /**
11718
+ * @public
11773
11719
  * @param {string} rid
11774
11720
  * @return {boolean}
11775
11721
  */
@@ -12266,6 +12212,22 @@ DataTable.prototype._onSubSegmentChanged = function(e) {
12266
12212
  }
12267
12213
  };
12268
12214
 
12215
+ /**
12216
+ * @public
12217
+ * @param {boolean} bool
12218
+ * @return {boolean}
12219
+ */
12220
+ DataTable.prototype.setSegmentDefaultCollapsing = function(bool) {
12221
+ if(this._segmentDefaultCollapsing !== bool) {
12222
+ this._segmentDefaultCollapsing = bool;
12223
+ if(this._segments) {
12224
+ this._segments.setDefaultCollapsing(bool);
12225
+ }
12226
+ return true;
12227
+ }
12228
+ return false;
12229
+ };
12230
+
12269
12231
 
12270
12232
  /**
12271
12233
  * @public
@@ -12799,10 +12761,10 @@ DataTable._getSortOrder = function(sortOrder) {
12799
12761
 
12800
12762
  DataTable._proto = DataTable.prototype;
12801
12763
 
12802
- /* harmony default export */ var data_DataTable = (DataTable);
12764
+ /* harmony default export */ const data_DataTable = (DataTable);
12803
12765
 
12804
12766
 
12805
- // CONCATENATED MODULE: ./src/js/RowDefinition.js
12767
+ ;// CONCATENATED MODULE: ./src/js/RowDefinition.js
12806
12768
 
12807
12769
  /* eslint-disable */
12808
12770
 
@@ -13408,20 +13370,28 @@ RowDefinition.prototype.getType = function() {
13408
13370
  * @public
13409
13371
  * @param {DataCache} dataSource
13410
13372
  * @param {Object=} subs Quotes2 subscription object
13373
+ * @return {boolean} Returns true if there is an data update
13411
13374
  */
13412
13375
  RowDefinition.prototype.setDataSource = function(dataSource, subs) {
13413
13376
  this._dc = dataSource || null;
13414
-
13377
+ let dataUpdated = false;
13415
13378
  if(this._dc) {
13416
- this.setRowData({}); // Trigger data change
13417
13379
  if(this._staticValues) {
13418
- this.setRowData(this._staticValues); // Trigger dataComposed and add updates
13380
+ let rowData = _cloneObject(this._staticValues);
13381
+ dataUpdated = this.addUpdate(rowData);
13382
+ this._dc.setRowData(this._rowId, rowData, {
13383
+ "rowDef": this, // The _onDataChanged and _onDataComposed handlers cannot get rowDef from DT because row does not register to view yet.
13384
+ "initialChanges": this.getUpdates() // Used by _onDataComposed to keep backward compatibility.
13385
+ }); // Trigger dataComposed and add updates
13386
+ } else {
13387
+ this._dc.setRowData(this._rowId, {});
13419
13388
  }
13420
13389
  }
13421
13390
 
13422
13391
  this._subs = subs || null;
13423
13392
  // This will work for runtime row insertion, but not for first initilization.
13424
13393
  this.subscribeForUpdates();
13394
+ return dataUpdated;
13425
13395
  };
13426
13396
  /** @public
13427
13397
  * @return {DataCache} dataSource
@@ -14272,9 +14242,9 @@ RowDefinition.dispose = function(rowDef) {
14272
14242
  };
14273
14243
 
14274
14244
 
14275
- /* harmony default export */ var js_RowDefinition = (RowDefinition);
14245
+ /* harmony default export */ const js_RowDefinition = ((/* unused pure expression or super */ null && (RowDefinition)));
14276
14246
 
14277
- // CONCATENATED MODULE: ./src/js/FieldDefinition.js
14247
+ ;// CONCATENATED MODULE: ./src/js/FieldDefinition.js
14278
14248
  // TODO: Merge this with Fields in mobile-mon repository
14279
14249
  /* eslint-disable */
14280
14250
 
@@ -14834,9 +14804,9 @@ function onLoadEnd(e) {
14834
14804
  })();
14835
14805
 
14836
14806
 
14837
- /* harmony default export */ var js_FieldDefinition = (FieldDefinition);
14807
+ /* harmony default export */ const js_FieldDefinition = (FieldDefinition);
14838
14808
 
14839
- // CONCATENATED MODULE: ./src/js/PredefinedFormula.js
14809
+ ;// CONCATENATED MODULE: ./src/js/PredefinedFormula.js
14840
14810
 
14841
14811
  /* @constructor */
14842
14812
  let PredefinedFormula = {};
@@ -14869,9 +14839,9 @@ PredefinedFormula.remove = function(field) {
14869
14839
  };
14870
14840
 
14871
14841
 
14872
- /* harmony default export */ var js_PredefinedFormula = (PredefinedFormula);
14842
+ /* harmony default export */ const js_PredefinedFormula = (PredefinedFormula);
14873
14843
 
14874
- // CONCATENATED MODULE: ./src/js/ColumnDefinition.js
14844
+ ;// CONCATENATED MODULE: ./src/js/ColumnDefinition.js
14875
14845
  /* eslint-disable */
14876
14846
 
14877
14847
 
@@ -16074,9 +16044,9 @@ ColumnDefinition.prototype.setBackgroundColor = function(color) {
16074
16044
  };
16075
16045
 
16076
16046
 
16077
- /* harmony default export */ var js_ColumnDefinition = (ColumnDefinition);
16047
+ /* harmony default export */ const js_ColumnDefinition = (ColumnDefinition);
16078
16048
 
16079
- // CONCATENATED MODULE: ./src/js/SnapshotFiller.js
16049
+ ;// CONCATENATED MODULE: ./src/js/SnapshotFiller.js
16080
16050
  /* eslint-disable */
16081
16051
 
16082
16052
 
@@ -16613,9 +16583,9 @@ SnapshotFiller.prototype._onRTKTimeSeriesSuccess = function (fields, serverResul
16613
16583
  };
16614
16584
 
16615
16585
 
16616
- /* harmony default export */ var js_SnapshotFiller = (SnapshotFiller);
16586
+ /* harmony default export */ const js_SnapshotFiller = (SnapshotFiller);
16617
16587
 
16618
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/GroupDefinitions.js
16588
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/GroupDefinitions.js
16619
16589
 
16620
16590
 
16621
16591
  /** @constructor
@@ -17256,10 +17226,10 @@ GroupDefinitions.prototype.setGroupName = function (groupId, groupName) {
17256
17226
  return false;
17257
17227
  };
17258
17228
 
17259
- /* harmony default export */ var es6_GroupDefinitions = (GroupDefinitions);
17229
+ /* harmony default export */ const es6_GroupDefinitions = ((/* unused pure expression or super */ null && (GroupDefinitions)));
17260
17230
 
17261
17231
 
17262
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/ElementWrapper.js
17232
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/ElementWrapper.js
17263
17233
 
17264
17234
 
17265
17235
 
@@ -17698,12 +17668,16 @@ ElementWrapper.prototype.getClass = function () { return this._element.className
17698
17668
  */
17699
17669
  ElementWrapper.prototype.setClass = function (str) { this._element.className = str; };
17700
17670
 
17701
- /**
17702
- * @public
17671
+ /** @public
17703
17672
  * @param {string} str
17704
17673
  * @return {string}
17705
17674
  */
17706
17675
  ElementWrapper.prototype.getAttribute = function (str) { return this._element.getAttribute(str); };
17676
+ /** @public
17677
+ * @param {string} str
17678
+ * @return {boolean}
17679
+ */
17680
+ ElementWrapper.prototype.hasAttribute = function (str) { return this._element.hasAttribute(str); };
17707
17681
  /** Sets attribute to DOM element
17708
17682
  * @public
17709
17683
  * @param {string} str
@@ -17972,10 +17946,10 @@ ElementWrapper.prototype.isEndOfVerticalScroll = function () { return this._elem
17972
17946
 
17973
17947
  ElementWrapper._proto = ElementWrapper.prototype;
17974
17948
 
17975
- /* harmony default export */ var components_ElementWrapper = (ElementWrapper);
17949
+ /* harmony default export */ const components_ElementWrapper = (ElementWrapper);
17976
17950
 
17977
17951
 
17978
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellFloatingPanel.js
17952
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellFloatingPanel.js
17979
17953
  /* eslint-disable */
17980
17954
 
17981
17955
 
@@ -18104,10 +18078,10 @@ CellFloatingPanel.prototype._updatePanelItems = function() {
18104
18078
  }
18105
18079
  };
18106
18080
 
18107
- /* harmony default export */ var components_CellFloatingPanel = (CellFloatingPanel);
18081
+ /* harmony default export */ const components_CellFloatingPanel = (CellFloatingPanel);
18108
18082
 
18109
18083
 
18110
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Cell.js
18084
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Cell.js
18111
18085
  /* eslint-disable */
18112
18086
 
18113
18087
 
@@ -18849,11 +18823,17 @@ Cell.prototype.updateTooltip = function() {
18849
18823
  }
18850
18824
 
18851
18825
  if(customizedTooltip) {
18852
- if(this.getAttribute("title") !== customizedTooltip) {
18826
+ let curTooltip = this.hasAttribute("tooltip") ? this.getAttribute("tooltip") : this.getAttribute("title");
18827
+ if(curTooltip !== customizedTooltip) {
18853
18828
  this.setAttribute("title", customizedTooltip);
18854
18829
  }
18855
- } else if(this.getAttribute("title") != null) {
18856
- this.removeAttribute("title");
18830
+ } else {
18831
+ if(this.hasAttribute("title")) {
18832
+ this.removeAttribute("title");
18833
+ }
18834
+ if(this.hasAttribute("tooltip")) {
18835
+ this.removeAttribute("tooltip");
18836
+ }
18857
18837
  }
18858
18838
  };
18859
18839
  /** @public
@@ -18926,10 +18906,10 @@ Cell.prototype._updateDisplay = function () {
18926
18906
 
18927
18907
  Cell._proto = Cell.prototype;
18928
18908
 
18929
- /* harmony default export */ var components_Cell = (Cell);
18909
+ /* harmony default export */ const components_Cell = (Cell);
18930
18910
 
18931
18911
 
18932
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/TrackLayout.js
18912
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/TrackLayout.js
18933
18913
 
18934
18914
 
18935
18915
  /** TrackLayout is like a running track in a football field which contains multiple lanes.
@@ -19830,10 +19810,10 @@ TrackLayout.prototype.copyFrom = function (src, offset) {
19830
19810
  }
19831
19811
  };
19832
19812
 
19833
- /* harmony default export */ var util_TrackLayout = (TrackLayout);
19813
+ /* harmony default export */ const util_TrackLayout = (TrackLayout);
19834
19814
 
19835
19815
 
19836
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/ILayoutGrid.js
19816
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/ILayoutGrid.js
19837
19817
  /* eslint-disable */
19838
19818
 
19839
19819
 
@@ -20538,10 +20518,10 @@ ILayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx)
20538
20518
  */
20539
20519
  ILayoutGrid.prototype.updateColumnSeparators = function () {};
20540
20520
 
20541
- /* harmony default export */ var grid_ILayoutGrid = (ILayoutGrid);
20521
+ /* harmony default export */ const grid_ILayoutGrid = ((/* unused pure expression or super */ null && (ILayoutGrid)));
20542
20522
 
20543
20523
 
20544
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Column.js
20524
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Column.js
20545
20525
  /* eslint-disable */
20546
20526
 
20547
20527
 
@@ -21158,10 +21138,10 @@ Column.prototype.setScrollState = function (pane, slider, absolutePos) {
21158
21138
 
21159
21139
  Column._proto = Column.prototype;
21160
21140
 
21161
- /* harmony default export */ var components_Column = (Column);
21141
+ /* harmony default export */ const components_Column = (Column);
21162
21142
 
21163
21143
 
21164
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/VirtualItems.js
21144
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/VirtualItems.js
21165
21145
 
21166
21146
 
21167
21147
  /** @constructor
@@ -21211,10 +21191,10 @@ VirtualItems.prototype.moveItemsToTop = function (numItems) {
21211
21191
  this._items = util.cycleArray(this._items, numItems);
21212
21192
  };
21213
21193
 
21214
- /* harmony default export */ var components_VirtualItems = (VirtualItems);
21194
+ /* harmony default export */ const components_VirtualItems = (VirtualItems);
21215
21195
 
21216
21196
 
21217
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/StretchedCells.js
21197
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/StretchedCells.js
21218
21198
 
21219
21199
  // eslint-disable-line
21220
21200
  // eslint-disable-line
@@ -21555,10 +21535,10 @@ StretchedCells.prototype.moveCellsToTop = function (numCells) {
21555
21535
  }
21556
21536
  };
21557
21537
 
21558
- /* harmony default export */ var components_StretchedCells = (StretchedCells);
21538
+ /* harmony default export */ const components_StretchedCells = (StretchedCells);
21559
21539
 
21560
21540
 
21561
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellSpan.js
21541
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellSpan.js
21562
21542
 
21563
21543
  /** @constructor
21564
21544
  * @param {number} x
@@ -21656,10 +21636,10 @@ CellSpan.prototype.prevRowSpan = 1;
21656
21636
  */
21657
21637
  CellSpan.prototype.retVal = 0;
21658
21638
 
21659
- /* harmony default export */ var components_CellSpan = (CellSpan);
21639
+ /* harmony default export */ const components_CellSpan = (CellSpan);
21660
21640
 
21661
21641
 
21662
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellSpans.js
21642
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/CellSpans.js
21663
21643
 
21664
21644
 
21665
21645
  /** @constructor */
@@ -22025,11 +22005,11 @@ CellSpans.prototype._occupiedMap;
22025
22005
  */
22026
22006
  CellSpans.prototype._frozenMapping = false;
22027
22007
 
22028
- /* harmony default export */ var components_CellSpans = (CellSpans);
22008
+ /* harmony default export */ const components_CellSpans = (CellSpans);
22029
22009
 
22030
22010
 
22031
22011
 
22032
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/SelectionList.js
22012
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/SelectionList.js
22033
22013
 
22034
22014
  /** @constructor
22035
22015
  * @ignore
@@ -22519,10 +22499,10 @@ SelectionList.prototype._firstIndex = -1;
22519
22499
  SelectionList.prototype._lastIndex = -1;
22520
22500
  //#endregion
22521
22501
 
22522
- /* harmony default export */ var util_SelectionList = (SelectionList);
22502
+ /* harmony default export */ const util_SelectionList = (SelectionList);
22523
22503
 
22524
22504
 
22525
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Reverter.js
22505
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Reverter.js
22526
22506
 
22527
22507
  /** @description Reverter is used executed the given method after the specified delay. If Reverter is activated the second time within the delay, the delay time will be extended.
22528
22508
  * @constructor
@@ -22600,10 +22580,10 @@ Reverter.prototype._onInterval = function () {
22600
22580
 
22601
22581
  Reverter._proto = Reverter.prototype;
22602
22582
 
22603
- /* harmony default export */ var util_Reverter = (Reverter);
22583
+ /* harmony default export */ const util_Reverter = (Reverter);
22604
22584
 
22605
22585
 
22606
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Scrollbar.js
22586
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/Scrollbar.js
22607
22587
  /* eslint-disable */
22608
22588
 
22609
22589
 
@@ -24015,10 +23995,10 @@ Scrollbar.prototype.restoreTrackPosition = function () {
24015
23995
 
24016
23996
  Scrollbar._proto = Scrollbar.prototype;
24017
23997
 
24018
- /* harmony default export */ var components_Scrollbar = (Scrollbar);
23998
+ /* harmony default export */ const components_Scrollbar = (Scrollbar);
24019
23999
 
24020
24000
 
24021
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/HScrollbar.js
24001
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/HScrollbar.js
24022
24002
  /* eslint-disable */
24023
24003
 
24024
24004
 
@@ -24258,10 +24238,10 @@ HScrollbar.prototype._updateActivation = function (bool) {
24258
24238
 
24259
24239
  HScrollbar._proto = HScrollbar.prototype;
24260
24240
 
24261
- /* harmony default export */ var components_HScrollbar = (HScrollbar);
24241
+ /* harmony default export */ const components_HScrollbar = (HScrollbar);
24262
24242
 
24263
24243
 
24264
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/CellBoundPainter.js
24244
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/CellBoundPainter.js
24265
24245
  /** @private
24266
24246
  * @function
24267
24247
  * @param {number} idx
@@ -24431,10 +24411,10 @@ CellBoundPainter.prototype.updateCellBounds = function() {
24431
24411
 
24432
24412
  CellBoundPainter._proto = CellBoundPainter.prototype;
24433
24413
 
24434
- /* harmony default export */ var util_CellBoundPainter = (CellBoundPainter);
24414
+ /* harmony default export */ const util_CellBoundPainter = (CellBoundPainter);
24435
24415
 
24436
24416
 
24437
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/LayoutGrid.js
24417
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/LayoutGrid.js
24438
24418
  /* eslint-disable */
24439
24419
 
24440
24420
 
@@ -24699,10 +24679,6 @@ LayoutGrid.prototype._colBounds = null;
24699
24679
  * @private
24700
24680
  */
24701
24681
  LayoutGrid.prototype._colBoundCache = null;
24702
- /** @type {boolean}
24703
- * @private
24704
- */
24705
- LayoutGrid.prototype._colSelDirty = false;
24706
24682
  /** @type {HScrollbar}
24707
24683
  * @private
24708
24684
  */
@@ -24737,7 +24713,6 @@ LayoutGrid.prototype.dispose = function () {
24737
24713
 
24738
24714
  this._colCount = this._rowCount = this._activeRowEnd = this._availableRowCount = 0;
24739
24715
  this._colBounds = this._colBoundCache = null;
24740
- this._colSelDirty = false;
24741
24716
 
24742
24717
  this._highlightedCells.length = 0;
24743
24718
  this._ctx = null;
@@ -26448,7 +26423,7 @@ LayoutGrid.prototype._calculateViewSize = function (forceRecal) {
26448
26423
  if(!stretchSize && ctx) {
26449
26424
  if(ctx["getWidth"]) {
26450
26425
  let contentWidth = this.getContentWidth();
26451
- stretchSize = ctx["getWidth"]();
26426
+ stretchSize = ctx["getWidth"]() - this._rightSpaceSize;
26452
26427
  if(stretchSize) { // Grid may not be in the document
26453
26428
  if(contentWidth < stretchSize) { // If view width is larger than actual content
26454
26429
  stretchSize = contentWidth;
@@ -26684,8 +26659,6 @@ LayoutGrid.prototype.selectColumn = function (colIndex, selected) {
26684
26659
  this.enableColumnClass(colIndex, "selected-column", selected);
26685
26660
 
26686
26661
  if(selected) {
26687
- this._colSelDirty = true;
26688
-
26689
26662
  let boundLayer = this._boundLayer;
26690
26663
  if(!boundLayer) {
26691
26664
  this._initBoundLayer();
@@ -26813,10 +26786,6 @@ LayoutGrid.prototype.calculateColumnBounds = function (lftIdx, rgtIdx, outPositi
26813
26786
  * @param {number=} topPx Top position of bound
26814
26787
  */
26815
26788
  LayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx) {
26816
- if(!this._colSelDirty) {
26817
- return;
26818
- }
26819
-
26820
26789
  let cbs = this._colBounds;
26821
26790
  let cbc = this._colBoundCache;
26822
26791
  if(!cbs) {
@@ -26843,7 +26812,6 @@ LayoutGrid.prototype.updateColumnBounds = function (posAry, noBorderAry, topPx)
26843
26812
  cbs.length = activeCount = rangeCount;
26844
26813
 
26845
26814
  if(!rangeCount) {
26846
- this._colSelDirty = false;
26847
26815
  return;
26848
26816
  }
26849
26817
 
@@ -26930,7 +26898,7 @@ LayoutGrid.prototype.updateColumnSeparators = function () {
26930
26898
  let colWidth = this._trackX.getLaneEnd(colCount - 1) - this._trackX.getLaneStart(colCount - pinnedRightCount);
26931
26899
  let viewSize = this._getViewSize();
26932
26900
 
26933
- colSeparator.style.left = (viewSize - colWidth - this._rightSpaceSize) + "px";
26901
+ colSeparator.style.left = (viewSize - colWidth) + "px";
26934
26902
  colSeparator.style.height = this._trackY.getTrackSize() + "px";
26935
26903
  } else {
26936
26904
  if (colSeparator && colSeparator.parentNode) {
@@ -27328,6 +27296,20 @@ LayoutGrid.prototype._onMouseOut = function (e) {
27328
27296
  this.setRowHighlight(-1);
27329
27297
  };
27330
27298
 
27299
+
27300
+ /** @public
27301
+ * @ignore
27302
+ * @return {!Object}
27303
+ */
27304
+ LayoutGrid.prototype._getEventHandlers = function () {
27305
+ return {
27306
+ "mouseout": this._onMouseOut,
27307
+ "mousemove": this._onMouseMove
27308
+ };
27309
+ };
27310
+
27311
+
27312
+
27331
27313
  /**
27332
27314
  * @private
27333
27315
  * @param {number} rowIndex
@@ -27406,10 +27388,10 @@ LayoutGrid.prototype._onResetTransformIE = function () {
27406
27388
 
27407
27389
  LayoutGrid._proto = LayoutGrid.prototype;
27408
27390
 
27409
- /* harmony default export */ var grid_LayoutGrid = (LayoutGrid);
27391
+ /* harmony default export */ const grid_LayoutGrid = (LayoutGrid);
27410
27392
 
27411
27393
 
27412
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/ColumnStats.js
27394
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/ColumnStats.js
27413
27395
 
27414
27396
  /** @constructor
27415
27397
  * @param {*=} source
@@ -27836,10 +27818,10 @@ ColumnStats.prototype._colDataGetter = null;
27836
27818
  ColumnStats.prototype._refs;
27837
27819
  //#endregion Private
27838
27820
 
27839
- /* harmony default export */ var data_ColumnStats = (ColumnStats);
27821
+ /* harmony default export */ const data_ColumnStats = (ColumnStats);
27840
27822
 
27841
27823
 
27842
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/WrappedView.js
27824
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/WrappedView.js
27843
27825
 
27844
27826
 
27845
27827
  // eslint-disable-line
@@ -29158,10 +29140,10 @@ WrappedView.prototype.isRowFiltered = function(rid, rowData) {
29158
29140
  return this._dv.isRowFiltered(rid, rowData);
29159
29141
  };
29160
29142
 
29161
- /* harmony default export */ var data_WrappedView = (WrappedView);
29143
+ /* harmony default export */ const data_WrappedView = (WrappedView);
29162
29144
 
29163
29145
 
29164
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataView.js
29146
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/data/DataView.js
29165
29147
 
29166
29148
 
29167
29149
 
@@ -31910,6 +31892,14 @@ DataView.prototype.enableSeparatorFiltering = function (enabled) {
31910
31892
  DataView.prototype.setSegmentClassification = function(segmentRef, fields) {
31911
31893
  return this._dt.setSegmentClassification(this._toRowId(segmentRef), fields);
31912
31894
  };
31895
+ /**
31896
+ * @public
31897
+ * @param {boolean} bool
31898
+ * @return {boolean}
31899
+ */
31900
+ DataView.prototype.setSegmentDefaultCollapsing = function(bool) {
31901
+ return this._dt.setSegmentDefaultCollapsing(bool);
31902
+ };
31913
31903
 
31914
31904
  /** @public
31915
31905
  * @ignore
@@ -33284,10 +33274,10 @@ DataView._defaultGroupSortingLogic = function(strA, strB) {
33284
33274
  };
33285
33275
 
33286
33276
 
33287
- /* harmony default export */ var data_DataView = (DataView);
33277
+ /* harmony default export */ const data_DataView = (DataView);
33288
33278
 
33289
33279
 
33290
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Conflator.js
33280
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Conflator.js
33291
33281
 
33292
33282
  /** @description Conflator is used to stop multiple executions of a function in the specified period of time by merging multiple calls into one single call.
33293
33283
  * Conflator guarantees that only one single call will be executed.
@@ -33477,10 +33467,10 @@ Conflator_Conflator.prototype.enable = function (opt_enabled) {
33477
33467
 
33478
33468
  Conflator_Conflator._proto = Conflator_Conflator.prototype;
33479
33469
 
33480
- /* harmony default export */ var util_Conflator = (Conflator_Conflator);
33470
+ /* harmony default export */ const util_Conflator = (Conflator_Conflator);
33481
33471
 
33482
33472
 
33483
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/SectionSettings.js
33473
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/SectionSettings.js
33484
33474
  /* eslint-disable */
33485
33475
 
33486
33476
 
@@ -34158,10 +34148,10 @@ SectionSettings.prototype._calculateChangeIndices = function () {
34158
34148
 
34159
34149
  SectionSettings._proto = SectionSettings.prototype;
34160
34150
 
34161
- /* harmony default export */ var util_SectionSettings = (SectionSettings);
34151
+ /* harmony default export */ const util_SectionSettings = (SectionSettings);
34162
34152
 
34163
34153
 
34164
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Virtualizer.js
34154
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/util/Virtualizer.js
34165
34155
 
34166
34156
 
34167
34157
  // eslint-disable-line
@@ -34500,10 +34490,10 @@ Virtualizer.prototype.validateVirtualization = function () {
34500
34490
 
34501
34491
  Virtualizer._proto = Virtualizer.prototype;
34502
34492
 
34503
- /* harmony default export */ var util_Virtualizer = (Virtualizer);
34493
+ /* harmony default export */ const util_Virtualizer = (Virtualizer);
34504
34494
 
34505
34495
 
34506
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/VScrollbar.js
34496
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/components/VScrollbar.js
34507
34497
  /* eslint-disable */
34508
34498
 
34509
34499
 
@@ -34641,10 +34631,10 @@ VScrollbar.prototype._onScroll = function (e) {
34641
34631
 
34642
34632
  VScrollbar._proto = VScrollbar.prototype;
34643
34633
 
34644
- /* harmony default export */ var components_VScrollbar = (VScrollbar);
34634
+ /* harmony default export */ const components_VScrollbar = (VScrollbar);
34645
34635
 
34646
34636
 
34647
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/VirtualizedLayoutGrid.js
34637
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/VirtualizedLayoutGrid.js
34648
34638
  /* eslint-disable */
34649
34639
 
34650
34640
 
@@ -35889,10 +35879,10 @@ VirtualizedLayoutGrid.prototype._getContext = function () {
35889
35879
 
35890
35880
  VirtualizedLayoutGrid._proto = VirtualizedLayoutGrid.prototype;
35891
35881
 
35892
- /* harmony default export */ var grid_VirtualizedLayoutGrid = (VirtualizedLayoutGrid);
35882
+ /* harmony default export */ const grid_VirtualizedLayoutGrid = (VirtualizedLayoutGrid);
35893
35883
 
35894
35884
 
35895
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/Core.js
35885
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/Core.js
35896
35886
 
35897
35887
  // eslint-disable-line
35898
35888
 
@@ -36516,7 +36506,7 @@ Core.prototype._hasPendingRowChange = false;
36516
36506
  * @return {string}
36517
36507
  */
36518
36508
  Core.getVersion = function () {
36519
- return "5.1.129";
36509
+ return "5.1.135";
36520
36510
  };
36521
36511
  /** {@link ElementWrapper#dispose}
36522
36512
  * @override
@@ -37963,7 +37953,7 @@ Core.prototype._deserializeColumn = function (index, jsonObj) {
37963
37953
  this.setColumnData(index, value);
37964
37954
  }
37965
37955
 
37966
- let formatter = jsonObj["formatter"] || jsonObj["binding"]; // support both composite and real-time grid
37956
+ let formatter = jsonObj["binding"] || jsonObj["formatter"]; // support both composite and real-time grid, binding have piority first
37967
37957
  if(Array.isArray(formatter)) {
37968
37958
  formatter = formatter[0]; // Support only one formatter in the array
37969
37959
  }
@@ -38247,21 +38237,45 @@ Core.prototype.setColumnBackgroundColor = function(colIndex, color) {
38247
38237
  }
38248
38238
 
38249
38239
  if(settings.getType() !== "content") {
38250
- let rowCount = section.getRowCount();
38251
- for(let r = 0; r < rowCount; r++) {
38252
- let cellSpan = section.getCellColSpan(colIndex, r);
38253
- if(cellSpan > 1) { continue; }
38254
- let cell = section.getCell(colIndex, r);
38255
- if(cell) {
38256
- cell.setStyle("backgroundColor", color);
38257
- }
38258
- }
38240
+ this._applyCellsBackgroundColor(section, colIndex, color);
38259
38241
  } else {
38260
38242
  let column = section.getColumn(colIndex);
38261
38243
  column.setStyle("backgroundColor", color);
38262
38244
  }
38263
38245
  }
38264
38246
  };
38247
+ /** @private
38248
+ * @param {ILayoutGrid} section
38249
+ * @param {number} colIndex
38250
+ * @param {string} color
38251
+ */
38252
+ Core.prototype._applyCellsBackgroundColor = function(section, colIndex, color) {
38253
+ let rowCount = section.getRowCount();
38254
+ for(let r = 0; r < rowCount; r++) {
38255
+ let cellSpan = section.getCellColSpan(colIndex, r);
38256
+ if(cellSpan > 1) { continue; }
38257
+ let cell = section.getCell(colIndex, r);
38258
+ if(cell) {
38259
+ cell.setStyle("backgroundColor", color);
38260
+ }
38261
+ }
38262
+ };
38263
+ /** @public
38264
+ * @ignore
38265
+ * @param {ILayoutGrid} section
38266
+ */
38267
+ Core.prototype.applyColumnsBackgroundColor = function(section) {
38268
+ if(!section) {
38269
+ return;
38270
+ }
38271
+
38272
+ let colCount = section.getColumnCount();
38273
+ for(let c = 0; c < colCount; c++) {
38274
+ let colDef = this._getColumnDef(c);
38275
+ let color = colDef["backgroundColor"] || "";
38276
+ this._applyCellsBackgroundColor(section, c, color);
38277
+ }
38278
+ };
38265
38279
 
38266
38280
  /** @public
38267
38281
  * @param {number} colIndex
@@ -41519,6 +41533,11 @@ Core.prototype._onRowCountChanged = function (e) {
41519
41533
 
41520
41534
  this._updateColumnSeparators();
41521
41535
  if(prevRowCount < newRowCount) {
41536
+ // Apply column background color
41537
+ let settings = this.getSectionSettings(section);
41538
+ if(settings.getType() !== "content") {
41539
+ this.applyColumnsBackgroundColor(section);
41540
+ }
41522
41541
  this._dispatch("rowAdded", e);
41523
41542
  } else if(prevRowCount > newRowCount) {
41524
41543
  this._dispatch("rowRemoved", e);
@@ -42052,10 +42071,10 @@ Core.prototype._updateVScrollbar = function() {
42052
42071
 
42053
42072
  Core._proto = Core.prototype;
42054
42073
 
42055
- /* harmony default export */ var grid_Core = (Core);
42074
+ /* harmony default export */ const grid_Core = ((/* unused pure expression or super */ null && (Core)));
42056
42075
 
42057
42076
 
42058
- // CONCATENATED MODULE: ./src/js/StyleLoader.js
42077
+ ;// CONCATENATED MODULE: ./src/js/StyleLoader.js
42059
42078
  /* eslint-disable */
42060
42079
 
42061
42080
 
@@ -42102,9 +42121,9 @@ StyleLoader.applyStyle = function (grid) {
42102
42121
  };
42103
42122
 
42104
42123
 
42105
- /* harmony default export */ var js_StyleLoader = (StyleLoader);
42124
+ /* harmony default export */ const js_StyleLoader = (StyleLoader);
42106
42125
 
42107
- // CONCATENATED MODULE: ./src/js/ReferenceCounter.js
42126
+ ;// CONCATENATED MODULE: ./src/js/ReferenceCounter.js
42108
42127
  /** @constructor
42109
42128
  */
42110
42129
  let ReferenceCounter = function() {
@@ -42355,9 +42374,9 @@ ReferenceCounter.prototype.log = function() {
42355
42374
 
42356
42375
 
42357
42376
 
42358
- /* harmony default export */ var js_ReferenceCounter = (ReferenceCounter);
42377
+ /* harmony default export */ const js_ReferenceCounter = (ReferenceCounter);
42359
42378
 
42360
- // CONCATENATED MODULE: ./src/js/DataConnector.js
42379
+ ;// CONCATENATED MODULE: ./src/js/DataConnector.js
42361
42380
 
42362
42381
 
42363
42382
 
@@ -42647,9 +42666,9 @@ DataConnector.prototype.reset = function () {
42647
42666
  };
42648
42667
 
42649
42668
 
42650
- /* harmony default export */ var js_DataConnector = (DataConnector);
42669
+ /* harmony default export */ const js_DataConnector = (DataConnector);
42651
42670
 
42652
- // CONCATENATED MODULE: ./src/js/RowDefSorter.js
42671
+ ;// CONCATENATED MODULE: ./src/js/RowDefSorter.js
42653
42672
 
42654
42673
 
42655
42674
  /** @private
@@ -42880,9 +42899,9 @@ RowDefSorter.prototype._multiColumnsSorter = function(rowDefA, rowDefB, primaryO
42880
42899
  return 0;
42881
42900
  };
42882
42901
 
42883
- /* harmony default export */ var js_RowDefSorter = (RowDefSorter);
42902
+ /* harmony default export */ const js_RowDefSorter = (RowDefSorter);
42884
42903
 
42885
- // CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/plugins/SortableTitlePlugin.js
42904
+ ;// CONCATENATED MODULE: ./node_modules/@grid/core/es6/grid/plugins/SortableTitlePlugin.js
42886
42905
  /* eslint-disable */
42887
42906
 
42888
42907
 
@@ -44827,10 +44846,10 @@ SortableTitlePlugin.prototype._isCellSortable = function (section, colIndex, row
44827
44846
 
44828
44847
  SortableTitlePlugin._proto = SortableTitlePlugin.prototype;
44829
44848
 
44830
- /* harmony default export */ var plugins_SortableTitlePlugin = (SortableTitlePlugin);
44849
+ /* harmony default export */ const plugins_SortableTitlePlugin = ((/* unused pure expression or super */ null && (SortableTitlePlugin)));
44831
44850
 
44832
44851
 
44833
- // CONCATENATED MODULE: ./src/js/Grid.js
44852
+ ;// CONCATENATED MODULE: ./src/js/Grid.js
44834
44853
  /* eslint-disable */
44835
44854
 
44836
44855
 
@@ -45145,7 +45164,7 @@ let _clearTimeout = function(id) {
45145
45164
  * @param {(Element|null)=} placeholder
45146
45165
  * @param {Grid~GridOptions=} config
45147
45166
  */
45148
- let Grid = function(placeholder, config) {
45167
+ let Grid_Grid = function(placeholder, config) {
45149
45168
  let t = this; // This is to primarily reduce file size
45150
45169
 
45151
45170
  t._onDataChanged = t._onDataChanged.bind(t);
@@ -45281,179 +45300,183 @@ let Grid = function(placeholder, config) {
45281
45300
 
45282
45301
  js_StyleLoader.applyStyle(t._grid);
45283
45302
  };
45284
- Ext.inherits(Grid, EventDispatcher);
45303
+ Ext.inherits(Grid_Grid, EventDispatcher);
45285
45304
 
45286
45305
  /** @private
45287
45306
  * @type {Element}
45288
45307
  */
45289
- Grid.prototype._topNode = null;
45308
+ Grid_Grid.prototype._topNode = null;
45290
45309
  /** @private
45291
45310
  * @type {Grid}
45292
45311
  */
45293
- Grid.prototype._mainGrid = null;
45312
+ Grid_Grid.prototype._mainGrid = null;
45294
45313
  /** @private
45295
45314
  * @type {Core}
45296
45315
  */
45297
- Grid.prototype._grid = null;
45316
+ Grid_Grid.prototype._grid = null;
45298
45317
  /** Store all actual data including streaming data, ADC data, snapshot data, user input data.
45299
45318
  * @type {DataCache}
45300
45319
  * @private
45301
45320
  */
45302
- Grid.prototype._dc = null;
45321
+ Grid_Grid.prototype._dc = null;
45303
45322
  /** Used for hiding and filtering out rows. Always have greater or equal number of rows than that in grid
45304
45323
  * @type {DataTable}
45305
45324
  * @private
45306
45325
  */
45307
- Grid.prototype._dt = null;
45326
+ Grid_Grid.prototype._dt = null;
45308
45327
  /** Used for sorting. Number of rows is always the same as that in grid
45309
45328
  * @type {DataView}
45310
45329
  * @private
45311
45330
  */
45312
- Grid.prototype._dv = null;
45331
+ Grid_Grid.prototype._dv = null;
45313
45332
  /** @type {boolean}
45314
45333
  * @private
45315
45334
  */
45316
- Grid.prototype._sharedDataSource = false;
45335
+ Grid_Grid.prototype._sharedDataSource = false;
45317
45336
  /** @type {boolean}
45318
45337
  * @private
45319
45338
  */
45320
- Grid.prototype._sharedSorter = false;
45339
+ Grid_Grid.prototype._sharedSorter = false;
45321
45340
 
45322
45341
  /** JET/RTK's Quotes2 subscription object
45323
45342
  * @type {Object}
45324
45343
  * @private
45325
45344
  */
45326
- Grid.prototype._subs = null;
45345
+ Grid_Grid.prototype._subs = null;
45327
45346
 
45328
45347
  /** @type {SortableTitlePlugin}
45329
45348
  * @private
45330
45349
  */
45331
- Grid.prototype._stp = null;
45350
+ Grid_Grid.prototype._stp = null;
45332
45351
  /** @type {Function}
45333
45352
  * @private
45334
45353
  */
45335
- Grid.prototype._columnSorter = null;
45354
+ Grid_Grid.prototype._columnSorter = null;
45336
45355
 
45337
45356
  /** @private
45338
45357
  * @type {Conflator}
45339
45358
  */
45340
- Grid.prototype._dcConflator = null;
45359
+ Grid_Grid.prototype._dcConflator = null;
45341
45360
  /** @private
45342
45361
  * @type {SnapshotFiller}
45343
45362
  */
45344
- Grid.prototype._snapshot = null;
45363
+ Grid_Grid.prototype._snapshot = null;
45345
45364
  /** @private
45346
45365
  * @type {DataConnector}
45347
45366
  */
45348
- Grid.prototype._connector = null;
45367
+ Grid_Grid.prototype._connector = null;
45349
45368
  /** @private
45350
45369
  * @type {RowDefSorter}
45351
45370
  */
45352
- Grid.prototype._sorter = null;
45371
+ Grid_Grid.prototype._sorter = null;
45353
45372
 
45354
45373
  /** @private
45355
45374
  * @type {Engine}
45356
45375
  */
45357
- Grid.prototype._fnEngine = null;
45376
+ Grid_Grid.prototype._fnEngine = null;
45358
45377
  /** @private
45359
45378
  * @type {Conflator}
45360
45379
  */
45361
- Grid.prototype._formulaConflator = null;
45380
+ Grid_Grid.prototype._formulaConflator = null;
45362
45381
 
45363
45382
  /** @private
45364
45383
  * @type {Conflator}
45365
45384
  */
45366
- Grid.prototype._chainConflator = null;
45385
+ Grid_Grid.prototype._chainConflator = null;
45367
45386
  /** @private
45368
45387
  * @type {Object}
45369
45388
  */
45370
- Grid.prototype._constituentMap = null;
45389
+ Grid_Grid.prototype._constituentMap = null;
45371
45390
  /** @private
45372
45391
  * @type {number}
45373
45392
  */
45374
- Grid.prototype._clientWidth = NaN;
45393
+ Grid_Grid.prototype._clientWidth = NaN;
45375
45394
  /** @private
45376
45395
  * @type {number}
45377
45396
  */
45378
- Grid.prototype._autoLayoutTimer = 0;
45397
+ Grid_Grid.prototype._autoLayoutTimer = 0;
45379
45398
  /** @private
45380
45399
  * @type {ColumnDefinition~Options}
45381
45400
  */
45382
- Grid.prototype._defaultColumnOptions = null;
45401
+ Grid_Grid.prototype._defaultColumnOptions = null;
45383
45402
  /** @private
45384
45403
  * @type {*}
45385
45404
  */
45386
- Grid.prototype._RTK = null;
45405
+ Grid_Grid.prototype._RTK = null;
45387
45406
  /** @private
45388
45407
  * @type {Grid~ADCOptions}
45389
45408
  */
45390
- Grid.prototype._ADCOptions = null;
45409
+ Grid_Grid.prototype._ADCOptions = null;
45391
45410
  /** use for synapse service
45392
45411
  * @private
45393
45412
  * @type {string}
45394
45413
  */
45395
- Grid.prototype._synapse = null;
45414
+ Grid_Grid.prototype._synapse = null;
45396
45415
  /** @private
45397
45416
  * @type {boolean}
45398
45417
  */
45399
- Grid.prototype._autoDateConversion = false;
45418
+ Grid_Grid.prototype._autoDateConversion = false;
45400
45419
  /** @private
45401
45420
  * @type {boolean}
45402
45421
  */
45403
- Grid.prototype._textSelect = false;
45422
+ Grid_Grid.prototype._textSelect = false;
45404
45423
  /** @type {string}
45405
45424
  * @private
45406
45425
  */
45407
- Grid.prototype._lang = null;
45426
+ Grid_Grid.prototype._lang = null;
45408
45427
  /** @type {Object}
45409
45428
  * @private
45410
45429
  */
45411
- Grid.prototype._dateTimeUtil = null;
45430
+ Grid_Grid.prototype._dateTimeUtil = null;
45412
45431
  /** @type {boolean}
45413
45432
  * @private
45414
45433
  */
45415
- Grid.prototype._initializing = false;
45434
+ Grid_Grid.prototype._initializing = false;
45416
45435
  /** @type {number}
45417
45436
  * @private
45418
45437
  */
45419
- Grid.prototype._pollingInterval = 0;
45438
+ Grid_Grid.prototype._pollingInterval = 0;
45420
45439
  /** @type {number}
45421
45440
  * @private
45422
45441
  */
45423
- Grid.prototype._pollingTimerId = 0;
45442
+ Grid_Grid.prototype._pollingTimerId = 0;
45424
45443
  /** @type {number}
45425
45444
  * @private
45426
45445
  */
45427
- Grid.prototype._lastPollingRequest = 0;
45446
+ Grid_Grid.prototype._lastPollingRequest = 0;
45428
45447
  /** @type {boolean}
45429
45448
  * @private
45430
45449
  */
45431
- Grid.prototype._pollingEnabled = true;
45450
+ Grid_Grid.prototype._pollingEnabled = true;
45432
45451
  /** @type {boolean}
45433
45452
  * @private
45434
45453
  */
45435
- Grid.prototype._fieldCaching = false;
45454
+ Grid_Grid.prototype._fieldCaching = false;
45436
45455
  /** @type {boolean}
45437
45456
  * @private
45438
45457
  */
45439
- Grid.prototype._timeSeriesExpansion = true;
45458
+ Grid_Grid.prototype._timeSeriesExpansion = true;
45440
45459
 
45441
45460
  /** @type {string}
45442
45461
  * @private
45443
45462
  */
45444
- Grid.prototype._childDataField = "";
45463
+ Grid_Grid.prototype._childDataField = "";
45445
45464
  /** @type {boolean}
45446
45465
  * @private
45447
45466
  */
45448
- Grid.prototype._topSection = true;
45467
+ Grid_Grid.prototype._topSection = true;
45449
45468
  /** @type {Object}
45450
45469
  * @private
45451
45470
  */
45452
- Grid.prototype._focusingArgs = null;
45471
+ Grid_Grid.prototype._focusingArgs = null;
45472
+ /** @type {boolean}
45473
+ * @private
45474
+ */
45475
+ Grid_Grid.prototype._hasNewUpdates = false;
45453
45476
 
45454
45477
  /** @public
45455
45478
  */
45456
- Grid.prototype.dispose = function() {
45479
+ Grid_Grid.prototype.dispose = function() {
45457
45480
  this.removeAllEventListeners();
45458
45481
  if(this._autoLayoutTimer) {
45459
45482
  clearInterval(this._autoLayoutTimer);
@@ -45496,24 +45519,24 @@ Grid.prototype.dispose = function() {
45496
45519
  /** @public
45497
45520
  * @return {Element}
45498
45521
  */
45499
- Grid.prototype.getElement = function() {
45522
+ Grid_Grid.prototype.getElement = function() {
45500
45523
  return this._topNode;
45501
45524
  };
45502
45525
  /** Alias to {@link EventDispatcher#removeAllEventListeners}
45503
45526
  * @public
45504
45527
  * @function
45505
45528
  */
45506
- Grid.prototype.removeEventListeners = Grid.prototype.removeAllEventListeners;
45529
+ Grid_Grid.prototype.removeEventListeners = Grid_Grid.prototype.removeAllEventListeners;
45507
45530
  /** Alias to {@link EventDispatcher#addEventListener}
45508
45531
  * @public
45509
45532
  * @function
45510
45533
  * @param {string} type Event name
45511
45534
  * @param {Function} handler Event handler
45512
45535
  */
45513
- Grid.prototype.listen = Grid.prototype.addEventListener;
45536
+ Grid_Grid.prototype.listen = Grid_Grid.prototype.addEventListener;
45514
45537
  /** @public
45515
45538
  */
45516
- Grid.prototype.initSubscription = function() {
45539
+ Grid_Grid.prototype.initSubscription = function() {
45517
45540
  if(this._subs) { // Subscription is already initialized
45518
45541
  return;
45519
45542
  }
@@ -45561,7 +45584,7 @@ Grid.prototype.initSubscription = function() {
45561
45584
 
45562
45585
  /** @public
45563
45586
  */
45564
- Grid.prototype.updateLayout = function() {
45587
+ Grid_Grid.prototype.updateLayout = function() {
45565
45588
  this._grid.updateLayout();
45566
45589
  this._stp.updateSortSymbols(); // HACK: There is a chance that grid may not yet be in the document
45567
45590
  };
@@ -45569,7 +45592,7 @@ Grid.prototype.updateLayout = function() {
45569
45592
  * @private
45570
45593
  * @param {number=} rowIndex
45571
45594
  */
45572
- Grid.prototype._updateRowData = function(rowIndex) {
45595
+ Grid_Grid.prototype._updateRowData = function(rowIndex) {
45573
45596
  if(rowIndex >= 0) {
45574
45597
  let rowId = this._dv.getRowId(rowIndex);
45575
45598
  if(rowId) {
@@ -45583,11 +45606,11 @@ Grid.prototype._updateRowData = function(rowIndex) {
45583
45606
  * @function
45584
45607
  * @param {number=} opt_rowIndex
45585
45608
  */
45586
- Grid.prototype.updateRowData = Grid.prototype._updateRowData;
45609
+ Grid_Grid.prototype.updateRowData = Grid_Grid.prototype._updateRowData;
45587
45610
 
45588
45611
  /** @private
45589
45612
  */
45590
- Grid.prototype._addGridSections = function () {
45613
+ Grid_Grid.prototype._addGridSections = function () {
45591
45614
  let title = this._grid.addSection("title");
45592
45615
  if(this._topSection == false){
45593
45616
  title.setRowCount(0);
@@ -45607,7 +45630,7 @@ Grid.prototype._addGridSections = function () {
45607
45630
  * @param {string=} sectionName
45608
45631
  * @return {*} Return Section instance
45609
45632
  */
45610
- Grid.prototype.addHeaderSection = function (sectionName) {
45633
+ Grid_Grid.prototype.addHeaderSection = function (sectionName) {
45611
45634
  let titleSects = this._grid.getAllSections("title");
45612
45635
 
45613
45636
  let headerSect = this._grid.addSectionAt(titleSects.length, "title", sectionName);
@@ -45624,7 +45647,7 @@ Grid.prototype.addHeaderSection = function (sectionName) {
45624
45647
  * @param {string=} sectionName
45625
45648
  * @return {*} Return Section instance
45626
45649
  */
45627
- Grid.prototype.addFooterSection = function (sectionName) {
45650
+ Grid_Grid.prototype.addFooterSection = function (sectionName) {
45628
45651
  let footerSect = this._grid.addSection("footer", sectionName);
45629
45652
  if(footerSect) {
45630
45653
  footerSect.setRowCount(1);
@@ -45639,14 +45662,14 @@ Grid.prototype.addFooterSection = function (sectionName) {
45639
45662
  /** @public
45640
45663
  * @param {Element} elem Parent element
45641
45664
  */
45642
- Grid.prototype.setParent = function (elem) {
45665
+ Grid_Grid.prototype.setParent = function (elem) {
45643
45666
  Dom.appendChild(elem, this._topNode);
45644
45667
  this.updateLayout();
45645
45668
  };
45646
45669
  /** @public
45647
45670
  * @param {Element} elem Sibling element
45648
45671
  */
45649
- Grid.prototype.insertBefore = function (elem) {
45672
+ Grid_Grid.prototype.insertBefore = function (elem) {
45650
45673
  if(elem) {
45651
45674
  let pn = elem.parentNode;
45652
45675
  if(pn) {
@@ -45667,21 +45690,21 @@ Grid.prototype.insertBefore = function (elem) {
45667
45690
  * @param {!ElementWrapper|Element|Event|MouseEvent} obj Element, Browser's Event object, Browser's Mouse Event object are all valid
45668
45691
  * @return {!Object}
45669
45692
  */
45670
- Grid.prototype.getRelativePosition = function (obj) {
45693
+ Grid_Grid.prototype.getRelativePosition = function (obj) {
45671
45694
  return this._grid.getRelativePosition(obj);
45672
45695
  };
45673
45696
  /** The returned core grid
45674
45697
  * @public
45675
45698
  * @return {Core}
45676
45699
  */
45677
- Grid.prototype.getCoreGrid = function () {
45700
+ Grid_Grid.prototype.getCoreGrid = function () {
45678
45701
  return this._grid;
45679
45702
  };
45680
45703
 
45681
45704
  /** @public
45682
45705
  * @param {Grid~GridOptions=} gridOption
45683
45706
  */
45684
- Grid.prototype.initialize = function(gridOption) {
45707
+ Grid_Grid.prototype.initialize = function(gridOption) {
45685
45708
  if (!gridOption) {
45686
45709
  this.initSubscription();
45687
45710
  return;
@@ -45985,7 +46008,7 @@ Grid.prototype.initialize = function(gridOption) {
45985
46008
  * @param {Object=} gridOptions
45986
46009
  * @return {!Object}
45987
46010
  */
45988
- Grid.prototype.getConfigObject = function (gridOptions) {
46011
+ Grid_Grid.prototype.getConfigObject = function (gridOptions) {
45989
46012
  let obj = gridOptions || {};
45990
46013
 
45991
46014
  let columns = obj.columns;
@@ -46144,7 +46167,7 @@ Grid.prototype.getConfigObject = function (gridOptions) {
46144
46167
  * @ignore
46145
46168
  * @param {Object} dateTimeUtil
46146
46169
  */
46147
- Grid.prototype.setDateTimeUtil = function(dateTimeUtil) {
46170
+ Grid_Grid.prototype.setDateTimeUtil = function(dateTimeUtil) {
46148
46171
  if(this._dateTimeUtil !== dateTimeUtil) {
46149
46172
  this._dateTimeUtil = dateTimeUtil;
46150
46173
  this._dateTimeUtil.setLocale(this._lang);
@@ -46153,7 +46176,7 @@ Grid.prototype.setDateTimeUtil = function(dateTimeUtil) {
46153
46176
  /** @public
46154
46177
  * @param {string} lang
46155
46178
  */
46156
- Grid.prototype.setLocale = function(lang) {
46179
+ Grid_Grid.prototype.setLocale = function(lang) {
46157
46180
  if(lang && this._lang !== lang) {
46158
46181
  this._lang = lang;
46159
46182
  this._dateTimeUtil.setLocale(lang);
@@ -46165,7 +46188,7 @@ Grid.prototype.setLocale = function(lang) {
46165
46188
  * @param {Object} defaultCol
46166
46189
  * @param {Array.<Object>} userColumns
46167
46190
  */
46168
- Grid.prototype._defaultColumnSetup = function (defaultCol, userColumns) {
46191
+ Grid_Grid.prototype._defaultColumnSetup = function (defaultCol, userColumns) {
46169
46192
  let c = userColumns.length;
46170
46193
  for (let i = 0; i < c; i++) {
46171
46194
  let column = userColumns[i];
@@ -46186,7 +46209,7 @@ Grid.prototype._defaultColumnSetup = function (defaultCol, userColumns) {
46186
46209
  * @param {string} field A function name of plugin instance
46187
46210
  * @param {Array.<*>} params Inputs that will pass to a function call
46188
46211
  */
46189
- Grid.prototype._processExtension = function (exts, field, params) {
46212
+ Grid_Grid.prototype._processExtension = function (exts, field, params) {
46190
46213
  if(Array.isArray(exts)) {
46191
46214
  for (let i = 0; i < exts.length; i++) {
46192
46215
  if (exts[i][field]) {
@@ -46199,7 +46222,7 @@ Grid.prototype._processExtension = function (exts, field, params) {
46199
46222
  /** @private
46200
46223
  * @param {Object} e
46201
46224
  */
46202
- Grid.prototype._onRicAdded = function(e) {
46225
+ Grid_Grid.prototype._onRicAdded = function(e) {
46203
46226
  let addedRics = e.addedRics;
46204
46227
  this._snapshot.addFields(e.fields);
46205
46228
  let len = addedRics.length;
@@ -46221,14 +46244,14 @@ Grid.prototype._onRicAdded = function(e) {
46221
46244
  /** @private
46222
46245
  * @param {Object} e
46223
46246
  */
46224
- Grid.prototype._onRicRemoved = function(e) {
46247
+ Grid_Grid.prototype._onRicRemoved = function(e) {
46225
46248
  this._dispatch(e.type, e);
46226
46249
  };
46227
46250
 
46228
46251
  /** @private
46229
46252
  * @param {Object} e
46230
46253
  */
46231
- Grid.prototype._onFieldAdded = function(e) {
46254
+ Grid_Grid.prototype._onFieldAdded = function(e) {
46232
46255
  let rowDefs = e.rowDefs;
46233
46256
  let addedFields = e.addedFields;
46234
46257
 
@@ -46251,7 +46274,7 @@ Grid.prototype._onFieldAdded = function(e) {
46251
46274
  /** @private
46252
46275
  * @param {Object} e
46253
46276
  */
46254
- Grid.prototype._onFieldRemoved = function(e) {
46277
+ Grid_Grid.prototype._onFieldRemoved = function(e) {
46255
46278
  let removedFields = e.removedFields;
46256
46279
 
46257
46280
  // TODO: ADC fields have an interval load. Currently, we only keep the field but do not delete it.
@@ -46267,7 +46290,7 @@ Grid.prototype._onFieldRemoved = function(e) {
46267
46290
  * @param {ColumnDefinition~Options|string} columnOption String will be treated as field, while object is treated as the column options
46268
46291
  * @param {number=} idx
46269
46292
  */
46270
- Grid.prototype.insertColumn = function (columnOption, idx) {
46293
+ Grid_Grid.prototype.insertColumn = function (columnOption, idx) {
46271
46294
  let colCount = this.getColumnCount();
46272
46295
  if(idx == null || idx > colCount) {
46273
46296
  idx = colCount;
@@ -46301,7 +46324,7 @@ Grid.prototype.insertColumn = function (columnOption, idx) {
46301
46324
  * @private
46302
46325
  * @param {Object} e snapshort change event object
46303
46326
  */
46304
- Grid.prototype._updateTimeSeriesFields = function (e) {
46327
+ Grid_Grid.prototype._updateTimeSeriesFields = function (e) {
46305
46328
  let childField;
46306
46329
  let snapShotData = e.data;
46307
46330
  let childFields = {};
@@ -46348,7 +46371,7 @@ Grid.prototype._updateTimeSeriesFields = function (e) {
46348
46371
  /** @private
46349
46372
  * @param {ColumnDefinition} colDef
46350
46373
  */
46351
- Grid.prototype._populateTimeSeriesChildren = function (colDef) {
46374
+ Grid_Grid.prototype._populateTimeSeriesChildren = function (colDef) {
46352
46375
  if(this._timeSeriesChildConflator.conflate(colDef) ) {
46353
46376
  return;
46354
46377
  }
@@ -46388,7 +46411,7 @@ Grid.prototype._populateTimeSeriesChildren = function (colDef) {
46388
46411
  * @param {string} childField field
46389
46412
  * @param {number} idx index of insertion column
46390
46413
  */
46391
- Grid.prototype._cloneTimeSeriesColumn = function (parentColDef, childField, idx) {
46414
+ Grid_Grid.prototype._cloneTimeSeriesColumn = function (parentColDef, childField, idx) {
46392
46415
  let parentConfig, columnOption;
46393
46416
  parentConfig = parentColDef.getConfigObject();
46394
46417
  columnOption = cloneObject(parentConfig);
@@ -46405,7 +46428,7 @@ Grid.prototype._cloneTimeSeriesColumn = function (parentColDef, childField, idx)
46405
46428
  * @param {ColumnDefinition~Options|string} columnOption String will be treated as field, while object is treated as the column options
46406
46429
  * @param {Grid~ColumnReference} colRef
46407
46430
  */
46408
- Grid.prototype.replaceColumn = function (columnOption, colRef) {
46431
+ Grid_Grid.prototype.replaceColumn = function (columnOption, colRef) {
46409
46432
  let colIndex = this.getColumnIndex(colRef);
46410
46433
  if(colIndex < 0) {
46411
46434
  return;
@@ -46477,7 +46500,7 @@ Grid.prototype.replaceColumn = function (columnOption, colRef) {
46477
46500
  * @param {ColumnDefinition} colDef
46478
46501
  * @param {Object} response
46479
46502
  */
46480
- Grid.prototype._onFieldLoadedSuccess = function (field, colDef, response) {
46503
+ Grid_Grid.prototype._onFieldLoadedSuccess = function (field, colDef, response) {
46481
46504
  if(this._connector && response && response.id) {
46482
46505
  let fieldDef = response;
46483
46506
  if (colDef && colDef.getField() === field) {
@@ -46493,7 +46516,7 @@ Grid.prototype._onFieldLoadedSuccess = function (field, colDef, response) {
46493
46516
  * @private
46494
46517
  * @param {Object} err
46495
46518
  */
46496
- Grid.prototype._onFieldLoadedError = function (err) {
46519
+ Grid_Grid.prototype._onFieldLoadedError = function (err) {
46497
46520
  // TODO: May implement retry mechanism here, if need
46498
46521
  };
46499
46522
 
@@ -46502,7 +46525,7 @@ Grid.prototype._onFieldLoadedError = function (err) {
46502
46525
  * @param {string} field
46503
46526
  * @param {string} referrer
46504
46527
  */
46505
- Grid.prototype._onFieldLoaded = function (field, referrer) {
46528
+ Grid_Grid.prototype._onFieldLoaded = function (field, referrer) {
46506
46529
  if(this._connector) {
46507
46530
  // For time series, we need to wait until the field is loadedm, then we can insert a child from the field data.
46508
46531
  if(js_FieldDefinition.isTimeSeries(field)) {
@@ -46517,7 +46540,7 @@ Grid.prototype._onFieldLoaded = function (field, referrer) {
46517
46540
  * @private
46518
46541
  * @param {Element} host
46519
46542
  */
46520
- Grid.prototype._setScrollbarParent = function (host) {
46543
+ Grid_Grid.prototype._setScrollbarParent = function (host) {
46521
46544
  host.style.boxSizing = "border-box";
46522
46545
  host.style.overflow = "hidden";
46523
46546
  host.style.position = "relative";
@@ -46535,7 +46558,7 @@ Grid.prototype._setScrollbarParent = function (host) {
46535
46558
  * @param {string} field
46536
46559
  * @return {Object}
46537
46560
  */
46538
- Grid.prototype.getFieldInfo = function(field) {
46561
+ Grid_Grid.prototype.getFieldInfo = function(field) {
46539
46562
  return js_FieldDefinition.getFieldInfo(field);
46540
46563
  };
46541
46564
  /** Request field information from Synapse service. If field information already exists, a resolved promise is returned. Synapse config must be supplied before the request can be made.
@@ -46553,7 +46576,7 @@ Grid.prototype.getFieldInfo = function(field) {
46553
46576
  * };
46554
46577
  * let promise = grid.loadFieldInfo("CF_LAST");
46555
46578
  */
46556
- Grid.prototype.loadFieldInfo = function(field) {
46579
+ Grid_Grid.prototype.loadFieldInfo = function(field) {
46557
46580
  return js_FieldDefinition.loadFieldInfo(field);
46558
46581
  };
46559
46582
 
@@ -46562,7 +46585,7 @@ Grid.prototype.loadFieldInfo = function(field) {
46562
46585
  * @param {string} field
46563
46586
  * @returns {boolean}
46564
46587
  */
46565
- Grid.prototype._shouldLoadFieldInfo = function (field) {
46588
+ Grid_Grid.prototype._shouldLoadFieldInfo = function (field) {
46566
46589
 
46567
46590
  let val = this._RTK || window["JET"]; // Fastest checking can be performed by checking the first condition.
46568
46591
  if(!val) {
@@ -46590,7 +46613,7 @@ Grid.prototype._shouldLoadFieldInfo = function (field) {
46590
46613
  * @public
46591
46614
  * @param {Array.<Object>} columns Array of column options
46592
46615
  */
46593
- Grid.prototype.setColumns = function(columns) {
46616
+ Grid_Grid.prototype.setColumns = function(columns) {
46594
46617
  let grid = this._grid;
46595
46618
  let colCount = (columns) ? columns.length : 0;
46596
46619
 
@@ -46617,7 +46640,7 @@ Grid.prototype.setColumns = function(columns) {
46617
46640
  * @param {Array.<Object>} columns Array of column options
46618
46641
  * @param {boolean=} byId=false, if enable it, this method will only check for differences in the 'id' property
46619
46642
  */
46620
- Grid.prototype.restoreColumns = function(columns, byId) {
46643
+ Grid_Grid.prototype.restoreColumns = function(columns, byId) {
46621
46644
  let grid = this._grid;
46622
46645
  grid.startBatch("reset");
46623
46646
  let configObj = this.getConfigObject();
@@ -46684,12 +46707,12 @@ Grid.prototype.restoreColumns = function(columns, byId) {
46684
46707
  * @param {Array.<string>} ary Array of fields (string)
46685
46708
  * @see {@link Grid#setColumns}
46686
46709
  */
46687
- Grid.prototype.setFields = Grid.prototype.setColumns;
46710
+ Grid_Grid.prototype.setFields = Grid_Grid.prototype.setColumns;
46688
46711
 
46689
46712
  /** @private
46690
46713
  * @param {Object} e
46691
46714
  */
46692
- Grid.prototype._onColumnAdded = function(e) {
46715
+ Grid_Grid.prototype._onColumnAdded = function(e) {
46693
46716
  let colDef = /** @type{ColumnDefinition} */(e.context[COL_DEF]);
46694
46717
  delete e.context[COL_DEF];
46695
46718
  let idx = e.colIndex;
@@ -46792,7 +46815,7 @@ Grid.prototype._onColumnAdded = function(e) {
46792
46815
  * @see {@link Grid#removeColumns}
46793
46816
  * @see {@link Grid#removeAllColumns}
46794
46817
  */
46795
- Grid.prototype.removeColumn = function(colRef) {
46818
+ Grid_Grid.prototype.removeColumn = function(colRef) {
46796
46819
  let colIndex = this.getColumnIndex(colRef);
46797
46820
  if(colIndex < 0) {
46798
46821
  return;
@@ -46812,7 +46835,7 @@ Grid.prototype.removeColumn = function(colRef) {
46812
46835
  * @see {@link Grid#removeColumn}
46813
46836
  * @see {@link Grid#removeAllColumns}
46814
46837
  */
46815
- Grid.prototype.removeColumns = function(colRefs) {
46838
+ Grid_Grid.prototype.removeColumns = function(colRefs) {
46816
46839
  let indices = this.getColumnIndices(colRefs);
46817
46840
  let len = indices.length;
46818
46841
  if(len <= 1) {
@@ -46821,7 +46844,7 @@ Grid.prototype.removeColumns = function(colRefs) {
46821
46844
  }
46822
46845
  return;
46823
46846
  }
46824
- indices.sort(Grid._descendingOrder); // Removal must be done from the back
46847
+ indices.sort(Grid_Grid._descendingOrder); // Removal must be done from the back
46825
46848
 
46826
46849
  let prevState = this._grid.freezeLayout(); // To prevent multiple UI updates
46827
46850
 
@@ -46840,7 +46863,7 @@ Grid.prototype.removeColumns = function(colRefs) {
46840
46863
  * @see {@link Grid#removeColumn}
46841
46864
  * @see {@link Grid#removeColumns}
46842
46865
  */
46843
- Grid.prototype.removeAllColumns = function() {
46866
+ Grid_Grid.prototype.removeAllColumns = function() {
46844
46867
  let colCount = this.getColumnCount();
46845
46868
  if(colCount <= 0) {
46846
46869
  return;
@@ -46871,7 +46894,7 @@ Grid.prototype.removeAllColumns = function() {
46871
46894
  * @return {boolean} Return true if there is any change, and false otherwise
46872
46895
  * @see {@link Grid#moveColumnById}
46873
46896
  */
46874
- Grid.prototype.moveColumn = function (fromColIndex, toColIndex) {
46897
+ Grid_Grid.prototype.moveColumn = function (fromColIndex, toColIndex) {
46875
46898
  return this._grid.moveColumn(fromColIndex, toColIndex);
46876
46899
  };
46877
46900
  /** If source column is not found, no operation is performed. If destination column is not found, the source column will be moved to the last position.<br>
@@ -46888,7 +46911,7 @@ Grid.prototype.moveColumn = function (fromColIndex, toColIndex) {
46888
46911
  * grid.moveColumnById("sourceColumnId", "anotherId");
46889
46912
  * grid.moveColumnById("sourceColumnId", ""); // move to the last position
46890
46913
  */
46891
- Grid.prototype.moveColumnById = function (srcCol, destCol) {
46914
+ Grid_Grid.prototype.moveColumnById = function (srcCol, destCol) {
46892
46915
  return this._grid.moveColumnById(srcCol, destCol);
46893
46916
  };
46894
46917
 
@@ -46897,7 +46920,7 @@ Grid.prototype.moveColumnById = function (srcCol, destCol) {
46897
46920
  * @param {(number|string)=} destCol Destination position where the moved columns will be placed BEFORE the specified position. This can be column id or index
46898
46921
  * @return {boolean} Return true if there is any change, and false otherwise
46899
46922
  */
46900
- Grid.prototype.reorderColumns = function (colRefs, destCol) {
46923
+ Grid_Grid.prototype.reorderColumns = function (colRefs, destCol) {
46901
46924
  return this._grid.reorderColumns(colRefs, destCol);
46902
46925
  };
46903
46926
 
@@ -46908,7 +46931,7 @@ Grid.prototype.reorderColumns = function (colRefs, destCol) {
46908
46931
  * @see {@link Grid#hideColumns}
46909
46932
  * @see {@link Grid#showAllColumns}
46910
46933
  */
46911
- Grid.prototype.hideColumn = function(colRef, hidden) {
46934
+ Grid_Grid.prototype.hideColumn = function(colRef, hidden) {
46912
46935
  let colIndex = this.getColumnIndex(colRef);
46913
46936
  if(colIndex < 0) { // not found
46914
46937
  return;
@@ -46923,14 +46946,14 @@ Grid.prototype.hideColumn = function(colRef, hidden) {
46923
46946
  * @see {@link Grid#hideColumn}
46924
46947
  * @see {@link Grid#showAllColumns}
46925
46948
  */
46926
- Grid.prototype.hideColumns = function(colRefs, hidden) {
46949
+ Grid_Grid.prototype.hideColumns = function(colRefs, hidden) {
46927
46950
  this._grid.hideColumns(this.getColumnIndices(colRefs), hidden);
46928
46951
  };
46929
46952
  /** @public
46930
46953
  * @see {@link Grid#hideColumn}
46931
46954
  * @see {@link Grid#hideColumns}
46932
46955
  */
46933
- Grid.prototype.showAllColumns = function() {
46956
+ Grid_Grid.prototype.showAllColumns = function() {
46934
46957
  this._grid.showAllColumns();
46935
46958
  };
46936
46959
  /** @private
@@ -46939,7 +46962,7 @@ Grid.prototype.showAllColumns = function() {
46939
46962
  * @param {number} b
46940
46963
  * @return {number}
46941
46964
  */
46942
- Grid._descendingOrder = function(a, b) {
46965
+ Grid_Grid._descendingOrder = function(a, b) {
46943
46966
  return b - a;
46944
46967
  };
46945
46968
 
@@ -46949,7 +46972,7 @@ Grid._descendingOrder = function(a, b) {
46949
46972
  * @param {string=} referrer
46950
46973
  * @return {boolean}
46951
46974
  */
46952
- Grid.prototype.addDataFields = function(fieldRef, referrer) {
46975
+ Grid_Grid.prototype.addDataFields = function(fieldRef, referrer) {
46953
46976
  if(!fieldRef) {
46954
46977
  return false;
46955
46978
  }
@@ -46984,7 +47007,7 @@ Grid.prototype.addDataFields = function(fieldRef, referrer) {
46984
47007
  * @param {string=} referrer
46985
47008
  * @return {boolean}
46986
47009
  */
46987
- Grid.prototype.removeDataFields = function(fieldRef, referrer) {
47010
+ Grid_Grid.prototype.removeDataFields = function(fieldRef, referrer) {
46988
47011
  if(!fieldRef) {
46989
47012
  return false;
46990
47013
  }
@@ -46995,7 +47018,7 @@ Grid.prototype.removeDataFields = function(fieldRef, referrer) {
46995
47018
  /** @public
46996
47019
  * @param {string} referrer
46997
47020
  */
46998
- Grid.prototype.removeFieldReferrer = function(referrer) {
47021
+ Grid_Grid.prototype.removeFieldReferrer = function(referrer) {
46999
47022
  if(!referrer) {
47000
47023
  return;
47001
47024
  }
@@ -47007,7 +47030,7 @@ Grid.prototype.removeFieldReferrer = function(referrer) {
47007
47030
  * @param {Grid~ColumnReference} colRef
47008
47031
  * @param {string=} opt_order This can be "ascending", "descending", "none", "noOrder", or "originalOrder"
47009
47032
  */
47010
- Grid.prototype.sortColumn = function(colRef, opt_order) {
47033
+ Grid_Grid.prototype.sortColumn = function(colRef, opt_order) {
47011
47034
  if(typeof colRef === "string") {
47012
47035
  this._stp.sortColumn(colRef, opt_order); // Allow sorting by field
47013
47036
  return;
@@ -47024,7 +47047,7 @@ Grid.prototype.sortColumn = function(colRef, opt_order) {
47024
47047
  * @param {number} colIndex
47025
47048
  * @param {string} str
47026
47049
  */
47027
- Grid.prototype.setColumnName = function(colIndex, str) {
47050
+ Grid_Grid.prototype.setColumnName = function(colIndex, str) {
47028
47051
  let colDef = this.getColumnDefinition(colIndex);
47029
47052
  if(colDef) {
47030
47053
  colDef.setName(str);
@@ -47035,7 +47058,7 @@ Grid.prototype.setColumnName = function(colIndex, str) {
47035
47058
  * @param {Grid~ColumnReference} colRef
47036
47059
  * @return {string}
47037
47060
  */
47038
- Grid.prototype.getColumnBackgroundColor = function(colRef) {
47061
+ Grid_Grid.prototype.getColumnBackgroundColor = function(colRef) {
47039
47062
  let colDef = this.getColumnDefinition(colRef);
47040
47063
  if(colDef) {
47041
47064
  return colDef.getBackgroundColor();
@@ -47046,7 +47069,7 @@ Grid.prototype.getColumnBackgroundColor = function(colRef) {
47046
47069
  * @param {Grid~ColumnReference} colRef
47047
47070
  * @param {string} color
47048
47071
  */
47049
- Grid.prototype.setColumnBackgroundColor = function(colRef, color) {
47072
+ Grid_Grid.prototype.setColumnBackgroundColor = function(colRef, color) {
47050
47073
  let colDef = this.getColumnDefinition(colRef);
47051
47074
  if(colDef) {
47052
47075
  colDef.setBackgroundColor(color);
@@ -47056,7 +47079,7 @@ Grid.prototype.setColumnBackgroundColor = function(colRef, color) {
47056
47079
  * @param {Grid~ColumnReference} colRef
47057
47080
  * @param {Function=} func
47058
47081
  */
47059
- Grid.prototype.setColumnRenderer = function(colRef, func) {
47082
+ Grid_Grid.prototype.setColumnRenderer = function(colRef, func) {
47060
47083
  let colIndex = this.getColumnIndex(colRef);
47061
47084
  this.setColumnFormatter(colIndex, func);
47062
47085
  };
@@ -47066,7 +47089,7 @@ Grid.prototype.setColumnRenderer = function(colRef, func) {
47066
47089
  * @param {string=} id ID for renderer mapping. If not specified the default renderer will be picked up
47067
47090
  * @param {Function=} func If not specified the renderer which corresponded id from mapping will be picked up
47068
47091
  */
47069
- Grid.prototype.activateColumnRenderer = function(colRef, id, func) {
47092
+ Grid_Grid.prototype.activateColumnRenderer = function(colRef, id, func) {
47070
47093
  let colIndex = this.getColumnIndex(colRef);
47071
47094
  if (colIndex == null) { return; }
47072
47095
 
@@ -47084,7 +47107,7 @@ Grid.prototype.activateColumnRenderer = function(colRef, id, func) {
47084
47107
  * @param {number} colIndex Column index of the position of the column to be updated
47085
47108
  * @param {Object|Function=} formatter Formatter object or bind function
47086
47109
  */
47087
- Grid.prototype.setColumnFormatter = function (colIndex, formatter) {
47110
+ Grid_Grid.prototype.setColumnFormatter = function (colIndex, formatter) {
47088
47111
  if (colIndex == null) { return; }
47089
47112
 
47090
47113
  let colDef = this.getColumnDefinition(colIndex);
@@ -47128,7 +47151,7 @@ Grid.prototype.setColumnFormatter = function (colIndex, formatter) {
47128
47151
  * @param {Grid~ColumnReference} colRef
47129
47152
  * @param {ColumnDefinition~SortLogic=} func
47130
47153
  */
47131
- Grid.prototype.setColumnSorter = function(colRef, func) {
47154
+ Grid_Grid.prototype.setColumnSorter = function(colRef, func) {
47132
47155
  let colIndex = this.getColumnIndex(colRef);
47133
47156
  let colDef = this.getColumnDefinition(colIndex);
47134
47157
  if(colDef) {
@@ -47146,7 +47169,7 @@ Grid.prototype.setColumnSorter = function(colRef, func) {
47146
47169
  * @private
47147
47170
  * @param {!RowDefinition} rowDef
47148
47171
  */
47149
- Grid.prototype._initDuplicateRicData = function(rowDef) {
47172
+ Grid_Grid.prototype._initDuplicateRicData = function(rowDef) {
47150
47173
  if(!rowDef) {
47151
47174
  return;
47152
47175
  }
@@ -47166,7 +47189,7 @@ Grid.prototype._initDuplicateRicData = function(rowDef) {
47166
47189
  /** @private
47167
47190
  * @param {Object} newRowDef
47168
47191
  */
47169
- Grid.prototype._cloneChain = function(newRowDef) {
47192
+ Grid_Grid.prototype._cloneChain = function(newRowDef) {
47170
47193
  let rowDefs = this._connector.getRowDefByRic(newRowDef.getSymbol());
47171
47194
  let firstRowDef = rowDefs ? rowDefs[0] : null;
47172
47195
  let constituents = firstRowDef ? firstRowDef.getChildren() : null;
@@ -47199,7 +47222,7 @@ Grid.prototype._cloneChain = function(newRowDef) {
47199
47222
  * let grid = new rt.Grid(grid_div, options);
47200
47223
  * grid.insertRow({"ric": "RIC"}, 0); // A new row is added at the top
47201
47224
  */
47202
- Grid.prototype.insertRow = function(rowOption, rowRef) {
47225
+ Grid_Grid.prototype.insertRow = function(rowOption, rowRef) {
47203
47226
  if(this._mainGrid) {
47204
47227
  return this._mainGrid.insertRow(rowOption, this._getRowId(rowRef));
47205
47228
  }
@@ -47214,8 +47237,12 @@ Grid.prototype.insertRow = function(rowOption, rowRef) {
47214
47237
  }
47215
47238
  }
47216
47239
  let rowDef = new RowDefinition(rowOption);
47240
+
47241
+ if(rowDef.setDataSource(this._dc, this._subs)) { // This could also subscribe chain index/ric to JET/RTK
47242
+ this._hasNewUpdates = true; // Mark data table for cleaning it up later
47243
+ }
47217
47244
  rowDef.registerToView(this._dv, this._getRowId(rowRef));
47218
- rowDef.setDataSource(this._dc, this._subs); // This could also subscribe chain index/ric to JET/RTK
47245
+
47219
47246
  this._initDuplicateRicData(rowDef);
47220
47247
 
47221
47248
  if(rowOption && rowOption["hidden"]) {
@@ -47230,7 +47257,7 @@ Grid.prototype.insertRow = function(rowOption, rowRef) {
47230
47257
  * @param {Grid~RowReference=} rowRef Reference (i.e. row index, row id, or row definition) of the insert position
47231
47258
  * @returns {RowDefinition}
47232
47259
  */
47233
- Grid.prototype.insertSegmentSeparator = function(rowOption, rowRef) {
47260
+ Grid_Grid.prototype.insertSegmentSeparator = function(rowOption, rowRef) {
47234
47261
  if(!rowOption) {
47235
47262
  rowOption = {};
47236
47263
  }
@@ -47253,7 +47280,7 @@ Grid.prototype.insertSegmentSeparator = function(rowOption, rowRef) {
47253
47280
  * null
47254
47281
  * ]); // 4 rows are appended
47255
47282
  */
47256
- Grid.prototype.insertRows = function(rowOptions, rowRef, opt_fields) {
47283
+ Grid_Grid.prototype.insertRows = function(rowOptions, rowRef, opt_fields) {
47257
47284
  if(this._mainGrid) {
47258
47285
  this._mainGrid.insertRows(rowOptions, this._getRowId(rowRef));
47259
47286
  return;
@@ -47299,7 +47326,7 @@ Grid.prototype.insertRows = function(rowOptions, rowRef, opt_fields) {
47299
47326
  * ]); // 3 more rows are appended
47300
47327
  * grid.logDV({"colNames": ["field1", "field2", "field3", "field4"]}); // See results in console
47301
47328
  */
47302
- Grid.prototype.addStaticDataRows = function(dataRows, fields) {
47329
+ Grid_Grid.prototype.addStaticDataRows = function(dataRows, fields) {
47303
47330
  if(this._mainGrid) {
47304
47331
  this._mainGrid.addStaticDataRows(dataRows, fields);
47305
47332
  return;
@@ -47318,7 +47345,7 @@ Grid.prototype.addStaticDataRows = function(dataRows, fields) {
47318
47345
  }
47319
47346
  }
47320
47347
  if(dataRows) {
47321
- this.insertRows(dataRows.map(Grid._dataToRowOptions), null, fields);
47348
+ this.insertRows(dataRows.map(Grid_Grid._dataToRowOptions), null, fields);
47322
47349
  }
47323
47350
  };
47324
47351
  /** Insert, update, remove and reorder data based on the given array of records
@@ -47363,7 +47390,7 @@ Grid.prototype.addStaticDataRows = function(dataRows, fields) {
47363
47390
  * { id: "E", field2: 1, field3: 2, field4: "Something E" },
47364
47391
  * ], "id");
47365
47392
  */
47366
- Grid.prototype.updateDataSet = function(records, rowIdentifier) {
47393
+ Grid_Grid.prototype.updateDataSet = function(records, rowIdentifier) {
47367
47394
  if(!Array.isArray(records) || records.length === 0 ) {
47368
47395
  this.removeAllRows();
47369
47396
  return;
@@ -47448,7 +47475,7 @@ Grid.prototype.updateDataSet = function(records, rowIdentifier) {
47448
47475
  * @param {Array|Object} item
47449
47476
  * @return {!Object}
47450
47477
  */
47451
- Grid._dataToRowOptions = function(item) {
47478
+ Grid_Grid._dataToRowOptions = function(item) {
47452
47479
  return {values: item};
47453
47480
  };
47454
47481
  /** @public
@@ -47457,7 +47484,7 @@ Grid._dataToRowOptions = function(item) {
47457
47484
  * @see {@link Grid#removeRows}
47458
47485
  * @see {@link Grid#removeAllRows}
47459
47486
  */
47460
- Grid.prototype.removeRow = function(rowRef) {
47487
+ Grid_Grid.prototype.removeRow = function(rowRef) {
47461
47488
  if(this._mainGrid) {
47462
47489
  return this._mainGrid.removeRow(this._getRowId(rowRef));
47463
47490
  }
@@ -47476,7 +47503,7 @@ Grid.prototype.removeRow = function(rowRef) {
47476
47503
  * @see {@link Grid#removeRow}
47477
47504
  * @see {@link Grid#removeAllRows}
47478
47505
  */
47479
- Grid.prototype.removeRows = function(rowRefs) {
47506
+ Grid_Grid.prototype.removeRows = function(rowRefs) {
47480
47507
  let rowDef;
47481
47508
  if(!Array.isArray(rowRefs)) {
47482
47509
  rowDef = this.removeRow(rowRefs);
@@ -47519,7 +47546,7 @@ Grid.prototype.removeRows = function(rowRefs) {
47519
47546
  * @see {@link Grid#removeRow}
47520
47547
  * @see {@link Grid#removeRows}
47521
47548
  */
47522
- Grid.prototype.removeAllRows = function() {
47549
+ Grid_Grid.prototype.removeAllRows = function() {
47523
47550
  if(this._sharedDataSource) {
47524
47551
  return;
47525
47552
  }
@@ -47549,7 +47576,7 @@ Grid.prototype.removeAllRows = function() {
47549
47576
  * @private
47550
47577
  * @param {!RowDefinition} rowDef
47551
47578
  */
47552
- Grid.prototype._removeRow = function(rowDef) {
47579
+ Grid_Grid.prototype._removeRow = function(rowDef) {
47553
47580
  if(this._sharedDataSource) {
47554
47581
  return;
47555
47582
  }
@@ -47567,7 +47594,7 @@ Grid.prototype._removeRow = function(rowDef) {
47567
47594
  /** @private
47568
47595
  * @param {Array.<RowDefinition>} rowDefs
47569
47596
  */
47570
- Grid.prototype._removeConstituentRows = function(rowDefs) {
47597
+ Grid_Grid.prototype._removeConstituentRows = function(rowDefs) {
47571
47598
  let connector = this._connector;
47572
47599
  let rowIds = [];
47573
47600
  for(let i = 0; i < rowDefs.length; i++) {
@@ -47584,7 +47611,7 @@ Grid.prototype._removeConstituentRows = function(rowDefs) {
47584
47611
  * @param {Grid~RowReference} rowRef
47585
47612
  * @param {boolean=} hidden if false, show instead of hide
47586
47613
  */
47587
- Grid.prototype.hideRow = function(rowRef, hidden) {
47614
+ Grid_Grid.prototype.hideRow = function(rowRef, hidden) {
47588
47615
  let rid = this._getRowId(rowRef);
47589
47616
  let grid = this._mainGrid || this._grid;
47590
47617
  grid.hideRow(rid, hidden);
@@ -47595,7 +47622,7 @@ Grid.prototype.hideRow = function(rowRef, hidden) {
47595
47622
  * @param {boolean=} hidden if false, show instead of hide
47596
47623
  * @public
47597
47624
  */
47598
- Grid.prototype.hideRows = function (rowRefs, hidden) {
47625
+ Grid_Grid.prototype.hideRows = function (rowRefs, hidden) {
47599
47626
  if (!Array.isArray(rowRefs)) {
47600
47627
  rowRefs = [rowRefs];
47601
47628
  }
@@ -47609,21 +47636,21 @@ Grid.prototype.hideRows = function (rowRefs, hidden) {
47609
47636
  * @param {boolean=} shown if false, hide instead of show
47610
47637
  * @public
47611
47638
  */
47612
- Grid.prototype.showRows = function (rowRefs, shown) {
47639
+ Grid_Grid.prototype.showRows = function (rowRefs, shown) {
47613
47640
  this.hideRows(rowRefs, shown === false);
47614
47641
  };
47615
47642
  /**
47616
47643
  * Unhide all hidden rows in the Grid
47617
47644
  * @public
47618
47645
  */
47619
- Grid.prototype.unhideAllRows = function () {
47646
+ Grid_Grid.prototype.unhideAllRows = function () {
47620
47647
  this._grid.unhideAllRows();
47621
47648
  };
47622
47649
  /**
47623
47650
  * @public
47624
47651
  * @returns {boolean}
47625
47652
  */
47626
- Grid.prototype.hasHiddenRow = function(){
47653
+ Grid_Grid.prototype.hasHiddenRow = function(){
47627
47654
  return this._grid.hasHiddenRow();
47628
47655
  };
47629
47656
 
@@ -47634,7 +47661,7 @@ Grid.prototype.hasHiddenRow = function(){
47634
47661
  * @param {RowDefinition~Options=} options
47635
47662
  * @returns {RowDefinition} Returns modified Row Definition instance
47636
47663
  */
47637
- Grid.prototype.setRic = function(rowRef, str, options) {
47664
+ Grid_Grid.prototype.setRic = function(rowRef, str, options) {
47638
47665
  if(this._mainGrid) {
47639
47666
  return this._mainGrid.setRic(this._toRowId(rowRef), str, options);
47640
47667
  }
@@ -47673,7 +47700,7 @@ Grid.prototype.setRic = function(rowRef, str, options) {
47673
47700
  * @public
47674
47701
  * @param {Grid~RowReference} rowRef
47675
47702
  */
47676
- Grid.prototype.unlinkChain = function(rowRef) {
47703
+ Grid_Grid.prototype.unlinkChain = function(rowRef) {
47677
47704
  let rowDef = this._getRowDefinitionByRef(rowRef);
47678
47705
  if(!rowDef) {
47679
47706
  return;
@@ -47734,21 +47761,21 @@ Grid.prototype.unlinkChain = function(rowRef) {
47734
47761
  * @param {string} str
47735
47762
  * @see {@link Grid.setRic}
47736
47763
  */
47737
- Grid.prototype.setRowContent = Grid.prototype.setRic;
47764
+ Grid_Grid.prototype.setRowContent = Grid_Grid.prototype.setRic;
47738
47765
 
47739
47766
  /**
47740
47767
  * @public
47741
47768
  * @param {string|number} rid Row Id or index
47742
47769
  * @param {boolean=} force
47743
47770
  */
47744
- Grid.prototype.toggleRowExpansion = function(rid, force) {
47771
+ Grid_Grid.prototype.toggleRowExpansion = function(rid, force) {
47745
47772
  this._dv.toggleRowExpansion(rid, force);
47746
47773
  };
47747
47774
  /**
47748
47775
  * @private
47749
47776
  * @param {object} e
47750
47777
  */
47751
- Grid.prototype._onRowExpansionBinding = function(e) {
47778
+ Grid_Grid.prototype._onRowExpansionBinding = function(e) {
47752
47779
  if(!this.hasListener("rowExpansionBinding")) {
47753
47780
  return;
47754
47781
  }
@@ -47769,7 +47796,7 @@ Grid.prototype._onRowExpansionBinding = function(e) {
47769
47796
  * @public
47770
47797
  * @param {Array.<string>} ary
47771
47798
  */
47772
- Grid.prototype.setRics = function(ary) {
47799
+ Grid_Grid.prototype.setRics = function(ary) {
47773
47800
  this.removeAllRows();
47774
47801
  if(ary && ary.length) {
47775
47802
  this.insertRows(ary);
@@ -47780,34 +47807,34 @@ Grid.prototype.setRics = function(ary) {
47780
47807
  * @public
47781
47808
  * @return {number}
47782
47809
  */
47783
- Grid.prototype.getRowCount = function() {
47810
+ Grid_Grid.prototype.getRowCount = function() {
47784
47811
  return this._dv.getRowCount();
47785
47812
  };
47786
47813
  /** Get all rows without paging
47787
47814
  * @public
47788
47815
  * @return {number}
47789
47816
  */
47790
- Grid.prototype.getPageItemCount = function() {
47817
+ Grid_Grid.prototype.getPageItemCount = function() {
47791
47818
  return this._dv.getRowCount(false, true);
47792
47819
  };
47793
47820
  /** WARNING: This represents number of rows in the DataTable which includes all invisible rows and rows in multiple wrapped grids
47794
47821
  * @public
47795
47822
  * @return {number}
47796
47823
  */
47797
- Grid.prototype.getDataRowCount = function() {
47824
+ Grid_Grid.prototype.getDataRowCount = function() {
47798
47825
  return this._dt.getRowCount();
47799
47826
  };
47800
47827
  /** @public
47801
47828
  * @return {number}
47802
47829
  */
47803
- Grid.prototype.getColumnCount = function() {
47830
+ Grid_Grid.prototype.getColumnCount = function() {
47804
47831
  return this._grid.getColumnCount();
47805
47832
  };
47806
47833
  /** @public
47807
47834
  * @param {number} colIndex
47808
47835
  * @return {string}
47809
47836
  */
47810
- Grid.prototype.getColumnDataType = function(colIndex) {
47837
+ Grid_Grid.prototype.getColumnDataType = function(colIndex) {
47811
47838
  let colDef = this.getColumnDefinition(colIndex);
47812
47839
  if (colDef) {
47813
47840
  return colDef.getDataType();
@@ -47818,7 +47845,7 @@ Grid.prototype.getColumnDataType = function(colIndex) {
47818
47845
  * @param {number} colIndex
47819
47846
  * @return {ColumnDefinition}
47820
47847
  */
47821
- Grid.prototype.getColumnDefinition = function(colIndex) {
47848
+ Grid_Grid.prototype.getColumnDefinition = function(colIndex) {
47822
47849
  let colData = this._grid.getColumnData(colIndex);
47823
47850
  if(colData) {
47824
47851
  return /** @type{ColumnDefinition} */(colData[COL_DEF]) || null;
@@ -47828,7 +47855,7 @@ Grid.prototype.getColumnDefinition = function(colIndex) {
47828
47855
  /** @public
47829
47856
  * @return {!Array.<ColumnDefinition>}
47830
47857
  */
47831
- Grid.prototype.getColumnDefinitions = function() {
47858
+ Grid_Grid.prototype.getColumnDefinitions = function() {
47832
47859
  let colCount = this.getColumnCount();
47833
47860
  let colDefs = new Array(colCount);
47834
47861
  for(let i = 0; i < colCount; i++) {
@@ -47841,7 +47868,7 @@ Grid.prototype.getColumnDefinitions = function() {
47841
47868
  * @param {string} colId
47842
47869
  * @return {ColumnDefinition}
47843
47870
  */
47844
- Grid.prototype.getColumnDefinitionById = function(colId) {
47871
+ Grid_Grid.prototype.getColumnDefinitionById = function(colId) {
47845
47872
  if(typeof colId === "string") {
47846
47873
  return this.getColumnDefinition(this.getColumnIndex(colId));
47847
47874
  }
@@ -47852,7 +47879,7 @@ Grid.prototype.getColumnDefinitionById = function(colId) {
47852
47879
  * @param {Array.<string>} colIds
47853
47880
  * @return {ColumnDefinition}
47854
47881
  */
47855
- Grid.prototype.getColumnDefinitionsById = function(colIds) {
47882
+ Grid_Grid.prototype.getColumnDefinitionsById = function(colIds) {
47856
47883
  let colCount = Array.isArray(colIds) ? colIds.length : 0;
47857
47884
  if(colCount > 0) {
47858
47885
  let i, colId;
@@ -47870,7 +47897,7 @@ Grid.prototype.getColumnDefinitionsById = function(colIds) {
47870
47897
  * @param {Grid~ColumnReference} colRef
47871
47898
  * @return {ColumnDefinition}
47872
47899
  */
47873
- Grid.prototype._getColumnDefinition = function(colRef) {
47900
+ Grid_Grid.prototype._getColumnDefinition = function(colRef) {
47874
47901
  if(colRef instanceof ColumnDefinition) {
47875
47902
  return /** @type{!ColumnDefinition} */(colRef);
47876
47903
  } else if(typeof colRef === "number") {
@@ -47890,7 +47917,7 @@ Grid.prototype._getColumnDefinition = function(colRef) {
47890
47917
  * @param {number|string} rowRef Row index as shown in the view or row id (string)
47891
47918
  * @return {string}
47892
47919
  */
47893
- Grid.prototype.getRowType = function(rowRef) {
47920
+ Grid_Grid.prototype.getRowType = function(rowRef) {
47894
47921
  let rowDef = this.getRowDefinition(rowRef);
47895
47922
  return rowDef ? rowDef.getType() : "";
47896
47923
  };
@@ -47899,7 +47926,7 @@ Grid.prototype.getRowType = function(rowRef) {
47899
47926
  * @param {number|string} rowRef Row index as shown in the view or row id (string)
47900
47927
  * @return {RowDefinition}
47901
47928
  */
47902
- Grid.prototype.getRowDefinition = function(rowRef) {
47929
+ Grid_Grid.prototype.getRowDefinition = function(rowRef) {
47903
47930
  if(typeof rowRef === "number") {
47904
47931
  return this._getRowDefinitionByIndex(rowRef);
47905
47932
  } else if(typeof rowRef === "string") {
@@ -47911,21 +47938,21 @@ Grid.prototype.getRowDefinition = function(rowRef) {
47911
47938
  * @param {number} rowIndex
47912
47939
  * @return {RowDefinition}
47913
47940
  */
47914
- Grid.prototype._getRowDefinitionByIndex = function(rowIndex) {
47941
+ Grid_Grid.prototype._getRowDefinitionByIndex = function(rowIndex) {
47915
47942
  return this._dv.getDataAt(rowIndex, ROW_DEF) || null;
47916
47943
  };
47917
47944
  /** @private
47918
47945
  * @param {string} rowId
47919
47946
  * @return {RowDefinition}
47920
47947
  */
47921
- Grid.prototype._getRowDefinitionById = function(rowId) {
47948
+ Grid_Grid.prototype._getRowDefinitionById = function(rowId) {
47922
47949
  return this._dt.getData(rowId, ROW_DEF) || null;
47923
47950
  };
47924
47951
  /** @private
47925
47952
  * @param {Grid~RowReference} rowRef
47926
47953
  * @return {RowDefinition}
47927
47954
  */
47928
- Grid.prototype._getRowDefinitionByRef = function(rowRef) {
47955
+ Grid_Grid.prototype._getRowDefinitionByRef = function(rowRef) {
47929
47956
  if(rowRef instanceof RowDefinition) {
47930
47957
  if(rowRef.getRowId()) { // The row may have been removed from the grid
47931
47958
  return /** @type{!RowDefinition} */(rowRef);
@@ -47939,14 +47966,14 @@ Grid.prototype._getRowDefinitionByRef = function(rowRef) {
47939
47966
  * @public
47940
47967
  * @return {!Array.<RowDefinition>}
47941
47968
  */
47942
- Grid.prototype.getRowDefinitions = function() {
47969
+ Grid_Grid.prototype.getRowDefinitions = function() {
47943
47970
  return this._dv.getColumnData(ROW_DEF, true); // Include group header rows
47944
47971
  };
47945
47972
  /** Get all row definitions, including filtered and hidden rows, but without group header rows.
47946
47973
  * @private
47947
47974
  * @return {!Array.<RowDefinition>}
47948
47975
  */
47949
- Grid.prototype._getAllRowDefinitions = function() {
47976
+ Grid_Grid.prototype._getAllRowDefinitions = function() {
47950
47977
  return this._dt.getColumnData(ROW_DEF); // no group header rows
47951
47978
  };
47952
47979
 
@@ -47955,7 +47982,7 @@ Grid.prototype._getAllRowDefinitions = function() {
47955
47982
  * @param {boolean=} inclAutoGenerated=false Set to true to include auto generated rows. Default value is false (exclude auto generated rows)
47956
47983
  * @return {!Array.<RowDefinition>}
47957
47984
  */
47958
- Grid.prototype.getAllRowDefinitions = function(inclAutoGenerated) {
47985
+ Grid_Grid.prototype.getAllRowDefinitions = function(inclAutoGenerated) {
47959
47986
  if(inclAutoGenerated) {
47960
47987
  return this._getAllRowDefinitions();
47961
47988
  }
@@ -47966,7 +47993,7 @@ Grid.prototype.getAllRowDefinitions = function(inclAutoGenerated) {
47966
47993
  * @param {number} rowIndex Row index as shown in the view
47967
47994
  * @return {Object} "FIELD1": value1, "FIELD2": value2, ...
47968
47995
  */
47969
- Grid.prototype.getRowData = function(rowIndex) {
47996
+ Grid_Grid.prototype.getRowData = function(rowIndex) {
47970
47997
  return toRowData(this._getRowDefinitionByIndex(rowIndex));
47971
47998
  };
47972
47999
  /** Get data from multiple rows. If null or undefined value is given, data from all rows are returned.
@@ -47979,7 +48006,7 @@ Grid.prototype.getRowData = function(rowIndex) {
47979
48006
  * grid.getMultipleRowData(1); // One row data from the specified row index is returned
47980
48007
  * grid.getMultipleRowData(DataView); // All row data from the specified DataView instance are returned
47981
48008
  */
47982
- Grid.prototype.getMultipleRowData = function(obj) {
48009
+ Grid_Grid.prototype.getMultipleRowData = function(obj) {
47983
48010
  if(typeof obj === "number") {
47984
48011
  return [this.getRowData(obj)];
47985
48012
  }
@@ -48013,7 +48040,7 @@ Grid.prototype.getMultipleRowData = function(obj) {
48013
48040
  * @param {string} ric
48014
48041
  * @param {Object} values {"FIELD1": value1, "FIELD2": value2, ...} Use null to remove current row data (not row in the view).
48015
48042
  */
48016
- Grid.prototype.setRicData = function(ric, values) {
48043
+ Grid_Grid.prototype.setRicData = function(ric, values) {
48017
48044
  let rowDefs = this._connector.getRowDefByRic(ric);
48018
48045
  let rowCount = rowDefs ? rowDefs.length : 0;
48019
48046
  for (let i = 0; i < rowCount; ++i) {
@@ -48027,7 +48054,7 @@ Grid.prototype.setRicData = function(ric, values) {
48027
48054
  * @public
48028
48055
  * @return {Array.<string>}
48029
48056
  */
48030
- Grid.prototype.getAllRics = function() {
48057
+ Grid_Grid.prototype.getAllRics = function() {
48031
48058
  return this._connector.getAllRics();
48032
48059
  };
48033
48060
 
@@ -48035,7 +48062,7 @@ Grid.prototype.getAllRics = function() {
48035
48062
  * @public
48036
48063
  * @return {boolean}
48037
48064
  */
48038
- Grid.prototype.hasRic = function() {
48065
+ Grid_Grid.prototype.hasRic = function() {
48039
48066
  return this._connector.hasRic();
48040
48067
  };
48041
48068
  /** Returns RIC of given row reference.
@@ -48043,7 +48070,7 @@ Grid.prototype.hasRic = function() {
48043
48070
  * @param {(string|number)=} rowRef
48044
48071
  * @return {string}
48045
48072
  */
48046
- Grid.prototype.getRic = function(rowRef) {
48073
+ Grid_Grid.prototype.getRic = function(rowRef) {
48047
48074
  let rowDef = this.getRowDefinition(rowRef);
48048
48075
  return rowDef.getRic();
48049
48076
  };
@@ -48052,7 +48079,7 @@ Grid.prototype.getRic = function(rowRef) {
48052
48079
  * @param {Grid~RowReference} rowRef
48053
48080
  * @param {Object} values {"FIELD1": value1, "FIELD2": value2, ...} Use null to remove current row data (not row in the view).
48054
48081
  */
48055
- Grid.prototype.setRowData = function(rowRef, values) {
48082
+ Grid_Grid.prototype.setRowData = function(rowRef, values) {
48056
48083
  let rowDef = this._getRowDefinitionByRef(rowRef);
48057
48084
  if(rowDef) {
48058
48085
  rowDef.setRowData(values);
@@ -48064,7 +48091,7 @@ Grid.prototype.setRowData = function(rowRef, values) {
48064
48091
  * @param {Grid~RowReference} rowRef
48065
48092
  * @param {Object} values
48066
48093
  */
48067
- Grid.prototype.setStaticRowData = function(rowRef, values) {
48094
+ Grid_Grid.prototype.setStaticRowData = function(rowRef, values) {
48068
48095
  let rowDef = this._getRowDefinitionByRef(rowRef);
48069
48096
  if(rowDef) {
48070
48097
  rowDef.setStaticRowData(values);
@@ -48077,7 +48104,7 @@ Grid.prototype.setStaticRowData = function(rowRef, values) {
48077
48104
  * @param {string} field
48078
48105
  * @param {*} value
48079
48106
  */
48080
- Grid.prototype.setStaticData = function(rowRef, field, value) {
48107
+ Grid_Grid.prototype.setStaticData = function(rowRef, field, value) {
48081
48108
  let rowDef = this._getRowDefinitionByRef(rowRef);
48082
48109
  if(rowDef) {
48083
48110
  rowDef.setStaticData(field, value);
@@ -48088,7 +48115,7 @@ Grid.prototype.setStaticData = function(rowRef, field, value) {
48088
48115
  * @param {Grid~RowReference=} rowRef
48089
48116
  * @return {string}
48090
48117
  */
48091
- Grid.prototype._getRowId = function(rowRef) {
48118
+ Grid_Grid.prototype._getRowId = function(rowRef) {
48092
48119
  if(typeof rowRef === "string") {
48093
48120
  return rowRef;
48094
48121
  } else if(typeof rowRef === "number") { // WARNING: This is view index, excluding hidden row
@@ -48103,7 +48130,7 @@ Grid.prototype._getRowId = function(rowRef) {
48103
48130
  * @param {Grid~ColumnReference} colRef
48104
48131
  * @return {number}
48105
48132
  */
48106
- Grid.prototype.getColumnIndex = function(colRef) {
48133
+ Grid_Grid.prototype.getColumnIndex = function(colRef) {
48107
48134
  if(colRef) {
48108
48135
  if(colRef instanceof ColumnDefinition) {
48109
48136
  let colCount = this.getColumnCount();
@@ -48123,7 +48150,7 @@ Grid.prototype.getColumnIndex = function(colRef) {
48123
48150
  * @param {Array.<Grid~ColumnReference>} colRefs
48124
48151
  * @return {!Array.<number>}
48125
48152
  */
48126
- Grid.prototype.getColumnIndices = function(colRefs) {
48153
+ Grid_Grid.prototype.getColumnIndices = function(colRefs) {
48127
48154
  let ary = [];
48128
48155
  let colCount = this.getColumnCount();
48129
48156
  let inputAry = Array.isArray(colRefs) ? colRefs : [colRefs];
@@ -48143,14 +48170,14 @@ Grid.prototype.getColumnIndices = function(colRefs) {
48143
48170
  * @return {string} Return empty string if no existing id or column
48144
48171
  * @see {@link Grid#getColumnDefinition}
48145
48172
  */
48146
- Grid.prototype.getColumnId = function(colIndex) {
48173
+ Grid_Grid.prototype.getColumnId = function(colIndex) {
48147
48174
  return this._grid.getColumnId(colIndex);
48148
48175
  };
48149
48176
  /** Get ids from each column definition.
48150
48177
  * @public
48151
48178
  * @return {!Array.<string>} New array is created
48152
48179
  */
48153
- Grid.prototype.getColumnIds = function() {
48180
+ Grid_Grid.prototype.getColumnIds = function() {
48154
48181
  return this._grid.getColumnIds();
48155
48182
  };
48156
48183
  /** Return field defined in the column definition
@@ -48159,28 +48186,28 @@ Grid.prototype.getColumnIds = function() {
48159
48186
  * @return {string}
48160
48187
  * @see {@link Grid#getColumnDefinition}
48161
48188
  */
48162
- Grid.prototype.getColumnField = function(colIndex) {
48189
+ Grid_Grid.prototype.getColumnField = function(colIndex) {
48163
48190
  return this._grid.getColumnField(colIndex);
48164
48191
  };
48165
48192
  /** Get fields from each column definition. Note that this does not include any required field or data fields. Duplicates may exist.
48166
48193
  * @public
48167
48194
  * @return {!Array.<string>} New array is created
48168
48195
  */
48169
- Grid.prototype.getColumnFields = function() {
48196
+ Grid_Grid.prototype.getColumnFields = function() {
48170
48197
  return this._grid.getColumnFields();
48171
48198
  };
48172
48199
  /** Get column name from each column definition. Note that this does not include any required field or data fields. Duplicates may exist.
48173
48200
  * @public
48174
48201
  * @return {!Array.<string>} New array is created
48175
48202
  */
48176
- Grid.prototype.getColumnNames = function() {
48203
+ Grid_Grid.prototype.getColumnNames = function() {
48177
48204
  return this.getColumnDefinitions().map(_getName);
48178
48205
  };
48179
48206
  /** Get all fields, including required fields and data fields, with no duplicate
48180
48207
  * @public
48181
48208
  * @return {!Array.<string>} New array is created
48182
48209
  */
48183
- Grid.prototype.getAllFields = function() {
48210
+ Grid_Grid.prototype.getAllFields = function() {
48184
48211
  return this._connector.getAllFields();
48185
48212
  };
48186
48213
  /** Freeze the column at the left side of the table starting from index 0 to the specified colIndex
@@ -48189,7 +48216,7 @@ Grid.prototype.getAllFields = function() {
48189
48216
  * @param {number=} colIndex Negative index is equivalent to null value
48190
48217
  * @param {number=} pinnedRightColumns Number of columns to be pinned/snapped on the right side
48191
48218
  */
48192
- Grid.prototype.freezeColumn = function(colIndex, pinnedRightColumns) {
48219
+ Grid_Grid.prototype.freezeColumn = function(colIndex, pinnedRightColumns) {
48193
48220
  if(colIndex == null) {
48194
48221
  colIndex = -1;
48195
48222
  }
@@ -48203,7 +48230,7 @@ Grid.prototype.freezeColumn = function(colIndex, pinnedRightColumns) {
48203
48230
  * @param {string=} side Available values are: left|right. If no value is supplied, the column will be pinned to the left.
48204
48231
  * @return {boolean}
48205
48232
  */
48206
- Grid.prototype.pinColumn = function(colRef, side) {
48233
+ Grid_Grid.prototype.pinColumn = function(colRef, side) {
48207
48234
  if(Array.isArray(colRef)) {
48208
48235
  let ary = colRef;
48209
48236
  let len = ary.length;
@@ -48221,7 +48248,7 @@ Grid.prototype.pinColumn = function(colRef, side) {
48221
48248
  * @param {string=} side Available values are: left|right. If no value is supplied, the column will be pinned to the left.
48222
48249
  * @return {boolean}
48223
48250
  */
48224
- Grid.prototype._pinColumn = function(colRef, side) {
48251
+ Grid_Grid.prototype._pinColumn = function(colRef, side) {
48225
48252
  let colIndex = this.getColumnIndex(colRef);
48226
48253
  let colCount = this.getColumnCount();
48227
48254
  if(colIndex < 0 || colIndex > colCount) {
@@ -48270,7 +48297,7 @@ Grid.prototype._pinColumn = function(colRef, side) {
48270
48297
  * @param {Grid~ColumnReference=} dest The unpinned column will be placed before the destination position after the operation
48271
48298
  * @return {boolean}
48272
48299
  */
48273
- Grid.prototype.unpinColumn = function(colRef, dest) {
48300
+ Grid_Grid.prototype.unpinColumn = function(colRef, dest) {
48274
48301
  if(Array.isArray(colRef)) {
48275
48302
  let ary = colRef;
48276
48303
  let len = ary.length;
@@ -48288,7 +48315,7 @@ Grid.prototype.unpinColumn = function(colRef, dest) {
48288
48315
  * @param {Grid~ColumnReference=} dest The unpinned column will be placed before the destination position after the operation
48289
48316
  * @return {boolean}
48290
48317
  */
48291
- Grid.prototype._unpinColumn = function(colRef, dest) {
48318
+ Grid_Grid.prototype._unpinColumn = function(colRef, dest) {
48292
48319
  let colIndex = this.getColumnIndex(colRef);
48293
48320
  if(colIndex < 0) {
48294
48321
  return false;
@@ -48339,7 +48366,7 @@ Grid.prototype._unpinColumn = function(colRef, dest) {
48339
48366
  * @public
48340
48367
  * @return {boolean}
48341
48368
  */
48342
- Grid.prototype.unpinAllColumns = function() {
48369
+ Grid_Grid.prototype.unpinAllColumns = function() {
48343
48370
  let leftPinnedCount = this._grid.getPinnedLeftColumnCount();
48344
48371
  let rightPinnedCount = this._grid.getPinnedRightColumnCount();
48345
48372
  if(!leftPinnedCount && !rightPinnedCount) {
@@ -48352,7 +48379,7 @@ Grid.prototype.unpinAllColumns = function() {
48352
48379
  /** @private
48353
48380
  * @param {Object} e
48354
48381
  */
48355
- Grid.prototype._onColumnHeaderBinding = function(e) {
48382
+ Grid_Grid.prototype._onColumnHeaderBinding = function(e) {
48356
48383
  if(e["sectionType"] !== "title" || e["sectionIndex"] > 0) {
48357
48384
  return; // WARNING: Assume that only the first title section is owned by the grid. Anything else is assumed to be generated by plugins
48358
48385
  }
@@ -48367,7 +48394,7 @@ Grid.prototype._onColumnHeaderBinding = function(e) {
48367
48394
  * @param {number=} colIndex
48368
48395
  * @param {Object} arg
48369
48396
  */
48370
- Grid.prototype._renderColumnHeader = function(colIndex, arg) {
48397
+ Grid_Grid.prototype._renderColumnHeader = function(colIndex, arg) {
48371
48398
  let colDef = this.getColumnDefinition(colIndex);
48372
48399
  if(!colDef) {
48373
48400
  return;
@@ -48401,7 +48428,7 @@ Grid.prototype._renderColumnHeader = function(colIndex, arg) {
48401
48428
  };
48402
48429
  /** @public
48403
48430
  */
48404
- Grid.prototype.updateColumnTitle = function() {
48431
+ Grid_Grid.prototype.updateColumnTitle = function() {
48405
48432
  if(this._columnTitleConflator.conflate()) {
48406
48433
  return;
48407
48434
  }
@@ -48413,31 +48440,31 @@ Grid.prototype.updateColumnTitle = function() {
48413
48440
  /** @public
48414
48441
  * @return {boolean}
48415
48442
  */
48416
- Grid.prototype.isSorting = function() {
48443
+ Grid_Grid.prototype.isSorting = function() {
48417
48444
  return this._stp.isSorting();
48418
48445
  };
48419
48446
  /** @public
48420
48447
  * @return {number}
48421
48448
  */
48422
- Grid.prototype.getSortedColumnIndex = function() {
48449
+ Grid_Grid.prototype.getSortedColumnIndex = function() {
48423
48450
  return this._stp.getSortedColumnIndex();
48424
48451
  };
48425
48452
  /** @public
48426
48453
  * @return {string} "a" for "ascending, "d" for descending, and "n" for none/noOrder
48427
48454
  */
48428
- Grid.prototype.getSortOrder = function() {
48455
+ Grid_Grid.prototype.getSortOrder = function() {
48429
48456
  return this._stp.getSortOrder();
48430
48457
  };
48431
48458
  /** @public
48432
48459
  */
48433
- Grid.prototype.clearSort = function() {
48460
+ Grid_Grid.prototype.clearSort = function() {
48434
48461
  this._stp.clearSortState(); // WARNING: No event is dispatched
48435
48462
  };
48436
48463
  /** Get sorting states from sorting columns
48437
48464
  * @public
48438
48465
  * @return {!Array.<Object>} Array of sorting states ordered by priority. If there is no sorting column, an empty array is returned
48439
48466
  */
48440
- Grid.prototype.getSortingStates = function () { // This method is mainly for backward compatability
48467
+ Grid_Grid.prototype.getSortingStates = function () { // This method is mainly for backward compatability
48441
48468
  let ary = [];
48442
48469
  let states = this._stp.getSortingStates();
48443
48470
  let stateCount = states.length;
@@ -48460,7 +48487,7 @@ Grid.prototype.getSortingStates = function () { // This method is mainly for bac
48460
48487
  * @private
48461
48488
  * @param {Object} e Event object from quote2
48462
48489
  */
48463
- Grid.prototype._onQuote2PostUpdate = function (e) {
48490
+ Grid_Grid.prototype._onQuote2PostUpdate = function (e) {
48464
48491
  if(e.childOrderChange) { // For dynamic chain when CHILD_ORDER from the server change, it will be call sort children
48465
48492
  if(!this.isSorting()) {
48466
48493
  // Use rowDef for get CHILD_ORDER to sort
@@ -48473,7 +48500,7 @@ Grid.prototype._onQuote2PostUpdate = function (e) {
48473
48500
  * @private
48474
48501
  * @param {Object} e
48475
48502
  */
48476
- Grid.prototype._onQ2DataChanged = function (e) {
48503
+ Grid_Grid.prototype._onQ2DataChanged = function (e) {
48477
48504
  let rowDef = this._getRowDefinitionById(e["subId"]);
48478
48505
  if(!rowDef) {
48479
48506
  return; // WARNING: This should not be happened because row has been removed but the data is still received
@@ -48521,7 +48548,7 @@ Grid.prototype._onQ2DataChanged = function (e) {
48521
48548
  /** @private
48522
48549
  * @param {RowDefinition} rowDef
48523
48550
  */
48524
- Grid.prototype._registerConstituents = function(rowDef) {
48551
+ Grid_Grid.prototype._registerConstituents = function(rowDef) {
48525
48552
  if(this._chainConflator.conflate(rowDef)) {
48526
48553
  return;
48527
48554
  }
@@ -48595,12 +48622,22 @@ Grid.prototype._registerConstituents = function(rowDef) {
48595
48622
  /** @private
48596
48623
  * @param {Object} e
48597
48624
  */
48598
- Grid.prototype._onDataChanged = function(e) {
48599
- if(this._dt && e && e["rid"] && e["changes"]) {
48600
- let rowDef = this._getRowDefinitionById(e["rid"]);
48601
- if(rowDef) {
48602
- if(rowDef.addUpdate(e["changes"])) { // This is the only place that update array can grow. It is used for blinking data.
48603
- this._dt._hasNewUpdates = true; // Mark data table for cleaning it up later
48625
+ Grid_Grid.prototype._onDataChanged = function(e) {
48626
+ if(!this._dt) {
48627
+ return;
48628
+ }
48629
+ if(e) {
48630
+ if(e["initialChanges"] && !this._dt.hasSegmentClassification()) {
48631
+ return;
48632
+ }
48633
+
48634
+ // TODO: Insertion should also be addressed here.
48635
+ if(e["rid"] && e["changes"]) {
48636
+ let rowDef = this._getRowDefinitionById(e["rid"]);
48637
+ if(rowDef) {
48638
+ if(rowDef.addUpdate(e["changes"])) { // This is the only place that update array can grow. It is used for blinking data.
48639
+ this._hasNewUpdates = true; // Mark data table for cleaning it up later
48640
+ }
48604
48641
  }
48605
48642
  }
48606
48643
  }
@@ -48609,16 +48646,14 @@ Grid.prototype._onDataChanged = function(e) {
48609
48646
  return;
48610
48647
  }
48611
48648
 
48612
- if(this._dt) {
48613
- this._dt.classifySegments();
48614
- this._dt.dispatchGlobalChange();
48615
- }
48649
+ this._dt.classifySegments();
48650
+ this._dt.dispatchGlobalChange();
48616
48651
  };
48617
48652
 
48618
48653
  /** @private
48619
48654
  * @param {Object} e
48620
48655
  */
48621
- Grid.prototype._onPreDataSorting = function (e) {
48656
+ Grid_Grid.prototype._onPreDataSorting = function (e) {
48622
48657
  let objs = this._stp.getSortedColumns();
48623
48658
 
48624
48659
  this._sorter.reset();
@@ -48654,29 +48689,30 @@ Grid.prototype._onPreDataSorting = function (e) {
48654
48689
  * @param {number} order
48655
48690
  * @return {number}
48656
48691
  */
48657
- Grid.prototype._mainSorter = function (rowDefA, rowDefB, order) {
48692
+ Grid_Grid.prototype._mainSorter = function (rowDefA, rowDefB, order) {
48658
48693
  return this._columnSorter(rowDefA, rowDefB, order);
48659
48694
  };
48660
48695
 
48661
48696
  /** @private
48662
48697
  * @param {Object} e
48663
48698
  */
48664
- Grid.prototype._onPostSectionDataBinding = function(e) {
48699
+ Grid_Grid.prototype._onPostSectionDataBinding = function(e) {
48665
48700
  if(e["actualUpdate"]) {
48666
48701
  this._asyncClearDataUpdates();
48667
48702
  }
48668
48703
  };
48669
48704
  /** @private
48670
48705
  */
48671
- Grid.prototype._asyncClearDataUpdates = function() {
48706
+ Grid_Grid.prototype._asyncClearDataUpdates = function() {
48672
48707
  setTimeout(this._clearDataUpdates, 0);
48673
48708
  };
48674
48709
  /** @private
48675
48710
  */
48676
- Grid.prototype._clearDataUpdates = function() {
48677
- if(!this._dt || !this._dt._hasNewUpdates) {
48711
+ Grid_Grid.prototype._clearDataUpdates = function() {
48712
+ if(!this._dt || !this._hasNewUpdates) {
48678
48713
  return;
48679
48714
  }
48715
+ this._hasNewUpdates = false;
48680
48716
  let rowIds = this._dt.getAllRowIds(true); // Use shallow copy for speed
48681
48717
  for(let i = rowIds.length; --i >= 0;) {
48682
48718
  let rowData = this._dt.getRowData(rowIds[i]);
@@ -48688,38 +48724,38 @@ Grid.prototype._clearDataUpdates = function() {
48688
48724
  /** @public
48689
48725
  * @return {DataView}
48690
48726
  */
48691
- Grid.prototype.getDataView = function() {
48727
+ Grid_Grid.prototype.getDataView = function() {
48692
48728
  return this._dv;
48693
48729
  };
48694
48730
  /** @public
48695
48731
  * @param {number} pageIndex
48696
48732
  * @return {boolean}
48697
48733
  */
48698
- Grid.prototype.setPage = function(pageIndex) {
48734
+ Grid_Grid.prototype.setPage = function(pageIndex) {
48699
48735
  return this._dv.setPage(pageIndex);
48700
48736
  };
48701
48737
  /** @public
48702
48738
  * @param {number} size
48703
48739
  */
48704
- Grid.prototype.setPageSize = function(size) {
48740
+ Grid_Grid.prototype.setPageSize = function(size) {
48705
48741
  this._dv.setPageSize(size);
48706
48742
  };
48707
48743
  /** @public
48708
48744
  * @return {number}
48709
48745
  */
48710
- Grid.prototype.getPageIndex = function() {
48746
+ Grid_Grid.prototype.getPageIndex = function() {
48711
48747
  return this._dv.getPageIndex();
48712
48748
  };
48713
48749
  /** @public
48714
48750
  * @return {number}
48715
48751
  */
48716
- Grid.prototype.getPageSize = function() {
48752
+ Grid_Grid.prototype.getPageSize = function() {
48717
48753
  return this._dv.getPageSize();
48718
48754
  };
48719
48755
  /** @public
48720
48756
  * @return {number}
48721
48757
  */
48722
- Grid.prototype.getPageCount = function() {
48758
+ Grid_Grid.prototype.getPageCount = function() {
48723
48759
  return this._dv.getPageCount();
48724
48760
  };
48725
48761
 
@@ -48727,7 +48763,7 @@ Grid.prototype.getPageCount = function() {
48727
48763
  * @public
48728
48764
  * @param {Grid~RowReference} rowRef
48729
48765
  */
48730
- Grid.prototype.toggleChain = function(rowRef) {
48766
+ Grid_Grid.prototype.toggleChain = function(rowRef) {
48731
48767
  let rowDef = this._getRowDefinitionByRef(rowRef);
48732
48768
  if(rowDef) {
48733
48769
  rowDef.toggleChain();
@@ -48739,7 +48775,7 @@ Grid.prototype.toggleChain = function(rowRef) {
48739
48775
  * @param {Array.<string>} fields
48740
48776
  * @return {boolean}
48741
48777
  */
48742
- Grid.prototype.setClassification = function(rowRef, fields) {
48778
+ Grid_Grid.prototype.setClassification = function(rowRef, fields) {
48743
48779
  let rowDef = this._getRowDefinitionByRef(rowRef);
48744
48780
  if(rowDef) {
48745
48781
  return this._dt.setSegmentClassification(rowDef.getRowId(), fields);
@@ -48752,7 +48788,7 @@ Grid.prototype.setClassification = function(rowRef, fields) {
48752
48788
  * @param {Element} elem
48753
48789
  * @return {boolean}=true if an element from the parameter is inside a grid element
48754
48790
  */
48755
- Grid.prototype.contains = function(elem) {
48791
+ Grid_Grid.prototype.contains = function(elem) {
48756
48792
  if(elem) {
48757
48793
  // This will impact the contents within the rt-grid element, but not those outside of it, such as the wrapper elements atlas-blotter and ef-grid.
48758
48794
  return this._topNode.contains(elem);
@@ -48764,7 +48800,7 @@ Grid.prototype.contains = function(elem) {
48764
48800
  * @public
48765
48801
  * @return {boolean}
48766
48802
  */
48767
- Grid.prototype.isFocused = function() {
48803
+ Grid_Grid.prototype.isFocused = function() {
48768
48804
  let activeElement = document.activeElement;
48769
48805
  if(!activeElement || !activeElement.shadowRoot) {
48770
48806
  // active element is not in the shadow DOM. try using contains method to check
@@ -48776,19 +48812,19 @@ Grid.prototype.isFocused = function() {
48776
48812
  /** @description Focus grid element without moving window scrollbar
48777
48813
  * @public
48778
48814
  */
48779
- Grid.prototype.focus = function() {
48815
+ Grid_Grid.prototype.focus = function() {
48780
48816
  this._grid.focus();
48781
48817
  };
48782
48818
  /** Request re-rendering of content row by triggering data binding event without any change in data model
48783
48819
  * @public
48784
48820
  */
48785
- Grid.prototype.requestRowRefresh = function() {
48821
+ Grid_Grid.prototype.requestRowRefresh = function() {
48786
48822
  this._grid.requestRowRefresh();
48787
48823
  };
48788
48824
  /** Force recalculation of grid's layout
48789
48825
  * @public
48790
48826
  */
48791
- Grid.prototype.updateLayout = function() {
48827
+ Grid_Grid.prototype.updateLayout = function() {
48792
48828
  this._grid.updateLayout();
48793
48829
  };
48794
48830
  /** Get extension instance
@@ -48796,7 +48832,7 @@ Grid.prototype.updateLayout = function() {
48796
48832
  * @param {string} str Extension name
48797
48833
  * @return {*} Returns null, if the specified extension does not exist
48798
48834
  */
48799
- Grid.prototype.getExtension = function(str) {
48835
+ Grid_Grid.prototype.getExtension = function(str) {
48800
48836
  if(str) {
48801
48837
  return this._grid.getPlugin(str.replace(/Extension/ig, ""));
48802
48838
  }
@@ -48806,7 +48842,7 @@ Grid.prototype.getExtension = function(str) {
48806
48842
  /** @private
48807
48843
  * @param {Object} e
48808
48844
  */
48809
- Grid.prototype._onFormulaDataChanged = function(e) {
48845
+ Grid_Grid.prototype._onFormulaDataChanged = function(e) {
48810
48846
  if (this._formulaConflator.conflate()) {
48811
48847
  return;
48812
48848
  }
@@ -48818,7 +48854,7 @@ Grid.prototype._onFormulaDataChanged = function(e) {
48818
48854
  /** @private
48819
48855
  * @param {Object} e
48820
48856
  */
48821
- Grid.prototype._onFormulaDataRequired = function(e) {
48857
+ Grid_Grid.prototype._onFormulaDataRequired = function(e) {
48822
48858
  // if(obj["field"]) {
48823
48859
  // this._registerFieldToDataProvider(obj); TODO
48824
48860
  // if(this._dataRequiredTimerId) {
@@ -48831,10 +48867,14 @@ Grid.prototype._onFormulaDataRequired = function(e) {
48831
48867
  /** @private
48832
48868
  * @param {Object} e
48833
48869
  */
48834
- Grid.prototype._onDataComposed = function(e) {
48870
+ Grid_Grid.prototype._onDataComposed = function(e) {
48835
48871
  let values = e["changes"];
48836
48872
  if(!values) {
48837
- return; // Cannot do data composition if there is no change in data
48873
+ if(e["initialChanges"]) {
48874
+ values = e["changes"] = e["initialChanges"]; // Need to keep e["changes"] for backward compatibility.
48875
+ } else {
48876
+ return; // Cannot do data composition if there is no change in data
48877
+ }
48838
48878
  }
48839
48879
 
48840
48880
  if(!e["rowData"]) {
@@ -48842,7 +48882,7 @@ Grid.prototype._onDataComposed = function(e) {
48842
48882
  }
48843
48883
 
48844
48884
  let rowId = e["rid"];
48845
- let rowDef = this._getRowDefinitionById(rowId);
48885
+ let rowDef = e["rowDef"] || this._getRowDefinitionById(rowId);
48846
48886
  if(!rowDef) {
48847
48887
  rowDef = this._constituentMap ? this._constituentMap[rowId] : null; // Row def could be in pending for adding to view
48848
48888
  if(!rowDef) {
@@ -48884,7 +48924,7 @@ Grid.prototype._onDataComposed = function(e) {
48884
48924
  /** @private
48885
48925
  * @param {Object} e
48886
48926
  */
48887
- Grid.prototype._onSubSegmentChanged = function(e) {
48927
+ Grid_Grid.prototype._onSubSegmentChanged = function(e) {
48888
48928
  let insertionList = /** @type{Array.<Segment>} */(e["insertionList"]);
48889
48929
  let removalList = /** @type{Array.<string>} */(e["removalList"]);
48890
48930
  let removedRows = /** @type{Object} */(e["removedRows"]);
@@ -48912,15 +48952,17 @@ Grid.prototype._onSubSegmentChanged = function(e) {
48912
48952
  rowDef = new RowDefinition({
48913
48953
  "segmentId": segmentId // WARNING: This could cause row id duplication
48914
48954
  });
48955
+ if(rowDef.setDataSource(this._dc)) { // auto generated row does not require a subscription
48956
+ this._hasNewUpdates = true; // Mark data table for cleaning it up later
48957
+ }
48915
48958
  rowDef.registerToView(this._dv);
48916
- rowDef.setDataSource(this._dc); // auto generated row does not require a subscription
48917
48959
  }
48918
48960
  };
48919
48961
 
48920
48962
  /** @private
48921
48963
  * @param {Object=} e
48922
48964
  */
48923
- Grid.prototype._recalculateFormulas = function(e) {
48965
+ Grid_Grid.prototype._recalculateFormulas = function(e) {
48924
48966
  if(!this._fnEngine || this._fnEngine.getFormulaCount() <= 0) {
48925
48967
  return;
48926
48968
  }
@@ -48940,7 +48982,7 @@ Grid.prototype._recalculateFormulas = function(e) {
48940
48982
  /** @private
48941
48983
  * @param {Object} e The updated data from snapshot filler when it request data from JET/RTK
48942
48984
  */
48943
- Grid.prototype._snapshotFillerDataChanged = function (e) {
48985
+ Grid_Grid.prototype._snapshotFillerDataChanged = function (e) {
48944
48986
  if (!this._dt) return;
48945
48987
 
48946
48988
  let data = e.data;
@@ -48959,7 +49001,7 @@ Grid.prototype._snapshotFillerDataChanged = function (e) {
48959
49001
  };
48960
49002
  /** @private
48961
49003
  */
48962
- Grid.prototype._startPolling = function () {
49004
+ Grid_Grid.prototype._startPolling = function () {
48963
49005
  if(this._pollingEnabled && this._pollingInterval) {
48964
49006
  if(this._lastPollingRequest && !this._pollingTimerId) {
48965
49007
  let now = new Date();
@@ -48970,7 +49012,7 @@ Grid.prototype._startPolling = function () {
48970
49012
  };
48971
49013
  /** @private
48972
49014
  */
48973
- Grid.prototype._onPollingInterval = function () {
49015
+ Grid_Grid.prototype._onPollingInterval = function () {
48974
49016
  this._pollingTimerId = 0;
48975
49017
  if(this._pollingEnabled && this._pollingInterval) {
48976
49018
  this.refreshADCData();
@@ -48980,7 +49022,7 @@ Grid.prototype._onPollingInterval = function () {
48980
49022
  /** @public
48981
49023
  * @param {boolean=} activated=true
48982
49024
  */
48983
- Grid.prototype.activateADCPolling = function (activated) {
49025
+ Grid_Grid.prototype.activateADCPolling = function (activated) {
48984
49026
  if(activated !== false) {
48985
49027
  this._pollingEnabled = true;
48986
49028
  // Make immediate request after re-activation if it has been a long time
@@ -49000,7 +49042,7 @@ Grid.prototype.activateADCPolling = function (activated) {
49000
49042
  * @public
49001
49043
  * @return {boolean} Return true, if a request has been made
49002
49044
  */
49003
- Grid.prototype.refreshADCData = function () {
49045
+ Grid_Grid.prototype.refreshADCData = function () {
49004
49046
  let dirty = this._snapshot.addFields(this._connector.getAllFields());
49005
49047
  if(dirty) {
49006
49048
  dirty = this._snapshot.addRics(this._connector.getAllRics());
@@ -49014,7 +49056,7 @@ Grid.prototype.refreshADCData = function () {
49014
49056
 
49015
49057
  /** @private
49016
49058
  */
49017
- Grid.prototype._onAutoLayoutUpdate = function() {
49059
+ Grid_Grid.prototype._onAutoLayoutUpdate = function() {
49018
49060
  let elem = this._topNode;
49019
49061
 
49020
49062
  let cw = elem.clientWidth;
@@ -49028,7 +49070,7 @@ Grid.prototype._onAutoLayoutUpdate = function() {
49028
49070
  * @public
49029
49071
  * @param {Object=} opt_options { "colNames": Array.<string>, "rowCount": number, "startIndex": number, "getter": function(Object, string):* }
49030
49072
  */
49031
- Grid.prototype.logDT = function(opt_options) {
49073
+ Grid_Grid.prototype.logDT = function(opt_options) {
49032
49074
  let rowDefs = this._getAllRowDefinitions();
49033
49075
  this._logData(rowDefs, opt_options);
49034
49076
  };
@@ -49046,7 +49088,7 @@ Grid.prototype.logDT = function(opt_options) {
49046
49088
  // }
49047
49089
  grid.logDV({"rowCount": 10}); // Showing 10 records
49048
49090
  */
49049
- Grid.prototype.logDV = function(opt_options) {
49091
+ Grid_Grid.prototype.logDV = function(opt_options) {
49050
49092
  let rowDefs = this.getRowDefinitions();
49051
49093
  this._logData(rowDefs, opt_options);
49052
49094
  };
@@ -49055,7 +49097,7 @@ Grid.prototype.logDV = function(opt_options) {
49055
49097
  * @param {!Array.<RowDefinition>} rowDefs
49056
49098
  * @param {Object=} options
49057
49099
  */
49058
- Grid.prototype._logData = function(rowDefs, options) {
49100
+ Grid_Grid.prototype._logData = function(rowDefs, options) {
49059
49101
  if(!options) {
49060
49102
  options = {};
49061
49103
  }
@@ -49076,7 +49118,7 @@ Grid.prototype._logData = function(rowDefs, options) {
49076
49118
  * @param {(RowDefinition~Options|string)=} rowOption
49077
49119
  * @returns {RowDefinition} Returns null, if the row is not replaced. Otherwise, a newly created row is returned
49078
49120
  */
49079
- Grid.prototype.replaceRow = function(rowRef, rowOption) {
49121
+ Grid_Grid.prototype.replaceRow = function(rowRef, rowOption) {
49080
49122
  let insertPos = this._getRowId(rowRef);
49081
49123
  let rowDef = this._getRowDefinitionById(insertPos);
49082
49124
 
@@ -49108,7 +49150,7 @@ Grid.prototype.replaceRow = function(rowRef, rowOption) {
49108
49150
  * @param {boolean=} leftOfView Default is false. If true, the specified column will be put at the leftmost of the view (no offset)
49109
49151
  * @returns {boolean} Return true, if there is any change
49110
49152
  */
49111
- Grid.prototype.scrollToColumn = function (colIndex, leftOfView) {
49153
+ Grid_Grid.prototype.scrollToColumn = function (colIndex, leftOfView) {
49112
49154
  return this._grid.scrollToColumn(colIndex, leftOfView);
49113
49155
  };
49114
49156
  /** Scroll the view to the specified row. If the row is already in the view, nothing happens. If the row is outside of the view, the view will be moved to the row with some additional offsets
@@ -49116,7 +49158,7 @@ Grid.prototype.scrollToColumn = function (colIndex, leftOfView) {
49116
49158
  * @param {number} rowIndex
49117
49159
  * @param {boolean=} topOfView=false If true, the specified row will be put at the top of the view (no offset)
49118
49160
  */
49119
- Grid.prototype.scrollToRow = function (rowIndex, topOfView) {
49161
+ Grid_Grid.prototype.scrollToRow = function (rowIndex, topOfView) {
49120
49162
  this._grid.scrollToRow("content", rowIndex, topOfView);
49121
49163
  };
49122
49164
 
@@ -49124,14 +49166,14 @@ Grid.prototype.scrollToRow = function (rowIndex, topOfView) {
49124
49166
  * @public
49125
49167
  * @returns {number} pixels
49126
49168
  */
49127
- Grid.prototype.getScrollLeft = function () {
49169
+ Grid_Grid.prototype.getScrollLeft = function () {
49128
49170
  return this._grid.getScrollLeft();
49129
49171
  };
49130
49172
  /** Get scroll value in pixel from the vertical scrollbar
49131
49173
  * @public
49132
49174
  * @returns {number} pixels
49133
49175
  */
49134
- Grid.prototype.getScrollTop = function () {
49176
+ Grid_Grid.prototype.getScrollTop = function () {
49135
49177
  return this._grid.getScrollTop();
49136
49178
  };
49137
49179
 
@@ -49140,7 +49182,7 @@ Grid.prototype.getScrollTop = function () {
49140
49182
  * @param {number} pixels
49141
49183
  * @see {@link Grid.scrollRight}
49142
49184
  */
49143
- Grid.prototype.setScrollLeft = function (pixels) {
49185
+ Grid_Grid.prototype.setScrollLeft = function (pixels) {
49144
49186
  this._grid.setScrollLeft(pixels);
49145
49187
  };
49146
49188
  /** Set scroll value to the vertical scrollbar. This will move the scrollbar to specific position
@@ -49148,7 +49190,7 @@ Grid.prototype.setScrollLeft = function (pixels) {
49148
49190
  * @param {number} pixels
49149
49191
  * @see {@link Grid.scrollDown}
49150
49192
  */
49151
- Grid.prototype.setScrollTop = function (pixels) {
49193
+ Grid_Grid.prototype.setScrollTop = function (pixels) {
49152
49194
  this._grid.setScrollTop(pixels);
49153
49195
  };
49154
49196
 
@@ -49157,7 +49199,7 @@ Grid.prototype.setScrollTop = function (pixels) {
49157
49199
  * @param {number} pixels
49158
49200
  * @see {@link Grid.setScrollLeft}
49159
49201
  */
49160
- Grid.prototype.scrollRight = function (pixels) {
49202
+ Grid_Grid.prototype.scrollRight = function (pixels) {
49161
49203
  this._grid.scrollRight(pixels);
49162
49204
  };
49163
49205
  /** Scroll the view down by the specified value. Use negative value to scroll the view to the top
@@ -49165,7 +49207,7 @@ Grid.prototype.scrollRight = function (pixels) {
49165
49207
  * @param {number} pixels
49166
49208
  * @see {@link Grid.setScrollTop}
49167
49209
  */
49168
- Grid.prototype.scrollDown = function (pixels) {
49210
+ Grid_Grid.prototype.scrollDown = function (pixels) {
49169
49211
  this._grid.scrollDown(pixels);
49170
49212
  };
49171
49213
 
@@ -49173,14 +49215,14 @@ Grid.prototype.scrollDown = function (pixels) {
49173
49215
  * @public
49174
49216
  * @returns {number}
49175
49217
  */
49176
- Grid.prototype.getScrollWidth = function () {
49218
+ Grid_Grid.prototype.getScrollWidth = function () {
49177
49219
  return this._grid.getScrollWidth();
49178
49220
  };
49179
49221
  /** Get height of scrollable area from the vertical scrollbar. This is useful for determining the end of scrollbar
49180
49222
  * @public
49181
49223
  * @returns {number}
49182
49224
  */
49183
- Grid.prototype.getScrollHeight = function () {
49225
+ Grid_Grid.prototype.getScrollHeight = function () {
49184
49226
  return this._grid.getScrollHeight();
49185
49227
  };
49186
49228
 
@@ -49188,7 +49230,7 @@ Grid.prototype.getScrollHeight = function () {
49188
49230
  * @public
49189
49231
  * @returns {Object} Returns null, if vertical scrollbar does not exists
49190
49232
  */
49191
- Grid.prototype.getVScrollView = function () {
49233
+ Grid_Grid.prototype.getVScrollView = function () {
49192
49234
  return this._grid.getVScrollView();
49193
49235
  };
49194
49236
 
@@ -49197,7 +49239,7 @@ Grid.prototype.getVScrollView = function () {
49197
49239
  * @param {Object} args
49198
49240
  * @return {boolean}
49199
49241
  */
49200
- Grid.prototype._focusCell = function(cell, args) {
49242
+ Grid_Grid.prototype._focusCell = function(cell, args) {
49201
49243
  if(cell) {
49202
49244
  let cellContent = cell.getContent();
49203
49245
  if(cellContent) {
@@ -49228,7 +49270,7 @@ Grid.prototype._focusCell = function(cell, args) {
49228
49270
  };
49229
49271
  /** @private
49230
49272
  */
49231
- Grid.prototype._onVScroll = function() {
49273
+ Grid_Grid.prototype._onVScroll = function() {
49232
49274
  let args = this._focusingArgs;
49233
49275
  if(args) {
49234
49276
  args.timeoutId = _clearTimeout(args.timeoutId);
@@ -49245,12 +49287,12 @@ Grid.prototype._onVScroll = function() {
49245
49287
  };
49246
49288
  /** @private
49247
49289
  */
49248
- Grid.prototype._onScrollTimeout = function() {
49290
+ Grid_Grid.prototype._onScrollTimeout = function() {
49249
49291
  this._focusingArgs = null;
49250
49292
  };
49251
49293
  /** @private
49252
49294
  */
49253
- Grid.prototype._selfScrollToRow = function() {
49295
+ Grid_Grid.prototype._selfScrollToRow = function() {
49254
49296
  let args = this._focusingArgs;
49255
49297
  if(args) {
49256
49298
  args.id = 0;
@@ -49260,7 +49302,7 @@ Grid.prototype._selfScrollToRow = function() {
49260
49302
  /** @private
49261
49303
  * @param {Object} args
49262
49304
  */
49263
- Grid.prototype._requestScroll = function(args) {
49305
+ Grid_Grid.prototype._requestScroll = function(args) {
49264
49306
  if(!this._focusingArgs) {
49265
49307
  this._focusingArgs = args;
49266
49308
  args.event = null; // The event is invalid after the scroll
@@ -49271,7 +49313,7 @@ Grid.prototype._requestScroll = function(args) {
49271
49313
  /** @private
49272
49314
  * @param {Object} args
49273
49315
  */
49274
- Grid.prototype._focusNextCellContent = function(args) {
49316
+ Grid_Grid.prototype._focusNextCellContent = function(args) {
49275
49317
  let colIndex = args.colIndex;
49276
49318
  let rowIndex = args.rowIndex;
49277
49319
  if(rowIndex < 0 || rowIndex == null) {
@@ -49324,7 +49366,7 @@ Grid.prototype._focusNextCellContent = function(args) {
49324
49366
  /** @private
49325
49367
  * @param {Object} args
49326
49368
  */
49327
- Grid.prototype._focusPrevCellContent = function(args) {
49369
+ Grid_Grid.prototype._focusPrevCellContent = function(args) {
49328
49370
  let colIndex = args.colIndex;
49329
49371
  let rowIndex = args.rowIndex;
49330
49372
  if(rowIndex < 0 || rowIndex == null) {
@@ -49377,7 +49419,7 @@ Grid.prototype._focusPrevCellContent = function(args) {
49377
49419
  /** @private
49378
49420
  * @param {Object} e
49379
49421
  */
49380
- Grid.prototype._onTabNavigation = function(e) {
49422
+ Grid_Grid.prototype._onTabNavigation = function(e) {
49381
49423
  if(this._focusingArgs) {
49382
49424
  return; // Cannot do another tab navigation while waiting for scrolling
49383
49425
  }
@@ -49423,7 +49465,7 @@ Grid.prototype._onTabNavigation = function(e) {
49423
49465
  * @ignore
49424
49466
  * @return {!Object}
49425
49467
  */
49426
- Grid.prototype._getEventHandlers = function() {
49468
+ Grid_Grid.prototype._getEventHandlers = function() {
49427
49469
  return {
49428
49470
  "tabNavigation": this._onTabNavigation,
49429
49471
  "q2DataChanged": this._onQ2DataChanged
@@ -49431,9 +49473,9 @@ Grid.prototype._getEventHandlers = function() {
49431
49473
  };
49432
49474
 
49433
49475
 
49434
- /* harmony default export */ var js_Grid = (Grid);
49476
+ /* harmony default export */ const js_Grid = ((/* unused pure expression or super */ null && (Grid_Grid)));
49435
49477
 
49436
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/DataSet.js
49478
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/DataSet.js
49437
49479
  /**
49438
49480
  * @namespace
49439
49481
  */
@@ -49824,10 +49866,10 @@ DataSet.country = [
49824
49866
  {"name": "Zimbabwe", "code": "ZW"}
49825
49867
  ];
49826
49868
 
49827
- /* harmony default export */ var jet_DataSet = (DataSet);
49869
+ /* harmony default export */ const jet_DataSet = (DataSet);
49828
49870
 
49829
49871
 
49830
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/DataGenerator.js
49872
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/DataGenerator.js
49831
49873
 
49832
49874
 
49833
49875
  /** @typedef {Object} DataGenerator~DataOptions
@@ -50663,10 +50705,10 @@ DataGenerator.randString = randString;
50663
50705
  DataGenerator.toRecords = toRecords;
50664
50706
 
50665
50707
 
50666
- /* harmony default export */ var jet_DataGenerator = (DataGenerator);
50708
+ /* harmony default export */ const jet_DataGenerator = ((/* unused pure expression or super */ null && (DataGenerator)));
50667
50709
 
50668
50710
 
50669
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockQuotes.js
50711
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockQuotes.js
50670
50712
 
50671
50713
 
50672
50714
  /** @constructor */
@@ -50867,7 +50909,7 @@ MockSubscription.prototype._getUpdateData = function(ric) {
50867
50909
 
50868
50910
 
50869
50911
 
50870
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/CollectionDict.js
50912
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/CollectionDict.js
50871
50913
  /** @description CollectionDict stores a collection (Array) of any value using a text (string) as a key for accessing the collection.
50872
50914
  * @constructor
50873
50915
  */
@@ -51017,10 +51059,10 @@ CollectionDict.prototype.getAllKeys = function() {
51017
51059
  return Object.keys(this._dict);
51018
51060
  };
51019
51061
 
51020
- /* harmony default export */ var jet_CollectionDict = (CollectionDict);
51062
+ /* harmony default export */ const jet_CollectionDict = ((/* unused pure expression or super */ null && (CollectionDict)));
51021
51063
 
51022
51064
 
51023
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockQuotes2.js
51065
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockQuotes2.js
51024
51066
 
51025
51067
 
51026
51068
 
@@ -51882,7 +51924,7 @@ MockSubscriptions.prototype._statusMap = {
51882
51924
 
51883
51925
 
51884
51926
 
51885
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockArchive.js
51927
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockArchive.js
51886
51928
  /** @constructor */
51887
51929
  let MockArchive = function() {
51888
51930
  this._data = {};
@@ -51940,7 +51982,7 @@ MockArchive.prototype.filter = function(func) {
51940
51982
 
51941
51983
 
51942
51984
 
51943
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockUtil.js
51985
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockUtil.js
51944
51986
  /**
51945
51987
  * @public
51946
51988
  * @type {Object}
@@ -51967,7 +52009,7 @@ function setInvalidFields(fields) {
51967
52009
 
51968
52010
 
51969
52011
 
51970
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/Adc.js
52012
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/Adc.js
51971
52013
 
51972
52014
 
51973
52015
 
@@ -52237,7 +52279,7 @@ Adc.splitFields = function(strFields) {
52237
52279
 
52238
52280
 
52239
52281
 
52240
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/mockDataAPI.js
52282
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/mockDataAPI.js
52241
52283
 
52242
52284
 
52243
52285
 
@@ -52350,7 +52392,7 @@ mockDataAPI.setInvalidFields = setInvalidFields;
52350
52392
 
52351
52393
 
52352
52394
 
52353
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockJET.js
52395
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/jet/MockJET.js
52354
52396
 
52355
52397
 
52356
52398
 
@@ -52420,10 +52462,10 @@ MockJET.prototype.getUserInfo = function() {
52420
52462
  MockJET.prototype.contextChange = function(contextAry) {
52421
52463
  };
52422
52464
 
52423
- /* harmony default export */ var jet_MockJET = (MockJET);
52465
+ /* harmony default export */ const jet_MockJET = ((/* unused pure expression or super */ null && (MockJET)));
52424
52466
 
52425
52467
 
52426
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/TickCodes.js
52468
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/TickCodes.js
52427
52469
  /** @type {Object.<string, number>}
52428
52470
  * @public
52429
52471
  */
@@ -52455,10 +52497,10 @@ let TickFields = {
52455
52497
  "ASK_TICK": 1
52456
52498
  };
52457
52499
 
52458
- /* harmony default export */ var es6_TickCodes = (TickCodes);
52500
+ /* harmony default export */ const es6_TickCodes = ((/* unused pure expression or super */ null && (TickCodes)));
52459
52501
 
52460
52502
 
52461
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ExpressionParser.js
52503
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/ExpressionParser.js
52462
52504
  /** @type {Object.<string, number>}
52463
52505
  * @private
52464
52506
  * @const
@@ -52865,10 +52907,10 @@ ExpressionParser.parse = function(expression) {
52865
52907
  return ExpressionParser._filter.bind(null, ctx);
52866
52908
  };
52867
52909
 
52868
- /* harmony default export */ var es6_ExpressionParser = (ExpressionParser);
52910
+ /* harmony default export */ const es6_ExpressionParser = ((/* unused pure expression or super */ null && (ExpressionParser)));
52869
52911
 
52870
52912
 
52871
- // CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/CellPainter.js
52913
+ ;// CONCATENATED MODULE: ./node_modules/tr-grid-util/es6/CellPainter.js
52872
52914
 
52873
52915
 
52874
52916
 
@@ -54073,10 +54115,10 @@ CellPainter.prototype.setBlinkingDuration = function(duration) {
54073
54115
  }
54074
54116
  };
54075
54117
 
54076
- /* harmony default export */ var es6_CellPainter = (CellPainter);
54118
+ /* harmony default export */ const es6_CellPainter = ((/* unused pure expression or super */ null && (CellPainter)));
54077
54119
 
54078
54120
 
54079
- // CONCATENATED MODULE: ./src/index.js
54121
+ ;// CONCATENATED MODULE: ./src/index.js
54080
54122
  /* eslint-disable */
54081
54123
 
54082
54124
  /* eslint-enable */
@@ -54110,7 +54152,7 @@ if (window) {
54110
54152
  trNamespace.CellPainter = CellPainter;
54111
54153
  }
54112
54154
  if(!rtNamespace['Grid']) {
54113
- rtNamespace.Grid = Grid;
54155
+ rtNamespace.Grid = Grid_Grid;
54114
54156
  }
54115
54157
  if(!gridNamespace['CellPainter']) {
54116
54158
  gridNamespace.CellPainter = CellPainter;
@@ -54119,8 +54161,7 @@ if (window) {
54119
54161
  // tsd-enable
54120
54162
 
54121
54163
 
54122
- /* harmony default export */ var src_0 = __webpack_exports__["default"] = (Grid);
54123
-
54164
+ /* harmony default export */ const src = ((/* unused pure expression or super */ null && (Grid)));
54124
54165
 
54125
- /***/ })
54126
- /******/ ]);
54166
+ /******/ })()
54167
+ ;