@refinitiv-ui/efx-grid 6.0.142 → 6.0.144

Sign up to get free protection for your applications and to get access to all the features.
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.142" };
3
+ window.EFX_GRID = { version: "6.0.144" };
@@ -24,7 +24,7 @@ declare namespace ElfUtil {
24
24
 
25
25
  function isHaloTheme(themeName?: string|null): boolean;
26
26
 
27
- function injectIcons(configObj: any, optElem?: Element|null): void;
27
+ function injectIcons(configObj: any): void;
28
28
 
29
29
  function getIconList(): (string)[];
30
30
 
@@ -288,9 +288,8 @@ ElfUtil.isHaloTheme = function (themeName) {
288
288
  * @public
289
289
  * @function
290
290
  * @param {Object} configObj Object to mutate
291
- * @param {Element=} optElem Deprecated param: will no longer use anymore
292
291
  */
293
- ElfUtil.injectIcons = function (configObj, optElem) {
292
+ ElfUtil.injectIcons = function (configObj) {
294
293
  if (typeof configObj !== "object") { return; }
295
294
 
296
295
  let theme = ElfUtil.getThemeName();
@@ -789,7 +789,8 @@ let KEY_MAP = {
789
789
  "del": 46,
790
790
  "delete": 46
791
791
  };
792
- /** @private
792
+ /** @public
793
+ * @ignore
793
794
  * @param {number=} colIndex
794
795
  * @param {number=} rowIndex
795
796
  * @param {Object=} context
@@ -816,7 +817,8 @@ GridPlugin.prototype._mockMouseEvent = function(colIndex, rowIndex, context) {
816
817
 
817
818
  return evt;
818
819
  };
819
- /** @private
820
+ /** @public
821
+ * @ignore
820
822
  * @param {number|string} keyCode
821
823
  * @param {Object=} context
822
824
  * @return {!Object}
@@ -877,7 +879,7 @@ GridPlugin.prototype.applyStaticStyles = function(styleCalculator) {
877
879
  /** @public
878
880
  * @param {string} cssString
879
881
  * @param {string=} nameSpace
880
- * @param {boolean=} replaceable
882
+ * @param {boolean=} replaceable This allows the injected CSS to be replaceable (removable)
881
883
  */
882
884
  GridPlugin.prototype.applyStyles = function(cssString, nameSpace, replaceable) {
883
885
  if (!nameSpace) {
@@ -18,7 +18,8 @@ Icon.create = function(iconName, className) {
18
18
  return icon;
19
19
  };
20
20
 
21
- /** @public
21
+ /** Create a container element with an icon element in it.
22
+ * @public
22
23
  * @function
23
24
  * @param {string=} iconName
24
25
  * @param {string=} className Class name for the containing box
@@ -96,9 +96,10 @@ MouseDownTrait.prototype._onMouseMove;
96
96
 
97
97
  /** @public */
98
98
  MouseDownTrait.prototype.dispose = function() {
99
- this.unlistenAll();
99
+ this.removeAllEventListeners();
100
100
  this._tchProxy.dispose();
101
101
  window.removeEventListener("mouseup", this._onMouseUp, false);
102
+ window.removeEventListener("mousemove", this._onMouseMove, false);
102
103
  };
103
104
 
104
105
  /** @public
@@ -233,5 +234,17 @@ MouseDownTrait.prototype._isValidButton = function(e) {
233
234
  return TouchProxy.getButtonType(e) === this._whichBtn;
234
235
  };
235
236
 
237
+ /** @public
238
+ * @ignore
239
+ * @return {!Object}
240
+ */
241
+ MouseDownTrait.prototype._getEventHandlers = function() {
242
+ return {
243
+ "mousemove": this._onMouseMove,
244
+ "mouseup": this._onMouseUp,
245
+ "dragstart": this._onMouseDown
246
+ };
247
+ };
248
+
236
249
  export {MouseDownTrait};
237
250
  export default MouseDownTrait;
@@ -146,6 +146,7 @@ EmptyPerf.clearResourceTimings = emptyMethod;
146
146
  EmptyPerf.getEntries = emptyMethod;
147
147
  EmptyPerf.getEntriesByName = emptyMethod;
148
148
  EmptyPerf.getEntriesByType = emptyMethod;
149
+ EmptyPerf.getEntry = emptyMethod;
149
150
 
150
151
  EmptyPerf.mark = emptyMethod;
151
152
  EmptyPerf.measure = emptyMethod;
@@ -16,7 +16,6 @@
16
16
  */
17
17
  let RequestQueue = function (reqBuilder, reqLimit, timeLimit) {
18
18
  this._onSuccess = this._onSuccess.bind(this);
19
- this._onFail = this._onFail.bind(this);
20
19
  this._onRefreshCounter = this._onRefreshCounter.bind(this);
21
20
  this._nextInQueue = this._nextInQueue.bind(this);
22
21
 
@@ -180,7 +179,7 @@ RequestQueue.prototype.makeRequest = function(obj) {
180
179
  ++this._freqLimit.reqCount;
181
180
  }
182
181
  ++this._concurrentReqs;
183
- prom["then"](this._onSuccess)["catch"](this._onFail);
182
+ prom["then"](this._onSuccess)["catch"](this._onSuccess);
184
183
  }
185
184
  return /** @type{Promise<Response>} */(prom);
186
185
  };
@@ -197,7 +196,6 @@ RequestQueue.prototype.isLimitReached = function() {
197
196
  return (this._concurrentReqs >= this._concurrentLimit);
198
197
  };
199
198
 
200
-
201
199
  /** @private
202
200
  * @param {*} res
203
201
  * @return {Promise}
@@ -207,15 +205,6 @@ RequestQueue.prototype._onSuccess = function(res) {
207
205
  this._nextInQueue();
208
206
  return Promise.resolve(res);
209
207
  };
210
- /** @private
211
- * @param {*} res
212
- * @return {Promise}
213
- */
214
- RequestQueue.prototype._onFail = function(res) {
215
- --this._concurrentReqs;
216
- this._nextInQueue();
217
- return Promise.reject(res);
218
- };
219
208
  /** @private */
220
209
  RequestQueue.prototype._onRefreshCounter = function() {
221
210
  if(this._freqLimit) {
@@ -20,7 +20,8 @@ declare namespace RowFilteringPlugin {
20
20
  type ColumnOptions = {
21
21
  filter?: RowFilteringPlugin.Expression|null,
22
22
  filterState?: any,
23
- filterIcon?: boolean|null
23
+ filterIcon?: boolean|null,
24
+ filterDialogOptions?: RowFilteringPlugin.FilterDialogOptions|null
24
25
  };
25
26
 
26
27
  type FilterDialogOptions = {
package/lib/versions.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "tr-grid-util": "1.3.171",
2
+ "tr-grid-util": "1.3.173",
3
3
  "tr-grid-printer": "1.0.18",
4
4
  "@grid/column-dragging": "1.0.21",
5
5
  "@grid/row-segmenting": "2.0.1",
package/package.json CHANGED
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "version": "6.0.142"
72
+ "version": "6.0.144"
73
73
  }